Commit Graph

44 Commits

Author SHA1 Message Date
Scoopta
3ab6a0d668 Added --monitor 2020-07-18 13:32:05 -07:00
Scoopta
8a68314be7 Oops, --search definitely requires an argument 2020-06-14 03:10:31 -07:00
Scoopta
18851d411e Added --search 2020-06-14 03:03:00 -07:00
Scoopta
1e63240dc8 memset is no longer used to clear sigact 2020-06-12 22:25:20 -07:00
Scoopta
29aeffd8c1 Cleaned up includes, they were a bit of a mess 2020-03-25 23:05:46 -07:00
Scoopta
a167dcc42e Replaced 1 with TRUE when setting gtk-application-prefer-dark-theme 2020-03-05 19:51:49 -08: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
f1a0e735f1 Changed the error if you have too many colors. You can have up to 100 not 99 2020-02-29 03:16:23 -08:00
Scoopta
a55c0421b2 gdk_threads_add_timeout() is now used instead of g_timeout_add() 2020-02-29 02:27:59 -08:00
Scoopta
81a34c3374 Wofi can now be named wofi-askpass. This is for easy use as a sudo askpass program 2020-02-20 23:51:54 -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
7534181a8f Added --lines 2020-02-02 22:29:44 -08:00
Scoopta
6e472afe6e Added infrastructure for external custom modes, the actual mode code will be committed later 2020-01-31 21:55:28 -08:00
Scoopta
6fb839a903 --no-actions doesn't take an argument 2020-01-24 23:44:55 -08:00
Scoopta
5ec88a365e Added --define 2020-01-24 23:36:56 -08:00
Scoopta
e7be007842 The color and style config options now have the same semantics as the command line options 2020-01-12 22:20:37 -08:00
Scoopta
d6bac0e7bb Added --no-actions 2020-01-10 14:34:49 -08:00
Scoopta
d07622de3e Copyright update 2020-01-06 16:42:52 -08:00
Scoopta
a85c516926 Good C practices 2020-01-06 00:39:47 -08:00
Scoopta
8bcdfc0f13 Added --location and made -x and -y behave as proper offsets as they do in rofi 2020-01-06 00:28:57 -08:00
Scoopta
427e08ecec One too many tabs 2019-12-17 00:19:08 -08:00
Scoopta
d699827c65 Added --version 2019-12-16 23:55:48 -08:00
Scoopta
62861d3686 Added --parse-search to strip pango markup and image escapes from search text 2019-12-16 18:36:21 -08:00
Scoopta
db59ec9d13 OPTION CHANGE: -i and -I have been swapped to improve compatibility with other *nix tools 2019-11-28 22:27:06 -08:00
Scoopta
3c03f89918 Added case insensitive searching 2019-11-25 14:56:46 -08:00
Scoopta
50838d3d98 Added support for fuzzy searching 2019-11-21 01:01:27 -08:00
Scoopta
c85f6a7209 The scroll bars can now be hidden 2019-11-18 13:42:40 -08:00
Scoopta
eeb8a8a324 When running as dmenu the cache file will be set to /dev/null 2019-11-06 00:17:22 -08:00
Scoopta
0eb03b7adc Added --prompt as a long opt for -p 2019-11-04 17:49:34 -08:00
Scoopta
436c1ad0cd dmenu mode no longer uses the search bar contents when enter is pressed, this can be overridden for all modes with -e. Additionally all modes now get the search contents if no results are found. 2019-11-04 17:46:39 -08:00
Scoopta
97dd534c97 Fixed some portability issues with wofi 2019-11-03 20:20:00 -08:00
Scoopta
2d08672f86 There are now secondary config options that match the command line flags if the original options didn't 2019-11-01 16:57:24 -07:00
Scoopta
4bdd94a90e Added password mode 2019-10-22 21:19:57 -07:00
Scoopta
dcdca16a38 Added support for running software in a terminal from run mode 2019-09-26 23:24:48 -07:00
Scoopta
117868a033 Modularized modes and separated them into their own source files 2019-09-13 00:25:25 -07:00
Scoopta
281ae02639 Forgot a linefeed on the --cache-file option 2019-08-28 22:02:29 -07:00
Scoopta
0a110def8f Added the ability to specify the cache file to use 2019-08-28 20:14:38 -07:00
Scoopta
abd571485f Added support for pango markup 2019-08-28 00:58:45 -07:00
Scoopta
e3c79c3bd4 Added support for inline images, this currently only works in dmenu mode 2019-08-27 23:15:18 -07:00
Scoopta
574ed3f590 If the wofi executable is named dmenu then it will auto use the dmenu mode 2019-08-17 21:15:59 -07:00
Scoopta
d13b02703f Added the ability to run wofi in a normal window 2019-08-17 19:22:09 -07:00
Scoopta
b0cfc91e0a mode can now be set in the config 2019-08-17 18:40:48 -07:00
Scoopta
2bae6e0f66 First commit 2019-08-17 18:19:32 -07:00