From 14ead9b9f107f54f936c76fc7cc8f0d6c22869c5 Mon Sep 17 00:00:00 2001 From: Pavan Jadhaw Date: Tue, 12 Dec 2017 17:25:01 +0530 Subject: [PATCH] updating cache on eah startup no longer required --- README.md | 6 ++++-- lock.sh | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 95f7d07..b6331e0 100644 --- a/README.md +++ b/README.md @@ -171,7 +171,8 @@ Use dim + blurred image as desktop background To set desktop background on startup, add following lines to your .xintrc after pushing script to your path or you can use absolute path to script too ``` -exec lock.sh -u ~/.wall.png & +# below line no longer needed as cached images are now permanently stored +# exec lock.sh -u ~/.wall.png & exec lock.sh -w ``` @@ -187,7 +188,8 @@ bindsym $mod+shift+x exec lock.sh --lock *update image cache and set last cached image as desktop background* ``` # Update image cache -exec --no-startup-id lock.sh -u ~/.wall.png +# no longer required as cached images are permanently stored +# exec --no-startup-id lock.sh -u ~/.wall.png # Set last used image as desktop background # comment out below line if you use different desktop background utility diff --git a/lock.sh b/lock.sh index 7aebb9b..5dc6dd9 100755 --- a/lock.sh +++ b/lock.sh @@ -9,7 +9,7 @@ orig_wall=$HOME/.wall.png # create folder in /tmp directory -folder="/tmp/lock" +folder="$HOME/.cache/i3lock" # Versions (from here) # You can use these images to set different versions as wallpaper