nwg-piotr / nwg-look

GTK3 settings editor adapted to work in the wlroots environment
MIT License
562 stars 16 forks source link

Change GTK settings via command line #58

Closed TomyOne closed 6 months ago

TomyOne commented 6 months ago

Hello is there or in plan to have possibility to change setting directly from command line?

Could be useful to quickly change let's say GTK theme between light and dark theme via keybinding.

Something like: nwg-look -c gtk-theme="theme-name"

Thank you!

TomyOne commented 6 months ago

Well after checking the code I found out this solution for it, but a bit of hacking :)

sed -i -e 's/gtk-theme=.*/gtk-theme=<THEME_NAME>/g' ${HOME}/.local/share/nwg-look/gsettings
nwg-look -a
nwg-piotr commented 6 months ago

Try gsettings set org.gnome.desktop.interface gtk-theme "ThemeNameHere".

TomyOne commented 6 months ago

ahh yeah or that is much better :) Thanks!