mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 19:14:39 +02:00
[sway/lock] use physlock only if available
This commit is contained in:
parent
5428a1a166
commit
0bea48b8b6
1 changed files with 8 additions and 3 deletions
11
sway/lock.sh
11
sway/lock.sh
|
@ -14,7 +14,12 @@ done
|
||||||
|
|
||||||
printf '%s\n' "${images[@]}" | xargs -P 0 -I{} convert -resize 20% -level 0%,100%,0.9 -blur 0x2 -resize 500% {} {}
|
printf '%s\n' "${images[@]}" | xargs -P 0 -I{} convert -resize 20% -level 0%,100%,0.9 -blur 0x2 -resize 500% {} {}
|
||||||
|
|
||||||
physlock -l prevent tty switching
|
if command -v physlock 2>/dev/null; then
|
||||||
swaylock "${swaylock_args[@]}" -s center
|
physlock -l prevent tty switching
|
||||||
physlock -L reenable tty switching
|
swaylock "${swaylock_args[@]}" -s center
|
||||||
|
physlock -L reenable tty switching
|
||||||
|
else
|
||||||
|
swaylock "${swaylock_args[@]}" -s center
|
||||||
|
fi
|
||||||
|
|
||||||
rm "${images[@]}"
|
rm "${images[@]}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue