diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-04 22:45:56 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-08-04 22:45:56 +0200 |
commit | 1914d16f1693a3c31f8ad9e07b1469df1604d690 (patch) | |
tree | a8a623823adc077f7371de379b9e70eb7a7b485c /bin/guiscripts/locker | |
parent | 49bbf6906089b5d957e2a781002d32b811ae630d (diff) | |
parent | e850f3a1702b4d8b9d0cfec5c07d710b5201ed29 (diff) |
Merge branch 'main' of /var/git/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 |