dotfiles/.scripts/toggle-weeb-mode.sh
Viyurz 8be3d10f4e
Update weeb-mode
Hyprland 0.31 added "force_default_wallpaper = 0".
We no longer need to set the default wallpaper using swaybg,
so now when weeb mode is turned of it just kills swaybg to show Hyprland
wallpaper.
2023-10-23 13:57:52 +02:00

12 lines
257 B
Bash
Executable file

#!/bin/sh
source "$HOME/.cache/wal/colors.sh"
pkill -u "$USER" swaybg
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
fi