summaryrefslogtreecommitdiff
path: root/arch/scripts/.local/bin/pick-wallpaper
diff options
context:
space:
mode:
authorsteven-na <noreply.github@stvnc.dev>2026-04-26 11:58:32 -0700
committersteven-na <noreply.github@stvnc.dev>2026-04-26 11:58:32 -0700
commit4b309f0a5555b5fed5a65ee425dcb6da15421f5b (patch)
treeb923f4f76df6205ee3099d9bf8072209ff9e8256 /arch/scripts/.local/bin/pick-wallpaper
Initial commit.
Diffstat (limited to 'arch/scripts/.local/bin/pick-wallpaper')
-rwxr-xr-xarch/scripts/.local/bin/pick-wallpaper11
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/scripts/.local/bin/pick-wallpaper b/arch/scripts/.local/bin/pick-wallpaper
new file mode 100755
index 0000000..c96ca4e
--- /dev/null
+++ b/arch/scripts/.local/bin/pick-wallpaper
@@ -0,0 +1,11 @@
+#!/usr/bin/env bash
+WALLPAPER_DIR="${HOME}/wallpapers"
+
+selected=$(find "$WALLPAPER_DIR" -type f \( \
+ -name "*.jpg" -o -name "*.jpeg" -o \
+ -name "*.png" -o -name "*.webp" \) | sort | \
+ fzf --preview 'chafa --size=80x40 {}' \
+ --preview-window 'right:60%' \
+ --prompt "wallpaper> ")
+
+[ -n "$selected" ] && ~/.local/bin/set-wallpaper "$selected"