Use dotter

This commit is contained in:
Kristofers Solo
2024-08-28 09:02:07 +03:00
parent d888080cc7
commit a42ded1119
1200 changed files with 1231 additions and 2261 deletions

22
local/bin/set-animated-bg Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
# Directory containing the videos
VIDEO_DIR="${HOME}/Pictures/wallpapers/animated/wallset"
# List all video files in the directory
VIDEOS=($(ls $VIDEO_DIR/*))
# Check if there are any videos in the directory
if [ ${#VIDEOS[@]} -eq 0 ]; then
echo "No videos found in $VIDEO_DIR."
exit 1
fi
# Select a random video
RANDOM_VIDEO=${VIDEOS[$((RANDOM % ${#VIDEOS[@]}))]}
# Play the selected v
wallset --video "$RANDOM_VIDEO"