wayland: Fix suspend input locking after timeout
This commit fixes input locking when suspend was invoked autoatically after a certain amount of time. Previously, it would invoke the lockscreen first, then dim the screen and finally suspend the machine. While suspending it would invoke the lockscreen *again* however, which seems to lead to generally locking input (perhaps 2 instances of waylock disable each others' input ability?). This change checks for a running lockscreen first before invoking another one, which should hopefully fix the issue.
This commit is contained in:
parent
7865626f5b
commit
660f6b0ca6
1 changed files with 4 additions and 4 deletions
|
@ -250,12 +250,12 @@ exec kanshi &
|
|||
# start screen idle locking/dimming/sleep tool
|
||||
killall swayidle
|
||||
exec swayidle \
|
||||
timeout "${time_to_lockscreen}" 'lockscreen' \
|
||||
timeout "${time_to_lockscreen}" 'pidof waylock || lockscreen' \
|
||||
timeout "${time_to_screendim}" 'wlopm --off "*"' \
|
||||
timeout "${time_to_suspend}" 'systemctl suspend-then-hibernate' \
|
||||
resume 'wlopm --on "*"' \
|
||||
after-resume 'wlopm --on "*"' \
|
||||
before-sleep 'lockscreen' &
|
||||
before-sleep 'pidof waylock || lockscreen' &
|
||||
|
||||
killall clipman
|
||||
exec wl-paste -t text --watch clipman store &
|
||||
|
|
Loading…
Reference in a new issue