Commit Graph

70 Commits

Author SHA1 Message Date
Scoopta
a9868654c2 Changed the function signature of config_get_mnemonic(). This new signature uses the correct types so that the default argument promotions caused by varargs is in spec. 2024-02-08 11:08:16 -08:00
Scoopta
a6e66d7cb7 Added wofi_exit(). This allows correct handling of custom exit status codes on non-glibc systems. This function should always be used for exiting wofi as libc exit() will no longer correctly handle error situations. 2024-02-07 18:16:11 -08:00
Scoopta
a5baf43417 Added documentation for key_custom_n 2024-02-04 15:04:54 -08:00
Scoopta
81e1877ac6 Added pre_display_exec which allows pre_display_cmd to be directly executed with fork/exec instead of through the shell 2024-01-20 22:08:33 -08:00
Scoopta
1f5161eb66 Added the drun-print_desktop_file option 2024-01-19 13:50:37 -08:00
zvon
4017218adb Add documentation for #expander-box 2023-07-09 11:06:05 +02: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
9aa93ed272 Added the config option drun-disable_prime to disable prime GPU offloading 2022-12-25 15:54:50 -08: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
37c3491739 Added multi-contains to the list of matching algorithms in the man pages 2022-06-23 22:05:25 -07:00
Scoopta
4ec3df5df5 Added foot to the default terminal list 2022-05-02 01:02:09 -07:00
mazunki
82a98a81fa cleaned up some oopsies, more effs, and more linebreaks 2021-11-09 16:37:24 +01: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
mazunki
c597c088d6 added support for --pre-display-cmd / -r. also removed some compile-time warnings of unused variables by fact-checking runtime errors 2021-10-29 21:34:49 +02:00
Scoopta
4c64259b3a Added the ability to copy the action text for the selected entry to your clipboard using wl-copy by default 2020-11-04 21:10:57 -08:00
Scoopta
09efb27a78 Added print_command to run 2020-08-07 23:36:09 -07:00
Mark Stosberg
15d48b377d fix shell escaping issue in man page example.
The "\t" wasn't escaped for the man page formatting, so it was coming out as an empty string.
I tried fixing it with "\\t". That technically worked but resulted inconsistent spacing depending
on how many digits were in the IDs. Switching to a space here resolves the issue and provides
visually consistent formatting.
2020-08-01 22:57:47 -04:00
Scoopta
cd61e73f20 v1.2.1: widget_builder now only lets you assign classes. The name will be consistent with the image escape system 2020-07-28 16:18:44 -07:00
Scoopta
592e427133 Added layer config option 2020-07-27 21:49:21 -07:00
Scoopta
3ab6a0d668 Added --monitor 2020-07-18 13:32:05 -07:00
Scoopta
ad73f24c75 Renamed widget builder functions to be more consistent with the rest of wofi 2020-07-11 16:39:09 -07:00
Scoopta
1ed2445bd4 drun ported to the new widget builder API 2020-06-29 21:23:36 -07:00
Scoopta
5c59d8317c Added widget builder API 2020-06-22 22:45:51 -07:00
Scoopta
2afc0b9809 Added dynamic_lines 2020-06-16 15:41:28 -07:00
Scoopta
18851d411e Added --search 2020-06-14 03:03:00 -07:00
Scoopta
0d1836649e Added display_generic option to drun 2020-05-15 17:20:56 -07:00
Scoopta
4a9733114b Added documentation about the control and shift modifiers in run mode 2020-05-07 15:36:01 -07:00
Scoopta
f8e1c779cc Added key_hide_search 2020-04-06 15:17:12 -07:00
Scoopta
c3ca5e027d Added key_expand 2020-04-06 14:41:12 -07:00
Scoopta
874eafb27f Added documentation about the format of mode specific config options to wofi(7) in addition to the info in wofi(5) 2020-03-17 14:26:47 -07:00
Scoopta
8d4a9e22b2 Added the load() plugin function 2020-03-13 17:08:35 -07:00
Scoopta
60502adf83 Added documentation about wofi_get_dso_path() 2020-03-13 13:26:16 -07:00
Scoopta
3e64b23847 Added page up/down support 2020-03-11 18:27:44 -07:00
Scoopta
5625646da6 Merged v1.1.2 into default 2020-03-09 22:42:35 -07:00
Scoopta
1dd640e283 v1.1.2: fixed typos in man pages 2020-03-09 22:37:36 -07:00
Gigadoc2
dc58ddbfb8 add switch to use the dark gtk theme
Since some time now, GTK3 themes can ship an optional "dark" variant
and applications like picture viewers can make use of such a variant to
appear dark (to not distract from the picture) without overwriting the
current theme (and risking optical breakage). While wofi is not a
picture viewer it may still be desirable to use a dark theme, for
example to contrast the (light) application displaying in the
background.

Of course, wofi can already be fully customized through CSS and/or the
colors file, but using the existing dark variant may be easier than
fully restyling it, if all you want is a darker appearance. The only
way to set an arbitrary GTK application to use the dark theme seems to
be setting an environment variable, but that bears two problems:
For one, one needs to specify the full theme + dark modifier in the
variable, so one would have to keep the global GTK theme and the one
used by wofi manually in sync.
More critical though, the environment variable would be propagated to
the programs wofi launches (for now at least). That would lead to all
GTK applications launched through wofi to use the dark theme, which may
not be desirable. Wofi could also unset that variable before launching
a program, but at this point adding a simple switch is probably easier.

Side note: It may be that there is some way to configure the CSS file
to include the CSS of the dark variant of the current theme, but I have
not been able to find out how. Gnome-terminal uses a switch like this
too (just with dconf), so this may just be the way to go.
2020-03-03 12:09:55 +01:00
Scoopta
12d68bbd01 Added - escapes 2020-03-03 00:48:35 -08:00
Scoopta
341e4cc080 Added an example on how to do window switching to the man pages 2020-03-03 00:45:08 -08:00
Scoopta
36048841bb Changed the default wofi size to be 50%x40% instead of 1000x400 2020-03-03 00:10:12 -08:00
Scoopta
3e3846f9b4 Added documentation about percent sizes 2020-03-03 00:07:02 -08:00
Scoopta
b88c6727ea Added hide_search 2020-02-29 01:04:00 -08:00
Scoopta
973a454799 Added global_coords 2020-02-25 17:13:32 -08:00
Scoopta
937ba8e411 Added drun-print_command 2020-02-25 16:04:40 -08:00
Scoopta
a1beb82635 line_wrap now takes the wrapping mode instead of a boolean 2020-02-21 00:43:44 -08:00
Scoopta
33a69e713a Added line_wrap config option 2020-02-21 00:17:59 -08:00
Scoopta
d96ddcce4f Added support for modifier keys to be bound 2020-02-16 14:43:14 -08:00
Scoopta
459639cd7e Added support for custom key binding 2020-02-15 21:53:02 -08:00
Scoopta
d69e4b416f Added dmenu-print_line_num 2020-02-11 10:44:50 -08:00