sway: Simplify session lock and exit keybinds
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
9f3f50476e
commit
1c49fe7ca4
13
sway/config
13
sway/config
|
@ -6,9 +6,8 @@ set $right n
|
|||
|
||||
set $term alacritty
|
||||
set $menu wofi --show drun --insensitive | xargs swaymsg exec --
|
||||
set $swayexit swaynag -t warning \
|
||||
-m 'You pressed the exit shortcut. Do you really want to exit sway? This will end your Wayland session.' \
|
||||
-B 'Yes, exit sway' 'swaymsg exit'
|
||||
set $lock swaylock
|
||||
set $exit swaynag -t warning -m 'Exit sway?' -B 'Yes, exit' 'swaymsg exit'
|
||||
|
||||
set $vienna_lat 48.2
|
||||
set $vienna_long 16.4
|
||||
|
@ -18,9 +17,9 @@ output * background ~/.config/sway/background.png fill #5fb2d0
|
|||
|
||||
# Idle/screenlock
|
||||
exec swayidle -w \
|
||||
timeout 300 swaylock \
|
||||
timeout 300 $lock \
|
||||
timeout 600 'swaymsg "output * dpms off"' resume 'swaymsg "output * dpms on"' \
|
||||
before-sleep swaylock
|
||||
before-sleep $lock
|
||||
|
||||
# Display temperature
|
||||
exec $wlsunset
|
||||
|
@ -47,8 +46,8 @@ default_border none
|
|||
# Key bindings
|
||||
bindsym $mod+Return exec $term
|
||||
bindsym $mod+u exec $menu
|
||||
bindsym $mod+l exec swaylock
|
||||
bindsym $mod+Shift+e exec $swayexit
|
||||
bindsym $mod+l exec $lock
|
||||
bindsym $mod+Shift+e exec $exit
|
||||
# Kill focused window
|
||||
bindsym $mod+Shift+q kill
|
||||
# Reload the configuration file
|
||||
|
|
Reference in a new issue