Commit graph

242 commits

Author SHA1 Message Date
lbonn
8604addae2 [Autotools] Ship missing files for meson build 2024-07-08 23:17:40 +02:00
giomatfois62
75ae2a41f0
[WIP] xdg thumbnails fetching with fallback on mimetype icons (#1939)
* implemented xdg thumbnails fetching with fallback on mimetype icons for menu entries in filebrowser mode

* included original license text

* added md5 header and source file

* implemented xdg compatible thumbnail's creation

* added -preview-cmd string option to program settings

* support custom command to create images for entries with thumbnail:// prefix

* fix custom thumbnailer command crash caused by null uri when entry is not a valid filename

* check entry_name is not NULL or empty when generating thumbnails;
use snprintf to avoid static analyzer complains

* avoid using gstrvbuilder to build thumbnailer command args

* fixed static analyzer complain about always wrong condition

* use g_spawn_check_exit_status to avoid bump to glib 2.70

* removed md5-c dependency and use glib checksum implementation

* fixed meson build after md5-c library removal

* support thumbnail generation in recursivebrowser mode

* restored check rofi_icon_fetcher_file_is_image

* create thumbnail directories if not existing

* use g_malloc0, g_strdup and g_strdup_printf

* fixed formatting with clang-format

* don't wait for jobs in execution when finalizing the icon fetcher worker threadpool

* destroy and rebuild the icon fetcher worker threadpool when the current page is changed

* added query_started boolean member to IconFetcherEntry;
check if an icon fetcher query was started on an IconFetcherEntry and submit the query again otherwise

* force icon cache lookup even if the item has a valid icon_fetch_uid (the fetching job could have been discarded before starting)

* search binaries in PATH when executing thumbnailer command

* mark icon query as not started in threadpool item free_func

* added listview page_changed_callback; rebuild icon fetcher threadpool in page_changed_callback

* [listview] Add missing code documentation param

* Create rofi-thumbnails.5.markdown

* Updated documentation with apparmor issues and workaround

* [Doc] Ship rofi-thumbnails.5

With some formatting fixes

* use a more compact thumbnailer example

---------

Co-authored-by: giomatfois62 <giomatfois62@yahoo.it>
Co-authored-by: Dave Davenport <DaveDavenport@users.noreply.github.com>
Co-authored-by: lbonn <github@lbonnans.net>
2024-06-21 18:47:38 +02:00
lbonn
433f9664e9
[Doc] Switch to pandoc and remove generated files (#1955)
* [Build] Add missing dist files from libnkutils

* [Doc] Switch to pandoc and remove generated files

* [Doc] Rewrite markdown for conversion to man

* convert existing markup to use definition list (a bit hacky...)
* rewrite title to pandoc man metadata
* reduce heading nesting to match most man pages
* inline code displayed as bold, also common man style

* [Doc] New installation with autoconf and meson

- autoconf:
  * generate in source directory if pandoc found
  * install from source directory

- meson:
  * generate and install with build directory if pandoc found
  * try to install from source directory if pandoc not found
  * bail otherwise

* [Doc] Make pandoc filter 2.9 compatible

Man pages look better with pandoc >= 2.17
2024-03-05 16:22:47 +01:00
Nikita Zlobin
c980139b7e update man pages without scripts
Signed-off-by: Dave Davenport <qball@gmpclient.org>
2023-07-22 14:15:54 +02:00
Dave Davenport
e203084647 [Build] Fix autotools build system. 2023-06-12 19:46:14 +02:00
Dave Davenport
d90ef45b7d [Themes] add fullscreen theme with preview part. 2023-01-10 00:48:52 +01:00
Dave Davenport
18ae8a0eb3 [Themes] Add fancy2 theme. 2022-12-31 23:54:14 +01:00
Dave Davenport
be3e3ed8dd [Themes] Add material theme 2022-12-31 23:21:03 +01:00
Dave Davenport
d464822505 [Theme] support rasinc for theme include files. 2022-12-30 11:54:15 +01:00
Dave Davenport
ffe3289999 [Build] Fix test building in makefile. 2022-11-19 22:04:25 +01:00
duarm
6d02648d3a
input method (#1735)
* input method draft

* restoring relese event

* using unused macro, removing debug code, handling disconnection

* review fixes, new update_im_window_pos method

* initializing variables correctly

* initializing im pos queue correctly

* ime window positioning

* add widget_get_y_pos() position

* [Build] Update makefile with imdkit

* [CI] Add imdkit as dependency.

* [XCB] rofi_view_paste don't throw warning, print debug.

* [XCB] rofi_view_paste lower 'failed to convert selection'

* [Build] Add minimum version check to imdkit

* new macro XCB_IMDKIT_1_0_3_LOWER

* [Build] Try to support old version of imdkit in meson/makefile.

* [Build] Fix typo in meson.build

* [XIM] Don't set use compound/set use utf8 when on old version.

* [Build] Allow building without imdkit.

* [Doc] Add imdkit to dependency list.

Co-authored-by: Dave Davenport <qball@gmpclient.org>
2022-11-08 19:18:45 +01:00
Dave Davenport
cf2cf27336 [Build] Fix icon install path for makefile.
fixes: #1733
2022-10-24 19:20:03 +02:00
Dave Davenport
8ee05a718e [View] Add textbox-current-entry widget. 2022-06-27 16:56:59 +02:00
Dave Davenport
3958f68ba4 [Build] Fix make based build with desktop file and icons. 2022-05-25 18:21:27 +02:00
Dave Davenport
c0feb2eb0d [Themes] Remove broken themes. 2022-05-16 09:38:51 +02:00
Dave Davenport
8274b1cc76 [Doc] Add a rofi-debugging manpage. 2022-04-11 11:19:34 +02:00
Dave Davenport
534aa6ad54 Rename Dialogs -> Modes
Try to fix some of old syntax.
2022-02-23 23:18:53 +01:00
Dave Davenport
fbfb9b0247 [DOC] Add rofi-dmenu(5) manpage. 2021-12-17 11:13:29 +01:00
Dave Davenport
7b1008b38f [Doc] Add a manpage with all the bindings. 2021-12-15 21:31:44 +01:00
Dave Davenport
91f3200d8c [Dist] Fix missing README.md 2021-11-28 16:21:36 +01:00
Dave Davenport
419d676fbe [Build] Remove generating of README.html and bundling.
Issue: #1495
2021-10-08 20:05:40 +02:00
Dave Davenport
4face975a9 [Theme] Print known colors as color name.
When printing look if the set color has a known color name, print this.
2021-09-20 19:57:12 +02:00
Dave Davenport
fcebd54fa0 [Build] Fix meson build in a dist. 2021-08-30 10:05:05 +02:00
Dave Davenport
acb1979f10 [Theme] Undo part of default theme changes, always pick build-in 2021-08-24 18:19:25 +02:00
Dave Davenport
dec5c103dc [Theme] Ship default theme separately. 2021-08-24 17:17:00 +02:00
Dave Davenport
1050c20c10 [Test] Remove old broken test scripts. 2021-08-22 00:03:43 +02:00
Dave Davenport
a3b9604b3e [Theme] Add iggy theme. 2021-08-17 12:04:37 +02:00
a1346054
c62137f8ab
Simple maintenance improvements (#1370)
* rofi moved to libera.chat

* unify some theme headers and whitespace

* consistently use the same hashbang for bash

* improve obsolete way of testing equality

see https://github.com/koalaman/shellcheck/wiki/SC2268 for explanation

* use consistent function definitions in bash scripts

* remove duplicated author and fix whitespace

* quote all variables in scripts

fixes many warnings identified through shellcheck

* fix whitespace in scripts

* fix whitespace in non-source files

* fix spelling in non-source files

* fix whitespace and indentation in source files

* fix spelling in source files
2021-08-14 13:03:16 +02:00
Dave Davenport
9f71c4f78d [Config] Load default config file in at startup
* load via resources doc/default_configuration.rasi
* print the configuration options on dump-config
2021-07-10 00:25:20 +02:00
Dave Davenport
dc46457f71 Remove deprecated theme options
* color_window
* color_urgent
* color_active
* color_normal
2021-06-08 22:44:15 +02:00
TonCherAmi
12b2b38578
Fix tests. (#1323) 2021-06-05 12:58:07 +02:00
Dave Davenport
95c4e0424e Fix tests. 2021-06-01 14:21:21 +02:00
Dave Davenport
d212c5b2ed Fix make distcheck. 2021-05-05 21:59:58 +02:00
Dave Davenport
768aacf9c9 Small fixes to docu theme 2021-02-14 13:31:47 +01:00
Dave Davenport
deb1e6a208 [RofiIconFetcher] Switch to gdk-pixbuf. 2020-10-20 20:38:13 +02:00
Dave Davenport
5994df7f04 [IconLoader] add optional gif loader. 2020-10-18 21:37:05 +02:00
Dave Davenport
519d4d2818 [FileBrowser] Add file browser modi. 2020-10-12 20:17:21 +02:00
Dave Davenport
b434e3e02e [Man] update-rofi-sensible-terminal.1 manpage
* Source from markdown
* Update list.

Fixes: #897 #850
2020-09-19 16:49:50 +02:00
Dave Davenport
802a9489e7 [Build] Try to fix make dist for meson. 2020-08-18 13:02:49 +02:00
Dave Davenport
f93033ebaa [Test] Update check building. 2020-07-05 16:07:55 +02:00
Dave Davenport
855d09ded7 [IconFetcher] Add jpeg support, scale on load.
TODO: fix scaling speed.
2020-02-14 14:27:03 +01:00
Dave Davenport
bc2e1549fb Add rofi-script manpage, add meta option support to dmenu.
update ronn to go-md2man
2020-02-02 17:21:21 +01:00
Dave Davenport
77a059ebf0 [Themes] Add 'fancy' theme. 2019-05-14 11:35:30 +02:00
Dave Davenport
011d92075c [Dmenu][Script] Share some code between the two modi 2019-04-02 13:51:53 +02:00
Dave Davenport
1ed94ead7e Add missing Example script
Fixes: #869
2018-11-01 09:32:00 +01:00
Dave Davenport
e4d823774c Export icon fetcher header, remove nxd from icon-fetcher header. 2018-07-14 18:05:34 +02:00
Dave Davenport
441c511296
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.
Add an generic icon fetcher that can be used by any widget and re-uses the main threadpool.

* Make threadpool more generic usable.
* Add generic icon fetcher, that caches icons.
* Make DRUN use this fetcher.
* Add icon widget.

#809
2018-06-09 19:13:57 +02:00
Quentin Glidic
aa03eb7fc5
autotools: Dist man pages sources files too
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2018-03-29 12:47:56 +02:00
Quentin Glidic
fc0c2d7d87
gitmodules: Update libnkutils
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
2018-03-29 12:47:17 +02:00
Dave Davenport
d9d3724615 Update themes from rofi-themes repository 2018-02-25 15:18:37 +01:00