Change summary
dot_local/share/dark-mode.d/executable_swap.sh | 10 ++++------
dot_local/share/light-mode.d/executable_swap.sh | 4 +---
2 files changed, 5 insertions(+), 9 deletions(-)
Detailed changes
@@ -8,13 +8,11 @@ xrdb -load ~/.Xresources
pkill dunst
pkill emacs
-matched=$(hyprctl instances | grep -oE "instance [a-zA-Z0-9]{40}_[a-zA-Z0-9]{10}:")
-
-if [[ -n $matched ]]; then
+if [[ -n $WAYLAND_DISPLAY ]]; then
pkill waybar
- hyprctl dispatch exec -- waybar
- hyprctl dispatch exec -- dunst
- hyprctl dispatch exec -- emacs --daemon
+ hyprctl -i 0 dispatch exec -- waybar
+ hyprctl -i 0 dispatch exec -- dunst
+ hyprctl -i 0 dispatch exec -- emacs --daemon
else
pkill polybar
i3-msg exec "polybar top"
@@ -6,11 +6,9 @@ xfconf-query -c xsettings -p /Net/ThemeName -s "Catppuccin-Latte-Standard-Rosewa
xrdb -load ~/.Xresources
"$XDG_CONFIG_HOME/emacs/bin/doom" sync
-matched=$(hyprctl instances | grep -oE "instance [a-zA-Z0-9]{40}_[a-zA-Z0-9]{10}:")
-
pkill dunst
pkill emacs
-if [[ -n $matched ]]; then
+if [[ -n $WAYLAND_DISPLAY ]]; then
pkill waybar
hyprctl dispatch exec -- waybar
hyprctl dispatch exec -- dunst