summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/guiscripts/newwal3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/guiscripts/newwal b/bin/guiscripts/newwal
index 87cb9ce..427f501 100755
--- a/bin/guiscripts/newwal
+++ b/bin/guiscripts/newwal
@@ -4,13 +4,14 @@ which swaybg wal identify > /dev/null || exit 1
wall="$HOME/pics/wallpaper"
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 |
xargs identify |
- grep 1920x1080 |
+ grep "$res" |
awk '{print $1}' |
shuf -n 1)"