aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/mode
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-09-24 12:13:36 +0200
committerlonkaars <loek@pipeframe.xyz>2022-09-24 12:13:36 +0200
commit23a888aa872a5deefc000288932ea213f1415402 (patch)
treeadc15c4aa34bc0dc28f5e42a98152241a08b2fd2 /.local/share/bin/mode
parentf809e61b33336a0959562d40ab94cd335ad72e15 (diff)
add xsettingsd for live gtk theme switching
Diffstat (limited to '.local/share/bin/mode')
-rwxr-xr-x.local/share/bin/mode1
1 files changed, 1 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
index 27851e2..e25404b 100755
--- a/.local/share/bin/mode
+++ b/.local/share/bin/mode
@@ -92,6 +92,7 @@ switch_gtk() {
sed "s/-Light/-Dark/" -i ~/.config/gtk-3.0/settings.ini
sed "s/gtk-application-prefer-dark-theme.*/gtk-application-prefer-dark-theme=true/" -i ~/.config/gtk-3.0/settings.ini
fi
+ grep gtk-theme-name .config/gtk-3.0/settings.ini | cut -f2 -d= | xargs xfconf-query -c xsettings -p /Net/ThemeName -s
}
switch_fcitx5() {