commit f6308a96e4ca57fca8a9e6d397abe0195fb8949a
parent e8606510a441e5968b5a5ad9973a9d2186568636
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Sat, 19 Jan 2019 11:30:06 -0500
[sway] Move logout to power mode.
Diffstat:
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/.config/sway/config b/.config/sway/config
@@ -114,9 +114,6 @@ client.background $base07
# reload the configuration file
bindsym $mod+Shift+c reload
- # exit sway (logs you out of your wayland session)
- bindsym $mod+Shift+e exit
-
#
# Moving around:
#
@@ -238,9 +235,11 @@ bindsym $mod+r mode "resize"
#
# System power:
#
-set $mode_power system: [h]ibernate [r]eboot [s]hutdown
+set $mode_power system: [h]ibernate [l]ogout [r]eboot [s]hutdown
mode "$mode_power" {
+ # exit sway (logs you out of your wayland session)
bindsym h mode "default"; exec $screenlocker; exec $hibernate
+ bindsym l mode "default"; exit
bindsym r mode "default"; exec $reboot
bindsym s mode "default"; exec $shutdown
# return to default mode