From f563f5e048a352284a3dd1e902a0af355ba39cff Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Sat, 5 May 2018 16:19:28 +0200 Subject: Fix photos path --- i3/bin/setbg-photo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'i3/bin/setbg-photo') diff --git a/i3/bin/setbg-photo b/i3/bin/setbg-photo index 71b08df..93d602b 100755 --- a/i3/bin/setbg-photo +++ b/i3/bin/setbg-photo @@ -1,4 +1,6 @@ #!/bin/bash -feh --bg-fill ~/Dropbox/Photos/Wallpapers/active/"$(ls -1 ~/wallpapers | sort -R | head -1)" +DIR="/home/camil/Dropbox/Photos/Wallpapers/active" + +feh --bg-fill "$DIR/$(ls -1 "$DIR" | sort -R | head -1)" exit 1 -- cgit v1.2.3