summaryrefslogtreecommitdiff
path: root/scripts/wallpaper-picker.sh
diff options
context:
space:
mode:
authorsubh <subh@example.com>2026-01-19 21:47:02 +0530
committersubh <subh@example.com>2026-01-19 21:47:02 +0530
commit65aad59ef0802708a8a7c8a312755232cc1823d3 (patch)
treefe0a437f3e9a71ab5b9197d9b8fa72c24d2170ea /scripts/wallpaper-picker.sh
initial commit
Diffstat (limited to 'scripts/wallpaper-picker.sh')
-rwxr-xr-xscripts/wallpaper-picker.sh15
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
+
+