usr

Modulate your userpace into POSIX-compliant shell scripts!
git clone git://clone.theohenson.com/usr.git
Log | Files | Refs | README

commit 770605531d7f43272b0a8ab0801987fe5037ef6b
parent 5b680c2115231b5b8d3d5ca4bc28b435c2fefe6b
Author: Theo Henson <[email protected]>
Date:   Wed, 24 Feb 2021 17:19:31 -0500

Update fish and randwall

Diffstat:
Mhome/.config/fish/config.fish | 7++++++-
Mhome/.local/bin/randwall | 8+++++++-
2 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/home/.config/fish/config.fish b/home/.config/fish/config.fish @@ -1,5 +1,9 @@ # abbreviations set here as global vars for clarity's sake -abbr -ag v nvim +if which nvim > /dev/null 2>&1 + abbr -ag v nvim +else + abbr -ag v vim +end abbr -ag r ranger abbr -ag z zathura abbr -ag n nnn -de @@ -24,6 +28,7 @@ abbr -ag ll ls -lAh abbr -ag s sudo abbr -ag a sudo apt abbr -ag p sudo pacman +abbr -ag paclean sudo pacman -R '(pacman -Qdtq)' abbr -ag sus sudo systemctl abbr -ag sdn sudo shutdown now abbr -ag spn sudo poweroff now diff --git a/home/.local/bin/randwall b/home/.local/bin/randwall @@ -18,5 +18,11 @@ while [ "$old" = "$new" ]; do get_file done -feh --no-fehbg --bg-fill "$new" +if which xwallpaper > /dev/null 2>&1 ; then + xwallpaper --zoom "$new" +else + if which feh > /dev/null 2>&1 ; then + feh --no-fehbg --bg-fill "$new" + fi +fi echo "$new" > "$XDG_CACHE_HOME/oldwall"