aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin/mode
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-10-07 12:15:07 +0200
committerlonkaars <loek@pipeframe.xyz>2022-10-07 12:15:07 +0200
commit00b1b32b784e931a034cab56f1b95e29789f8d6d (patch)
tree8f13de1beccae0422b02f3cb1254dae19c37ed78 /.local/share/bin/mode
parentc4cb675d9b7265ab12afc9b21b974f253abf6b4b (diff)
only use xfsettingsd during mode switching
Diffstat (limited to '.local/share/bin/mode')
-rwxr-xr-x.local/share/bin/mode11
1 files changed, 11 insertions, 0 deletions
diff --git a/.local/share/bin/mode b/.local/share/bin/mode
index 042c54c..aff947e 100755
--- a/.local/share/bin/mode
+++ b/.local/share/bin/mode
@@ -265,6 +265,16 @@ reload_fcitx5() {
fcitx5 -rd &> /dev/null & disown
}
+reload_gtk() {
+ # this is max jank but xfsettingsd does other things besides live gtk theme
+ # reloading, and i don't like having it running constantly because it fucks
+ # up fcitx5 and xbindkeys
+ xfsettingsd &> /dev/null &
+ PID=$!
+ sleep 1
+ kill $PID
+}
+
switch_cfgs() {
echo "switching to $1 mode..."
@@ -294,6 +304,7 @@ reload_apps() {
reload_dunst
reload_terms
reload_fcitx5
+ reload_gtk
}
reload_apps