Added loader for GTK3 theming.
I'm hoping this will resolve some of the weirdness with some applications.
This commit is contained in:
parent
f385d5878b
commit
0bdc4b55fc
|
@ -250,6 +250,13 @@ bindsym $mod+r mode "resize"
|
|||
bindsym XF86MonBrightnessUp exec brightnessctl set +5%
|
||||
|
||||
|
||||
# GTK 3 settings
|
||||
# See https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland for more info.
|
||||
|
||||
exec_always ~/.config/sway/import-gsettings \
|
||||
gtk-theme:gtk-theme-name \
|
||||
icon-theme:gtk-icon-theme-name \
|
||||
cursor-theme:gtk-cursor-theme-name
|
||||
|
||||
#
|
||||
# Status Bar:
|
||||
|
|
11
sway/import_gsetting
Executable file
11
sway/import_gsetting
Executable file
|
@ -0,0 +1,11 @@
|
|||
#! /bin/sh
|
||||
# Lifted from https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
|
||||
# usage: import-gsettings <gsettings key>:<settings.ini key> <gsettings key>:<settings.ini key> ...
|
||||
|
||||
expression=""
|
||||
for pair in "$@"; do
|
||||
IFS=:; set -- $pair
|
||||
expressions="$expressions -e 's:^$2=(.*)$:gsettings set org.gnome.desktop.interface $1 \1:e'"
|
||||
done
|
||||
IFS=
|
||||
eval exec sed -E $expressions "${XDG_CONFIG_HOME:-$HOME/.config}"/gtk-3.0/settings.ini >/dev/null
|
Loading…
Reference in New Issue
Block a user