~kris/dots

srice

ref: e98f3b030dc24445bd55c68d95d2d81933fd68b3 srice/.local/bin/media/bg-picker -rw-r--r-- 441 bytes
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

# bg-picker - wallpaper picker using ThumbPick
# Opens ThumbPick with vim keybinds to browse wallpapers.
# On selection, runs setbg to apply the chosen wallpaper.

WALLPAPER_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/wallpapers"

[ -d "$WALLPAPER_DIR" ] || { notify-send "bg-picker" "No wallpapers directory found at $WALLPAPER_DIR"; exit 1; }

chosen="$(thumbpick "$WALLPAPER_DIR" -v)" || exit 1

[ -n "$chosen" ] && setbg "$chosen"