scripts/background

15 lines
282 B
Text
Raw Normal View History

2024-11-12 19:39:05 -05:00
#!/bin/sh
# background: Set the background using `feh`.
IMAGES="$HOME/.local/backgrounds"
if [ "$1" = "-r" ]; then
feh --bg-scale --randomize "$IMAGES"
exit
fi
SELECTED=$(find "$IMAGES" -type f -printf '%f\n' | fzf)
[ -n "$SELECTED" ] && feh --bg-scale "$IMAGES/$SELECTED"