diff options
author | Camil Staps | 2018-05-05 16:19:28 +0200 |
---|---|---|
committer | Camil Staps | 2018-05-05 16:19:28 +0200 |
commit | f563f5e048a352284a3dd1e902a0af355ba39cff (patch) | |
tree | 69a06254c460914cf6d547e7ce9a8aed0a3e06e1 /i3/bin/setbg-photo | |
parent | Use wallpapers from dropbox (diff) |
Fix photos path
Diffstat (limited to 'i3/bin/setbg-photo')
-rwxr-xr-x | i3/bin/setbg-photo | 4 |
1 files changed, 3 insertions, 1 deletions
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 |