summaryrefslogtreecommitdiff
path: root/wal
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-11-03 10:35:58 -0800
committerBen Sima <ben@bsima.me>2019-11-03 10:35:58 -0800
commit4cc7908d39ef08307450a97baa462f6dbdb0ddd1 (patch)
treed8bdee1f3db4cbd474b1a15a89806f3eb62cbe37 /wal
parent658c74339f75e520436a207fe7ce3bda6769311f (diff)
add file argument to wal
Diffstat (limited to 'wal')
-rwxr-xr-xwal4
1 files changed, 2 insertions, 2 deletions
diff --git a/wal b/wal
index f9202e9..33fd89a 100755
--- a/wal
+++ b/wal
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
-file=$(ls ~/wallpaper | sort -R | tail -1)
-feh --bg-fill ~/wallpaper/$file \ No newline at end of file
+file=${1:-$(find ~/wallpaper | sort -R | tail -1)}
+feh --bg-fill $file