Skip to content

Commit

Permalink
Update swaylock and swayidle settings
Browse files Browse the repository at this point in the history
  • Loading branch information
esensar committed Aug 29, 2024
1 parent 69664b4 commit 12c4382
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
11 changes: 5 additions & 6 deletions symlinks/config/sway/conf.d/20_lockconfig
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'
6 changes: 3 additions & 3 deletions symlinks/config/sway/conf.d/71_system_menu
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ set $mode_system "System (l) lock, (e) logout, (s) suspend, (h) hibernate, (r) r

# System mode - system menu
mode $mode_system {
bindsym l exec --no-startup-id $locker, mode "default"
bindsym l exec --no-startup-id swaylock, mode "default"
bindsym e exec --no-startup-id swaymsg exit, mode "default"
bindsym s exec --no-startup-id $locker && systemctl suspend, mode "default"
bindsym h exec --no-startup-id $locker && systemctl hibernate, mode "default"
bindsym s exec --no-startup-id swaylock && systemctl suspend, mode "default"
bindsym h exec --no-startup-id swaylock && systemctl hibernate, mode "default"
bindsym r exec --no-startup-id systemctl reboot, mode "default"
bindsym Shift+s exec --no-startup-id systemctl poweroff -i, mode "default"

Expand Down

0 comments on commit 12c4382

Please sign in to comment.