diff options
author | Ben Burwell <ben@benburwell.com> | 2019-12-15 16:25:49 -0500 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-12-15 16:25:49 -0500 |
commit | b6415d5041adc90a63874f3b465a1422ef1afb3e (patch) | |
tree | 983378a7006471bc3237a7f8a59329785c5649de | |
parent | 8b6c88935fe2745e6c52a3f03c02cfc249420ce3 (diff) |
sway: add poweroff and reboot shortcuts
-rw-r--r-- | templates/.config/sway/config | 2 |
1 files changed, 2 insertions, 0 deletions
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 |