From 58347fdfe21315ad3ccc0bd7c4703a8ec7aae797 Mon Sep 17 00:00:00 2001 From: tdback Date: Wed, 4 Dec 2024 18:50:37 -0500 Subject: initial commit to new repo --- background | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 background (limited to 'background') diff --git a/background b/background new file mode 100755 index 0000000..6729237 --- /dev/null +++ b/background @@ -0,0 +1,14 @@ +#!/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" -- cgit v1.2.3