Add wlogout as a keybind instead of pure swaylock
diff --git a/src/apps/personal/sway.nix b/src/apps/personal/sway.nix
index 79c3946..9d04423 100644
--- a/src/apps/personal/sway.nix
+++ b/src/apps/personal/sway.nix
@@ -34,7 +34,7 @@
};
};
keybindings = lib.mkOptionDefault {
- "${modifier}+l" = "exec /usr/bin/env swaylock -c 000000";
+ "${modifier}+l" = "exec /usr/bin/env wlogout -c 5 -r 5 -p layer-shell -l ${./sway/wlogout-layout.layout}"; # "exec /usr/bin/env swaylock -c 000000";
"XF86AudioRaiseVolume" = "exec volumectl -u up";
"XF86AudioLowerVolume" = "exec volumectl -u down";
"XF86AudioMute" = "exec volumectl toggle-mute";
diff --git a/src/apps/personal/sway/wlogout-layout.layout b/src/apps/personal/sway/wlogout-layout.layout
new file mode 100644
index 0000000..13d32a0
--- /dev/null
+++ b/src/apps/personal/sway/wlogout-layout.layout
@@ -0,0 +1,36 @@
+{
+ "label" : "lock",
+ "action" : "swaylock -c 000000",
+ "text" : "Lock",
+ "keybind" : "l"
+}
+{
+ "label" : "hibernate",
+ "action" : "systemctl hibernate",
+ "text" : "Hibernate",
+ "keybind" : "h"
+}
+{
+ "label" : "logout",
+ "action" : "loginctl terminate-user $USER",
+ "text" : "Logout",
+ "keybind" : "e"
+}
+{
+ "label" : "shutdown",
+ "action" : "systemctl poweroff",
+ "text" : "Shutdown",
+ "keybind" : "s"
+}
+{
+ "label" : "suspend",
+ "action" : "systemctl suspend",
+ "text" : "Suspend",
+ "keybind" : "u"
+}
+{
+ "label" : "reboot",
+ "action" : "systemctl reboot",
+ "text" : "Reboot",
+ "keybind" : "r"
+}