config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 2b98477353df00dfe7cbb43607634f4a184cd26a
parent 7113d0758a0f8d7b95aa91d7e5d3b641092bcdac
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Fri,  6 Nov 2020 11:41:01 -0800

Add wallpaper selection script

Diffstat:
Ascripts/.local/bin/wpaper | 13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/scripts/.local/bin/wpaper b/scripts/.local/bin/wpaper @@ -0,0 +1,13 @@ +#!/usr/bin/env dash +# view all wallpapers or select a wallpaper sub-directory + +set -eu + +if [ $# = 0 ]; then + sxiv -rtb $WALLPAPER_DIR +elif [ "$1" = "-s" ]; then + sxiv -rtb `fsmenu -t d $WALLPAPER_DIR` +else + echo "`basename $0`: $1: Invalid argument" 1>&2 + exit 1 +fi