2019-10-26 20:05:31 +03:00
|
|
|
#!/bin/bash
|
|
|
|
swaylock="$HOME/Scripts/swaylock.sh"
|
|
|
|
screenon="swaymsg 'output * dpms on'"
|
|
|
|
screenoff="swaymsg 'output * dpms off'"
|
|
|
|
swayidle \
|
|
|
|
lock "$swaylock" \
|
2020-04-07 13:29:13 +03:00
|
|
|
unlock "pkill -9 swaylock" \
|
2020-01-19 21:54:25 +02:00
|
|
|
timeout 300 "lqsd -d" \
|
|
|
|
resume "lqsd -r" \
|
2020-04-07 13:29:13 +03:00
|
|
|
timeout 600 "loginctl lock-session" \
|
|
|
|
timeout 610 "$screenoff" \
|
2020-01-19 21:56:27 +02:00
|
|
|
resume "$screenon; lqsd -r" \
|
2020-04-09 16:23:51 +03:00
|
|
|
before-sleep "playerctl pause; loginctl lock-session"
|