From aa974af1819b418500a8b94a531086b170972eac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 20 Jan 2022 15:40:35 +0100 Subject: sway: split config file --- config/sway/bindsym-system | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 config/sway/bindsym-system (limited to 'config/sway/bindsym-system') diff --git a/config/sway/bindsym-system b/config/sway/bindsym-system new file mode 100644 index 0000000..1c8eea4 --- /dev/null +++ b/config/sway/bindsym-system @@ -0,0 +1,13 @@ +# vim: ft=swayconfig +set $mode_system System (l) lock, (e) logout, (s) suspend, (r) reboot, (Shift+s) shutdown +mode "$mode_system" { + bindsym l exec --no-startup-id loginctl lock-session $XDG_SESSION_ID, mode "default" + bindsym e exec --no-startup-id swaymsg exit, mode "default" + bindsym s exec --no-startup-id loginctl suspend, mode "default" + bindsym r exec --no-startup-id loginctl reboot, mode "default" + bindsym Shift+s exec --no-startup-id loginctl poweroff, mode "default" + + bindsym Return mode "default" + bindsym Escape mode "default" +} +bindsym $mod+Shift+q mode "$mode_system" -- cgit v1.2.3