This commit is contained in:
2026-02-20 01:01:27 +01:00
parent 3e7d82524f
commit d0d1327e9f
17 changed files with 671 additions and 0 deletions

20
scripts/old/random_wallpaper.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/usr/bin/env bash
case $1 in
"nsfw")
WALLPAPER_DIR="$HOME/Obrazy/tapety/nsfw/"
;;
"sfw")
WALLPAPER_DIR="$HOME/Obrazy/tapety/sfw/"
;;
*)
echo "Please choose nsfw or sfw"
exit 1
esac
CURRENT_WALL=$(hyprctl hyprpaper listloaded)
# Get a random wallpaper that is not the current one
WALLPAPER=$(find "$WALLPAPER_DIR" -type f ! -name "$(basename "$CURRENT_WALL")" | shuf -n 1)
# Apply the selected wallpaper
hyprctl hyprpaper reload ,"$WALLPAPER"