Compare commits

...

2 commits

Author SHA1 Message Date
odrling 0a6f1b24eb
[s6] swayidle: use run_on_lock 2024-03-27 16:59:04 +01:00
odrling 411bd88ace
[odrbin] add run_on_lock 2024-03-27 16:58:51 +01:00
2 changed files with 7 additions and 5 deletions

4
.local/odrbin/run_on_lock Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
swaylock -f
gpg-connect-agent reloadagent /bye
pkill rbw-agent

View file

@ -3,12 +3,10 @@ importas SWAYIDLE_LOCK SWAYIDLE_LOCK
importas SWAYIDLE_TURN_OFF SWAYIDLE_TURN_OFF
swayidle -w
timeout ${SWAYIDLE_LOCK} "swaylock -f"
timeout ${SWAYIDLE_LOCK} "gpg-connect-agent reloadagent /bye"
timeout ${SWAYIDLE_LOCK} "pkill rbw-agent"
timeout ${SWAYIDLE_LOCK} "run_on_lock"
timeout ${SWAYIDLE_TURN_OFF} "toggle_monitors off"
resume "toggle_monitors on"
after-resume "toggle_monitors on"
before-sleep "swaylock -f"
lock "swaylock -f"
before-sleep "run_on_lock"
lock "run_on_lock"
idlehint 1200