diff options
| author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-04 10:59:44 +0200 | 
|---|---|---|
| committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-05-04 10:59:44 +0200 | 
| commit | c0f82cfe9a9b48c5ca705718b553e5fb18873eae (patch) | |
| tree | c29e37764b7b9e9e5ff1096b91137af16ba84dff /bin/guiscripts/newwal | |
| parent | fc769b5297a67ecec2690dde9b5f8ace9c9a9258 (diff) | |
use variable for wallpapers directory
Diffstat (limited to 'bin/guiscripts/newwal')
| -rwxr-xr-x | bin/guiscripts/newwal | 3 | 
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal index 427f501..49a4b9a 100755 --- a/bin/guiscripts/newwal +++ b/bin/guiscripts/newwal @@ -3,13 +3,14 @@  which swaybg wal identify > /dev/null || exit 1  wall="$HOME/pics/wallpaper" +walls="$HOME/pics/wallpapers"  wdir="$HOME/.cache/wal"  res="1920x1080"  test -d "$wdir" || exit 1  # if no (valid) argument, use random wallpaper  test -f "${wal:=$(realpath "$1")}" || -	wal="$(find $HOME/pics/wallpapers -type f | +	wal="$(find "$walls" -type f |  		xargs identify |  		grep "$res" |  		awk '{print $1}' |  | 
