dotfiles/.scripts/toggle-weeb-mode.sh

13 lines
257 B
Bash
Raw Normal View History

2023-09-26 17:12:28 +02:00
#!/bin/sh
source "$HOME/.cache/wal/colors.sh"
pkill -u "$USER" swaybg
2023-09-26 17:12:28 +02:00
if grep -q 1 "$HOME/.cache/weeb-mode"; then
echo 0 > "$HOME/.cache/weeb-mode"
else
echo 1 > "$HOME/.cache/weeb-mode"
hyprctl dispatch exec "swaybg -i \"$wallpaper\"" > /dev/null
2023-09-26 17:12:28 +02:00
fi