diff options
Diffstat (limited to 'scripts/wallpaper-picker.sh')
| -rwxr-xr-x | scripts/wallpaper-picker.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/wallpaper-picker.sh b/scripts/wallpaper-picker.sh new file mode 100755 index 0000000..266c6dd --- /dev/null +++ b/scripts/wallpaper-picker.sh @@ -0,0 +1,15 @@ + +#!/bin/bash + +WALL_DIR="$HOME/wallpapers" + +choices=$(find "$WALL_DIR" -type f \( -iname "*.jpg" -o -iname "*.png" -o -iname "*.webp" \) \ + | sort \ + | rofi -dmenu -i -p "Pick wallpaper") + +[ -z "$choices" ] && exit +swww img "$choices" \ + --transition-fps 60 \ + --transition-type any + + |
