-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update swaylock and swayidle settings
- Loading branch information
Showing
2 changed files
with
8 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
# Define locker script | ||
set $locker 'swaylock' | ||
bindsym $alt+L exec $locker | ||
bindsym $alt+L exec 'swaylock' | ||
|
||
# IDLE CONFIG | ||
exec swayidle -w \ | ||
timeout 300 $locker \ | ||
timeout 330 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \ | ||
timeout 300 'swaylock' \ | ||
timeout 330 'swaymsg "output * dpms off"' \ | ||
resume 'swaymsg "output * dpms on"' \ | ||
timeout 600 'systemctl suspend' \ | ||
before-sleep $locker \ | ||
before-sleep 'playerctl pause' | ||
before-sleep 'swaylock; playerctl pause' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters