From b6415d5041adc90a63874f3b465a1422ef1afb3e Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sun, 15 Dec 2019 16:25:49 -0500 Subject: sway: add poweroff and reboot shortcuts --- templates/.config/sway/config | 2 ++ 1 file changed, 2 insertions(+) diff --git a/templates/.config/sway/config b/templates/.config/sway/config index 62ce805..a9275d1 100644 --- a/templates/.config/sway/config +++ b/templates/.config/sway/config @@ -62,6 +62,8 @@ input "1133:16493:Logitech_M705" { # Exit sway (logs you out of your Wayland session) bindsym $mod+Shift+e exec swaynag -t warning -m 'Do you really want to exit sway?' -b 'Yes, exit sway' 'swaymsg exit' + bindsym $mod+Shift+z exec swaynag -t warning -m 'Do you really want to power off?' -b 'Yes, power off' 'sudo poweroff' + bindsym $mod+Shift+r exec swaynag -t warning -m 'Do you really want to reboot?' -b 'Yes, reboot' 'sudo reboot' # Lock the screen bindsym $mod+Shift+q exec swaylock -c 000000 -- cgit v1.2.3