Skip to content

Commit

Permalink
graphical/bars/waybar: power menu logout from sway
Browse files Browse the repository at this point in the history
  • Loading branch information
khaneliman committed Jul 15, 2024
1 parent 49056e6 commit df9175a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 ";
};
};

Expand Down

0 comments on commit df9175a

Please sign in to comment.