Add .local/bin/old/change_wallpaper.sh

This commit is contained in:
2025-10-05 12:26:04 +02:00
parent 9ca2e7e2d4
commit cf8eaa637b

View File

@@ -0,0 +1,18 @@
#!/bin/bash
case $1 in
"sfw")
wallpaper=$(find ~/Obrazy/tapety/sfw/ -type f | wofi --dmenu)
;;
"nsfw")
wallpaper=$(find ~/Obrazy/tapety/nsfw/ -type f | wofi --dmenu)
;;
*)
echo "Please choose nsfw or sfw"
exit 1
;;
esac
if [[ -n $wallpaper ]];then
hyprctl hyprpaper reload ,$wallpaper
fi