improve theme switching

Amolith created

Change summary

dot_local/share/dark-mode.d/executable_swap.sh  | 5 ++++-
dot_local/share/light-mode.d/executable_swap.sh | 5 ++++-
2 files changed, 8 insertions(+), 2 deletions(-)

Detailed changes

dot_local/share/dark-mode.d/executable_swap.sh 🔗

@@ -4,11 +4,14 @@ sed -i 's/light/dark/g' ~/.config/chezmoi/chezmoi.toml
 chezmoi apply
 xfconf-query -c xsettings -p /Net/ThemeName -s "Catppuccin-Macchiato-Standard-Rosewater-Dark"
 xrdb -load ~/.Xresources
+"$XDG_CONFIG_HOME/emacs/bin/doom" sync
 pkill polybar
 pkill dunst
+pkill emacs
 i3-msg exec "polybar top"
 i3-msg exec "polybar bottom"
-doom sync
+i3-msg exec "dunst"
+i3-msg exec "emacs --daemon"
 unlink ~/.wallpaper.png
 ln -s ~/Pictures/walls/catppuccin-macchiato.png ~/.wallpaper.png
 feh --bg-scale ~/.wallpaper.png

dot_local/share/light-mode.d/executable_swap.sh 🔗

@@ -4,11 +4,14 @@ sed -i 's/dark/light/g' ~/.config/chezmoi/chezmoi.toml
 chezmoi apply
 xfconf-query -c xsettings -p /Net/ThemeName -s "Catppuccin-Latte-Standard-Rosewater-Light"
 xrdb -load ~/.Xresources
+"$XDG_CONFIG_HOME/emacs/bin/doom" sync
 pkill polybar
 pkill dunst
+pkill emacs
 i3-msg exec "polybar top"
 i3-msg exec "polybar bottom"
-doom sync
+i3-msg exec "dunst"
+i3-msg exec "emacs --daemon"
 unlink ~/.wallpaper.png
 ln -s ~/Pictures/walls/catppuccin-latte.png ~/.wallpaper.png
 feh --bg-scale ~/.wallpaper.png