Added laptop idle controls
This commit is contained in:
parent
8ee47ab5a6
commit
2facf100c7
@ -0,0 +1,5 @@
|
||||
### -*-conf-space-*- ###
|
||||
# Laptop Lid Switch Bindings #
|
||||
### ###
|
||||
|
||||
bindswitch lid:on loginctl lock-session
|
||||
@ -1,9 +0,0 @@
|
||||
# -*-conf-*-
|
||||
|
||||
timeout 10 'pgrep swaylock &> /dev/null && swaymsg "output * power off"' resume 'pgrep swaylock &> /dev/null && swaymsg "output * power on"'
|
||||
timeout 15 'pgrep swaylock &> /dev/null && pkill -u 1000 -SIGSTOP electron' resume 'pgrep swaylock &> /dev/null && pkill -u 1000 -SIGCONT electron'
|
||||
lock ~/.local/bin/screenlock
|
||||
before-sleep 'loginctl lock-session'
|
||||
unlock 'pkill -9 swaylock'
|
||||
idlehint 600
|
||||
|
||||
1
.config/sway/swayidle
Symbolic link
1
.config/sway/swayidle
Symbolic link
@ -0,0 +1 @@
|
||||
swayidle##class.desktop
|
||||
9
.config/sway/swayidle##class.desktop
Normal file
9
.config/sway/swayidle##class.desktop
Normal file
@ -0,0 +1,9 @@
|
||||
# -*-conf-*-
|
||||
|
||||
timeout 10 'pgrep swaylock &> /dev/null && swaymsg "output * power off"' resume 'pgrep swaylock &> /dev/null && swaymsg "output * power on"'
|
||||
timeout 15 'pgrep swaylock &> /dev/null && pkill -u 1000 -SIGSTOP electron' resume 'pgrep swaylock &> /dev/null && pkill -u 1000 -SIGCONT electron'
|
||||
lock ~/.local/bin/screenlock
|
||||
before-sleep 'loginctl lock-session'
|
||||
unlock 'pkill -SIGUSR1 swaylock'
|
||||
idlehint 600
|
||||
|
||||
8
.config/sway/swayidle##class.laptop
Normal file
8
.config/sway/swayidle##class.laptop
Normal file
@ -0,0 +1,8 @@
|
||||
# -*-conf-*-
|
||||
|
||||
timeout 10 'pgrep swaylock &> /dev/null && swaymsg output "*" power off' resume 'pgrep swaylock &> /dev/null && swaymsg output "*" power on'
|
||||
lock ~/.local/bin/screenlock
|
||||
before-sleep 'loginctl lock-session'
|
||||
unlock 'pkill -SIGUSR1 swaylock'
|
||||
idlehint 600
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user