swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.4k stars 1.1k forks source link

Allow following GTK theme colors #6417

Closed flipflop133 closed 3 years ago

flipflop133 commented 3 years ago

The possibility to follow the current GTK theme seems currently missing and would be a proper way of theming sway. Furthermore, it would allow easy light mode/dark mode switching. For example, colors definition would look like this: set $black @theme_fg_color Another way would be to directly allow using GTK tags like so:

# class                border          backgr.         text            indicator       child_border
client.focused         @theme_fg_color @theme_fg_color @theme_fg_color @theme_fg_color @theme_fg_color

For example, Waybar implemented this properly.

emersion commented 3 years ago

Nack, we won't be using GTK for theming. You can instead write a script that parses the GTK theme and applies it via the Swau IPC.

flipflop133 commented 3 years ago

Thanks for the explanations!