Commit Graph

304 Commits

Author SHA1 Message Date
Scoopta
8796993fb6 Modes are no longer loaded on their own thread. It's not really needed, breaks drun mode with images, and is probably confusing for 3rd-party mode developers. 2020-03-07 19:55:30 -08:00
Scoopta
a167dcc42e Replaced 1 with TRUE when setting gtk-application-prefer-dark-theme 2020-03-05 19:51:49 -08:00
Scoopta
1b299e658f Removed debug print 2020-03-05 19:07:25 -08:00
Scoopta
f016f32f7a Added tag v1.1.1 for changeset fc1124ee262b 2020-03-05 11:36:00 -08:00
Scoopta
c64526023e v1.1.1: Headers and pkg-config file are now installed 2020-03-05 11:35:55 -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
7755727cb6 Merged v1.1.1 into default 2020-03-05 11:37:51 -08:00
Scoopta
dc166e1381 Added fedora package to the list of packages 2020-03-03 17:26:17 -08:00
Scoopta
a672361d65 --lines should play nicer with % dimensions 2020-03-03 11:13:11 -08: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
512c1cf7b5 Fixed percent sizing 2020-03-03 00:04:53 -08:00
Scoopta
459de542dc Added support for percentage based window sizing 2020-03-02 12:06:14 -08:00
Scoopta
5217c5a398 Added tag v1.1 for changeset 0e605f0b5b21 2020-02-29 14:15:04 -08:00
Scoopta
4af6efc6f1 v1.1 2020-02-29 14:14:55 -08: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
b88c6727ea Added hide_search 2020-02-29 01:04:00 -08:00
Scoopta
0a0ba35075 The cache directory will now be created if it doesn't already exist 2020-02-28 22:36:48 -08:00
Scoopta
0dec3c883d Initial focus is now set on the top result not the scrolled window 2020-02-28 22:15:53 -08:00
Scoopta
fc1636c3ca Don't need the brackets 2020-02-28 22:04:49 -08:00
Scoopta
94526d5272 Removed the version flag in favor of setting the project version 2020-02-28 22:02:10 -08:00
Scoopta
6a4b6aa390 Getting ready for v1.1 2020-02-26 17:03:13 -08:00
Scoopta
510f6834ea The man pages will now be installed when doing ninja install 2020-02-25 23:06:00 -08:00
Scoopta
ab974be7ef Using drun-print_command=true with a desktop file action will now print a warning to stderr while printing the main action's commandline 2020-02-25 18:59:16 -08:00
Scoopta
e0db258ad6 Added xdg-output-unstable-v1-protocol.c to meson.build 2020-02-25 17:14:42 -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
6961672701 Tweaked --lines code. Hopefully it's more reliable now 2020-02-25 00:30:35 -08:00
Scoopta
f7b599fe6f Added utils_max(). utils_min() is now a one liner. 2020-02-25 00:13:12 -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
c0b6233bd6 Ignored debug 2020-02-21 00:16:13 -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
91ad565ecc Removed the need to use gtk_widget_get_child_visible() 2020-02-17 00:15:57 -08:00
Scoopta
4d089df33d Fixed arg passing although I used gtk_widget_get_child_visible(). Compared to the alternative I think this is less hacky although maybe a tad not good 2020-02-16 20:34:55 -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
Scoopta
78129b3404 Added info about disabling caching 2020-02-08 18:55:56 -08:00
Scoopta
f4c4abfb02 Forgot I had a min function 2020-02-08 18:13:05 -08:00
Scoopta
400ca061b5 Fixed --lines 2020-02-08 18:04:38 -08:00
Scoopta
779678d1e2 Added null check to fix gtk-critical message 2020-02-07 22:04:15 -08:00
Scoopta
bafdea787f Fixed content_halign not working correctly with multi-action entries 2020-02-07 21:06:30 -08:00
Scoopta
6f2e4616ab That's not a very effective null check 2020-02-07 18:10:06 -08:00
Scoopta
28be2d8234 Fixed a null check that itself would cause a segfault 2020-02-07 18:07:46 -08:00
Scoopta
1e131bdce6 Added --sort-order 2020-02-07 18:04:37 -08:00
Scoopta
12dd2fbd4d filter_rate doesn't need to be global anymore 2020-02-07 12:23:57 -08:00