From df9175a7ebf9b06b127cec3a9a384e758e50935b Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 15 Jul 2024 13:45:52 -0500 Subject: [PATCH] graphical/bars/waybar: power menu logout from sway --- .../programs/graphical/bars/waybar/modules/custom-modules.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/home/programs/graphical/bars/waybar/modules/custom-modules.nix b/modules/home/programs/graphical/bars/waybar/modules/custom-modules.nix index b442a7201..fc861adac 100644 --- a/modules/home/programs/graphical/bars/waybar/modules/custom-modules.nix +++ b/modules/home/programs/graphical/bars/waybar/modules/custom-modules.nix @@ -134,6 +134,7 @@ in terminal = getExe config.programs.kitty.package; top = getExe config.programs.btop.package; hyprctl = getExe' config.wayland.windowManager.hyprland.package "hyprctl"; + swaymsg = getExe' config.wayland.windowManager.sway.package "swaymsg"; in { inherit poweroff reboot; @@ -142,7 +143,7 @@ in lock = "${lock} --immediate"; suspend = "${systemctl} suspend"; top = "${terminal} ${top}"; - logout = "${hyprctl} dispatch exit && ${systemctl} --user exit "; + logout = "$(${hyprctl} dispatch exit || ${swaymsg} exit) && ${systemctl} --user exit "; }; };