config

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

commit f82af37a0c15154f9c2d189bd149c13a556239cd
parent f98c451b424fb4a0f31ab663a1ce69886e52d72d
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sun, 20 Jun 2021 23:52:57 -0700

Remove WALLPAPER_DIR definition in profile

Diffstat:
Mlocal/bin/.local/bin/wpaper | 6++++--
Mlocal/profile/.profile | 1-
2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/local/bin/.local/bin/wpaper b/local/bin/.local/bin/wpaper @@ -7,12 +7,14 @@ # Invoke sxiv(1) on WALLPAPER_DIR, or, if `-s' is given, on a # directory selected with fsmenu. +dir="$HOME/image/wallpapers" + case $* in (-s) - exec sxiv -rtb `fsmenu ${WALLPAPER_DIR:?unset} -type d`;; + exec sxiv -rtb `fsmenu "$dir" -type d`;; ('') - exec sxiv -rtb ${WALLPAPER_DIR:?unset};; + exec sxiv -rtb $dir;; (*) printf 'usage: %s [-s]\n' `basename $0` 1>&2 exit 1 diff --git a/local/profile/.profile b/local/profile/.profile @@ -30,4 +30,3 @@ export LESS='-2FMSWXiqrx~ -b80 -h15 -z23 -j5 -x8' export LESSHISTFILE=/dev/null export MANPATH=/usr/share/man:/usr/X11R6/man:/usr/local/man:/usr/local/plan9/man export PATH="$HOME/local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games:/usr/local/plan9/bin" -export WALLPAPER_DIR="$HOME/image/wallpapers/"