diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-02 15:19:25 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-02 15:19:25 +0200 |
commit | 9b791ac8786eed2d242d0909dd2379f008952042 (patch) | |
tree | 403c08eb322e18d045606822911a7eb6036f0070 /bin/guiscripts/locker | |
parent | e614a330978ce7e7f6d130cc7d199150e16a409d (diff) | |
parent | 63c64f071ecd45cf66ab49d199a634cd8db27056 (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/guiscripts/locker')
-rwxr-xr-x | bin/guiscripts/locker | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/bin/guiscripts/locker b/bin/guiscripts/locker index c35f6d4..b680484 100755 --- a/bin/guiscripts/locker +++ b/bin/guiscripts/locker @@ -3,10 +3,7 @@ which swaylock grim pixelate > /dev/null || exit 1 umask 077 -monitors="$(hyprctl monitors -j | - jq -r '.[].name' | - tr '\n' ' ' | - sed 's,.$,,')" +monitors="$(hyprctl monitors -j | jq -r '.[].name' | xargs)" for monitor in $monitors do @@ -14,9 +11,9 @@ do grim -l 0 -o "$monitor" "$file" pixelate "$file" "$file" # Create image command for swaylock - icmd="$icmd --image $monitor:$file" + img_opt="--image $monitor:$file $img_opt" files="$files $file" done -swaylock -f -u $icmd +swaylock -f -u $img_opt shred -uz -- $files |