diff options
author | lonkaars <loek@pipeframe.xyz> | 2023-08-06 00:42:47 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2023-08-06 00:42:47 +0200 |
commit | 5b6064be7d0787c55fcc163e68debb2d17e8b5f6 (patch) | |
tree | 02884f561ce002d680f5c5e44d497495e02409e2 /.local/share/bin/rwall | |
parent | 4a6f77636f2f723218818e95c899f0b2a998ef0d (diff) |
update custom scripts
Diffstat (limited to '.local/share/bin/rwall')
-rwxr-xr-x | .local/share/bin/rwall | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.local/share/bin/rwall b/.local/share/bin/rwall index 48c305d..070ed65 100755 --- a/.local/share/bin/rwall +++ b/.local/share/bin/rwall @@ -1,2 +1,4 @@ #!/bin/sh -ls -d ~/.local/walls/current | sort -R | head -n1 | xargs feh --bg-fill -z +FOLDER="$HOME/.local/walls/current" +[ -n "$1" ] && FOLDER="$1" +ls -d "$FOLDER" | sort -R | head -n1 | xargs feh --bg-fill -z |