nwg-piotr / nwg-shell-config

nwg-shell configuration utility
MIT License
56 stars 11 forks source link

Force theme w/ GTK_THEME=<default-gtk-theme> in nwg-drawer #56

Closed nwg-piotr closed 11 months ago

nwg-piotr commented 11 months ago

This update adds the 'Run with GTK_THEME=' check button to the 'App drawer' tab. If checked, nwg-shell-config will add the -ft argument to the nwg-drawer command in the ~/.config/hypr/includes.conf file, e.g.:

exec = nwg-drawer -r -c 6 -is 64 -fscol 2 -s hyprland-0.css -term foot -ft

In result, while running apps, the drawer will add the GTK_THEME=<default-gtk-theme> environment variable to the command, to make libadwaita/gtk4 apps follow the current theme.

Note: the theme needs to be GTK4-compatible.

Note: nwg-drawer>=0.3.9 required.

image