dc58ddbfb8
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. |
||
---|---|---|
inc | ||
man | ||
modes | ||
proto | ||
src | ||
.build.yml | ||
.hgignore | ||
.hgtags | ||
COPYING.md | ||
meson_options.txt | ||
meson.build | ||
README.md |
Wofi
Wofi is a launcher/menu program for wlroots based wayland compositors such as sway
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