From bb83945623fa6cef6c195c98a7776f45974c006c Mon Sep 17 00:00:00 2001 From: xyz Date: Sun, 17 Oct 2021 15:39:52 -0700 Subject: move work-tree to /, delete mods files, addd cfgL --- home/xyz/.local/bin/shufwall | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 home/xyz/.local/bin/shufwall (limited to 'home/xyz/.local/bin/shufwall') diff --git a/home/xyz/.local/bin/shufwall b/home/xyz/.local/bin/shufwall new file mode 100755 index 00000000..5b249e12 --- /dev/null +++ b/home/xyz/.local/bin/shufwall @@ -0,0 +1,9 @@ +#!/bin/sh + +if [ -z "$1" ]; then + file=$(find -L "$XDG_PICTURES_DIR/wallpapers" -type f | shuf -n 1) +else + file=$(find -L "$@" -maxdepth 1 -type f | shuf -n 1) +fi + +display -resize "${SCR_WIDTH}x$SCR_HEIGHT" -backdrop -window root "$file" -- cgit v1.2.3-70-g09d2