13 lines
327 B
Plaintext
Executable file
13 lines
327 B
Plaintext
Executable file
#!/bin/execlineb -P
|
|
importas SWAYIDLE_LOCK SWAYIDLE_LOCK
|
|
importas SWAYIDLE_TURN_OFF SWAYIDLE_TURN_OFF
|
|
|
|
swayidle -w
|
|
timeout ${SWAYIDLE_LOCK} "run_on_lock"
|
|
timeout ${SWAYIDLE_TURN_OFF} "toggle_monitors off"
|
|
resume "toggle_monitors on"
|
|
after-resume "toggle_monitors on"
|
|
before-sleep "run_on_lock"
|
|
lock "run_on_lock"
|
|
idlehint 1200
|