sway: Update swayidle config
This commit is contained in:
parent
49574935c3
commit
53f5aa18bc
2 changed files with 3 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
if [ "${1-}" = 'dim' ]; then
|
if [ "${1-}" = 'dim' ]; then
|
||||||
chayang
|
chayang -d 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec swaylock -f -e -F -k -l -c 000000 --indicator-idle-visible
|
exec swaylock -f -e -F -k -l -c 000000 --indicator-idle-visible
|
||||||
|
|
|
||||||
|
|
@ -149,11 +149,12 @@ bar {
|
||||||
set $locker '_locker'
|
set $locker '_locker'
|
||||||
set $dimmer '_locker dim'
|
set $dimmer '_locker dim'
|
||||||
set $suspend 'systemctl suspend'
|
set $suspend 'systemctl suspend'
|
||||||
bindsym $super+Shift+semicolon exec $locker
|
bindsym $super+Shift+semicolon exec 'loginctl lock-session'
|
||||||
# Automatically lock after 5 minutes, suspend after 5 more
|
# Automatically lock after 5 minutes, suspend after 5 more
|
||||||
exec swayidle -w \
|
exec swayidle -w \
|
||||||
timeout 300 $dimmer \
|
timeout 300 $dimmer \
|
||||||
timeout 600 $suspend \
|
timeout 600 $suspend \
|
||||||
|
lock $locker \
|
||||||
before-sleep $locker
|
before-sleep $locker
|
||||||
|
|
||||||
# Only show borders if there's more than one window
|
# Only show borders if there's more than one window
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue