hyprland: added wlogout

This commit is contained in:
Aly Raffauf 2024-03-29 23:27:08 -04:00
parent 342104225b
commit a08e2e7ece
4 changed files with 35 additions and 1 deletions

View file

@ -11,6 +11,7 @@
guiApps.waybar.enable = lib.mkDefault true;
guiApps.mako.enable = lib.mkDefault true;
guiApps.fuzzel.enable = lib.mkDefault true;
guiApps.wlogout.enable = lib.mkDefault true;
guiApps.alacritty.enable = lib.mkDefault true;
# Packages that should be installed to the user profile.

View file

@ -111,6 +111,8 @@ decoration {
layerrule = blur, notifications
layerrule = ignorezero, notifications
layerrule = blur, logout_dialog
}
animations {
@ -180,7 +182,7 @@ bind = $mainMod, B, exec, $browser
# Manage session.
bind = $mainMod, C, killactive,
bind = $mainMod, M, exit,
bind = $mainMod, M, exec, wlogout
bind = $mainMod, L, exec, hyprlock --immediate
# Basic window management.

View file

@ -14,6 +14,7 @@
./vsCodium
./waybar
./webCord
./wlogout
./zoom
];

View file

@ -0,0 +1,30 @@
{ pkgs, lib, config, ... }: {
options = { guiApps.wlogout.enable = lib.mkEnableOption "Enables wlogout."; };
config = lib.mkIf config.guiApps.wlogout.enable {
programs.wlogout = {
enable = true;
layout = [
{
label = "logout";
action = "loginctl terminate-user $USER";
text = "Logout";
keybind = "e";
}
{
label = "shutdown";
action = "systemctl poweroff";
text = "Shutdown";
keybind = "s";
}
{
label = "reboot";
action = "systemctl reboot";
text = "Reboot";
keybind = "r";
}
];
};
};
}