fix swayidle
This commit is contained in:
parent
882dd9fd6a
commit
8bf8ab1181
|
@ -6,10 +6,10 @@ PartOf=graphical-session.target
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=/usr/bin/swayidle -w \
|
ExecStart=/usr/bin/swayidle -w \
|
||||||
timeout 600 'lock' \
|
timeout 600 'echo RELOADAGENT | gpg-connect-agent; swaylock -f' \
|
||||||
timeout 30 'if pgrep swaylock; then swaymsg "output * dpms off"; fi' \
|
timeout 30 'if pgrep swaylock; then swaymsg "output * dpms off"; fi' \
|
||||||
resume 'if pgrep swaylock; then swaymsg "output * dpms on"; fi' \
|
resume 'if pgrep swaylock; then swaymsg "output * dpms on"; fi' \
|
||||||
before-sleep 'lock'
|
before-sleep 'echo RELOADAGENT | gpg-connect-agent; swaylock -f'
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=sway-session.target
|
WantedBy=sway-session.target
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 42bb2bf48bef881be504278cf5156371b542cf81
|
Subproject commit 476f6ca69922c9e67c408ae92dff0eb0ccb8ee51
|
|
@ -1,9 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
unset LD_PRELOAD
|
|
||||||
|
|
||||||
# flush gpg-agent cache
|
|
||||||
echo RELOADAGENT | gpg-connect-agent
|
|
||||||
|
|
||||||
# lock
|
|
||||||
exec swaylock
|
|
Loading…
Reference in New Issue