Go to file
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
inc gdk_threads_add_timeout() is now used instead of g_timeout_add() 2020-02-29 02:27:59 -08:00
man add switch to use the dark gtk theme 2020-03-03 12:09:55 +01:00
modes 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
proto Added global_coords 2020-02-25 17:13:32 -08:00
src add switch to use the dark gtk theme 2020-03-03 12:09:55 +01:00
.build.yml Moved to meson 2019-12-20 18:29:11 -08:00
.hgignore Ignored debug 2020-02-21 00:16:13 -08:00
.hgtags Added tag v1.1.1 for changeset fc1124ee262b 2020-03-05 11:36:00 -08:00
COPYING.md First commit 2019-08-17 18:19:32 -07:00
meson_options.txt Removed the version flag in favor of setting the project version 2020-02-28 22:02:10 -08:00
meson.build Merged v1.1.1 into default 2020-03-05 11:37:51 -08:00
README.md Added fedora package to the list of packages 2020-03-03 17:26:17 -08:00

Wofi

Wofi is a launcher/menu program for wlroots based wayland compositors such as sway

builds.sr.ht status

Dependencies

libwayland-dev
libgtk-3-dev
pkg-config
meson

Building

hg clone https://hg.sr.ht/~scoopta/wofi
cd wofi
meson build
ninja -C build

Installing

sudo ninja -C build install

Uninstalling

sudo ninja -C build uninstall

Bug Reports

Please file bug reports at https://todo.sr.ht/~scoopta/wofi

Contributing

Please submit patches to https://lists.sr.ht/~scoopta/wofi

You can find documentation here https://man.sr.ht/hg.sr.ht/email.md

Packages

Debian sid has a package in the official repos https://packages.debian.org/sid/wofi

Ubuntu focal has a package in universe https://packages.ubuntu.com/focal/wofi

Arch has an AUR package for the current tip https://aur.archlinux.org/packages/wofi-hg/ and for the current stable https://aur.archlinux.org/packages/wofi/

NixOS has a packge in unstable https://nixos.org/nixos/packages.html?attr=wofi&channel=nixos-unstable&query=wofi

Void Linux also has a package

Fedora has a package in COPR https://copr.fedorainfracloud.org/coprs/wef/wofi/ there is also an official package https://src.fedoraproject.org/rpms/wofi but it's currently v1.0

Documentation

The official documentation is provided by the man pages in this repository, sample styling can be found here https://cloudninja.pw/docs/wofi.html

Donating

If you feel like supporting development you can either buy me a tea https://www.buymeacoffee.com/Scoopta or support me monthly https://liberapay.com/Scoopta