Finally made swayidle and swaylock work lol
This commit is contained in:
parent
d0f8e2fabc
commit
e51120125b
4 changed files with 35 additions and 5 deletions
|
@ -28,9 +28,8 @@ output DP-1 bg ~/.local/share/wallpapers/bg2 fill
|
|||
|
||||
### Idle configuration
|
||||
exec swayidle -w \
|
||||
timeout 300 'swaylock -f -c 000000' \
|
||||
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock -f -c 000000'
|
||||
timeout 600 'swaylock & swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep 'swaylock'
|
||||
|
||||
font terminus 8
|
||||
smart_borders no_gaps
|
||||
|
|
|
@ -179,8 +179,7 @@ mode "resize" {
|
|||
bindsym $mod+r mode "resize"
|
||||
|
||||
# Turn off all displays (useful on laptops)
|
||||
bindsym $mod+Alt+c exec killall -SIGUSR1 swayidle
|
||||
|
||||
bindsym $mod+Alt+c exec sleep 1 && killall -SIGUSR1 swayidle
|
||||
|
||||
# Volume control
|
||||
bindsym --locked XF86AudioLowerVolume exec pactl set-sink-volume @DEFAULT_SINK@ -2%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue