Commit Graph

37 Commits

Author SHA1 Message Date
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
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
a3a8f3c3f9 Added the single_click config option 2022-07-13 21:36:38 -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
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
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
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
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
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
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
459639cd7e Added support for custom key binding 2020-02-15 21:53:02 -08:00
Scoopta
1e131bdce6 Added --sort-order 2020-02-07 18:04:37 -08:00
Scoopta
df75b649a5 Added --columns 2020-02-06 18:22:50 -08:00
Scoopta
b7fcedf877 Added documentation on referencing colors from your CSS 2020-02-05 16:20:31 -08:00
Scoopta
7534181a8f Added --lines 2020-02-02 22:29:44 -08:00
Scoopta
1d149e8362 Added info about comments and escapes in the config to the man pages 2020-01-26 00:53:25 -08:00
Scoopta
54654f20bb Added #entry and deprecated .entry, #selected, and #unselected 2020-01-18 14:54:52 -08:00
Scoopta
c3a3a049b5 More - escapes 2020-01-13 20:26:29 -08:00
Scoopta
8f8c69dc16 Added man pages 2020-01-13 18:59:52 -08:00