diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-10-07 12:15:07 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-10-07 12:15:07 +0200 |
commit | 00b1b32b784e931a034cab56f1b95e29789f8d6d (patch) | |
tree | 8f13de1beccae0422b02f3cb1254dae19c37ed78 | |
parent | c4cb675d9b7265ab12afc9b21b974f253abf6b4b (diff) |
only use xfsettingsd during mode switching
-rw-r--r-- | .config/i3/autostart##template | 1 | ||||
-rwxr-xr-x | .local/share/bin/mode | 11 |
2 files changed, 11 insertions, 1 deletions
diff --git a/.config/i3/autostart##template b/.config/i3/autostart##template index 0bda621..3a22dbf 100644 --- a/.config/i3/autostart##template +++ b/.config/i3/autostart##template @@ -5,7 +5,6 @@ cat ~/.config/X11/base ~/.config/X11/light | xrdb & {% else %} cat ~/.config/X11/base ~/.config/X11/dark | xrdb & {% endif %} -xfsettingsd & polybar main -c ~/.config/polybar/config & zsh -c "rwall" & picom -b 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 |