Commit Graph

422 Commits

Author SHA1 Message Date
Scoopta
5af07b7410 Fixed segfault when running non shell safe inputs with --pre-display-cmd and --allow-images
Ex. echo '"' | wofi --dmenu --pre-display-cmd "echo %s" --allow-images
2024-01-20 20:07:03 -08:00
Scoopta
1f5161eb66 Added the drun-print_desktop_file option 2024-01-19 13:50:37 -08:00
Scoopta
3410f97499 Fixed weird tabbing behavior 2024-01-19 00:14:42 -08:00
Scoopta
5015362414 Fixed indentation 2023-08-13 18:17:30 -07:00
otaj
fb6a7f7301 Make sure that the first calculation of percent size is done when the window is visible 2023-08-08 23:00:43 +02:00
zvon
4017218adb Add documentation for #expander-box 2023-07-09 11:06:05 +02:00
zvon
c46d3ffdda Rename #expander to #expander-box 2023-07-09 11:02:19 +02:00
zvon
9611569db6 Add #expander selector so expanded actions can be themed 2023-07-09 00:41:44 +02:00
Scoopta
81ea8042a7 Fixed #193. drun mode now respects Hidden 2023-07-04 22:51:29 -07:00
Scoopta
ec06bd8dcb Updated readme build dependencies list 2023-03-06 19:43:23 -08:00
Scoopta
866fd2af31 on_exit_set_custom_key_return_code() now flushes stdio, this fixes #197 2023-03-02 23:12:34 -08:00
Andreas Schmidt
51c517b79c Add return codes for custom keys
In order to be able to execute various post actions.
When pressing these keys a return code 10 + X is returned
as soon as wofi is exited.
Currenty 20 custom keys have been defined.
2023-02-25 11:58:49 +01:00
Scoopta
ec569f3f36 Removed extraneous ; 2023-02-20 21:02:58 -08:00
jim jammer
f4ebbed7a8 Refactor key mapping modifier logic
- Consolidate a modifier's "left" and "right" variants to just one
  modifier referred to by its name or mask. E.g. Control_L and Control_R are
  resolved by detecting the mask and are both associated with the name "Ctrl".

- Store string representations of the modified key values as the keys to
  the key entry map (exactly how they appear in the config file). E.g.
  the string "Ctrl-m" would be the key to the map entry for a custom
  Ctrl-m binding (whereas before the key would've only been "m", a
  source of ambiguity and conflict).

- During init, pass through key mapping entry logic twice: once for
  inputting the defaults, and a second time for adding any custom
  mappings as defined by the config file. This allows defaults to stay
  in place unless a user chooses to blow them away. E.g. mapping Ctrl-p
  to key_up shouldn't blow away key_up's default mapping to up arrow,
  and this fixes that use case.

These changes resolve several bugs due to key mapping resolution ambiguity and
conflicts, and generally make key mapping more intuitive. However, a new quirk
is that keys that are obtained using Shift (like "J", aka "capital j") now
require the use of Shift modifier when configuring that binding.
2022-12-11 05:04:34 -08:00
Scoopta
ee2bab5d17 Updated the man pages with the new terminal order 2023-01-28 18:43:54 -08:00
Scoopta
7966777dd5 Added wezterm to the default terminal list and moved termite to the end of the sane terminal section since it's now deprecated 2023-01-28 17:59:51 -08:00
Scoopta
a6c3188045 Updated meson command in readme 2023-01-28 17:35:03 -08:00
Scoopta
9aa93ed272 Added the config option drun-disable_prime to disable prime GPU offloading 2022-12-25 15:54:50 -08:00
Scoopta
4dd03d040e Replaced the README package list with a repology badge 2022-10-08 14:18:26 -07:00
Scoopta
e891ad71df Removed version number 2022-10-06 19:38:02 -07:00
Scoopta
bddf540ad3 Added tag v1.3 for changeset 1c32143a8460 2022-10-06 19:35:22 -07:00
Scoopta
31c660fb0a v1.3 2022-10-06 19:35:13 -07:00
Scoopta
c6ddc5222b Changed donation link to ko-fi since they take paypal unlike a certain buymeacoffe 2022-07-27 20:52:17 -07:00
mazunki
84c3d80560 Bugfix: removed malloc() exception caused when using --pre-display-cmd
Should we update the version number, too?
2022-07-17 02:32:05 +02:00
Scoopta
a3a8f3c3f9 Added the single_click config option 2022-07-13 21:36:38 -07:00
Scoopta
49d41d0497 Added the with_list() variants of the insert text and insert image functions in widget builder to the man pages 2022-07-05 14:30:02 -07:00
Scoopta
8ad0ee3ac4 Added wofi_widget_builder_insert_text_with_list() and wofi_widget_builder_insert_image_with_list() 2022-07-04 01:16:03 -07:00
Scoopta
efbc44fd98 Added a null check to the pixbuf for drun image loading to clean up runtime GTK warnings 2022-06-29 19:53:29 -07:00
Scoopta
fa0d3dfa5d Fixed indentation in match.c 2022-06-28 08:11:48 -07:00
"Michael Hauser-Raspe"
10a173f069 Fix insensitive mode. 2022-06-28 01:54:36 +01:00
"Michael Hauser-Raspe"
4aad9b7385 Stylistic improvements. 2022-06-27 19:58:04 +01:00
"Michael Hauser-Raspe"
77cd2b32c7 Extract text matching to it's own file. 2022-06-26 01:51:48 +01:00
"Michael Hauser-Raspe"
f6d3169bfc Create fuzzy scoring and fuzzy sort. 2022-06-25 00:41:32 +01:00
"Michael Hauser-Raspe"
a554ae22f3 Add fuzzy filtering. 2022-06-15 18:07:40 +01:00
Scoopta
37c3491739 Added multi-contains to the list of matching algorithms in the man pages 2022-06-23 22:05:25 -07:00
"Michael Hauser-Raspe"
438b11038c Implement multi-contains matching algorithm.
This allows a new matching method that will be the equivalent
of contains on every word (delimited by space) that is given.
This is the same matching algorithm used by helm in emacs and
allows a way of iteratively refining your search.
2022-06-07 14:46:45 +01:00
Scoopta
a347a4cb10 Properly setup wayland protocol versioning 2022-05-14 22:03:28 -07:00
Scoopta
4ec3df5df5 Added foot to the default terminal list 2022-05-02 01:02:09 -07:00
Scoopta
43b1de994f The GDesktopAppInfo is now properly cast to a GAppInfo 2022-05-02 01:01:33 -07:00
Vika Shleina
67b592ff2f drun: switch to g_app_info_should_show() for filtering
This function respects OnlyShowIn and NotShowIn to filter out apps that
are not applicable to the current desktop environment. It also does
additional sanity checks on .desktop files, providing the same effect as
the boolean expression it replaced.
2022-01-02 14:49:53 +03:00
Scoopta
e1355f1ee2 The check argument is now set when calling run_command in meson.build 2022-02-13 21:05:17 -08:00
Scoopta
d2cee86857 The help output for --show now mentions that a list of modes can be found in wofi(7) 2022-02-13 21:04:32 -08:00
Scoopta
c69303298b Replaced the buymeacoffee link with paypal.me 2021-12-12 23:21:28 -08:00
Scoopta
2292d339ce Fixed the write error check printing under the wrong circumstances 2021-11-10 22:00:50 -08:00
mazunki
794789e01f explicit null checks are cool 2021-11-09 16:49:23 +01:00
mazunki
f89e3e56c6 fixed segfalt for drun, but drun still doesn't run pre-display-cmd 2021-11-09 16:47:12 +01:00
mazunki
82a98a81fa cleaned up some oopsies, more effs, and more linebreaks 2021-11-09 16:37:24 +01:00
mazunki
26c1897eda missing some effs in fprintf 2021-10-30 10:20:26 +02:00
mazunki
f8ddec11e8 we're moving back to create_label() to avoid potential unexistant nodes 2021-10-30 10:13:27 +02:00
mazunki
7956e253be fixed css doing the opposite check, writing errors to stderr, swapped !(==) for !=, fixed oopsies in manpage 2021-10-30 10:04:22 +02:00