executable_swap.sh

 1#!/usr/bin/env bash
 2
 3sed -i 's/dark/light/g' ~/.config/chezmoi/chezmoi.toml
 4chezmoi apply
 5xfconf-query -c xsettings -p /Net/ThemeName -s "Everforest-Light-Soft"
 6gsettings set org.gnome.desktop.interface color-scheme 'prefer-light'
 7xrdb -load ~/.Xresources
 8"$XDG_CONFIG_HOME/emacs/bin/doom" sync
 9
10pkill dunst
11pkill emacs
12if [[ -n $WAYLAND_DISPLAY ]]; then
13    pkill waybar
14    hyprctl dispatch exec -- waybar
15    hyprctl dispatch exec -- dunst
16    hyprctl dispatch exec -- emacs --daemon
17else
18    pkill polybar
19    i3-msg exec "polybar top"
20    i3-msg exec "polybar bottom"
21    i3-msg exec "dunst"
22    i3-msg exec "emacs --daemon"
23fi
24
25unlink ~/.wallpaper.png
26ln -s ~/Pictures/walls/everforest-light.png ~/.wallpaper.png
27feh --bg-scale ~/.wallpaper.png
28notify-send "Theme switch complete"