mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 11:43:55 -05:00
hyprland: added wlogout
This commit is contained in:
parent
342104225b
commit
a08e2e7ece
|
@ -11,6 +11,7 @@
|
||||||
guiApps.waybar.enable = lib.mkDefault true;
|
guiApps.waybar.enable = lib.mkDefault true;
|
||||||
guiApps.mako.enable = lib.mkDefault true;
|
guiApps.mako.enable = lib.mkDefault true;
|
||||||
guiApps.fuzzel.enable = lib.mkDefault true;
|
guiApps.fuzzel.enable = lib.mkDefault true;
|
||||||
|
guiApps.wlogout.enable = lib.mkDefault true;
|
||||||
guiApps.alacritty.enable = lib.mkDefault true;
|
guiApps.alacritty.enable = lib.mkDefault true;
|
||||||
|
|
||||||
# Packages that should be installed to the user profile.
|
# Packages that should be installed to the user profile.
|
||||||
|
|
|
@ -111,6 +111,8 @@ decoration {
|
||||||
|
|
||||||
layerrule = blur, notifications
|
layerrule = blur, notifications
|
||||||
layerrule = ignorezero, notifications
|
layerrule = ignorezero, notifications
|
||||||
|
|
||||||
|
layerrule = blur, logout_dialog
|
||||||
}
|
}
|
||||||
|
|
||||||
animations {
|
animations {
|
||||||
|
@ -180,7 +182,7 @@ bind = $mainMod, B, exec, $browser
|
||||||
|
|
||||||
# Manage session.
|
# Manage session.
|
||||||
bind = $mainMod, C, killactive,
|
bind = $mainMod, C, killactive,
|
||||||
bind = $mainMod, M, exit,
|
bind = $mainMod, M, exec, wlogout
|
||||||
bind = $mainMod, L, exec, hyprlock --immediate
|
bind = $mainMod, L, exec, hyprlock --immediate
|
||||||
|
|
||||||
# Basic window management.
|
# Basic window management.
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
./vsCodium
|
./vsCodium
|
||||||
./waybar
|
./waybar
|
||||||
./webCord
|
./webCord
|
||||||
|
./wlogout
|
||||||
./zoom
|
./zoom
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
30
homeManagerModules/guiApps/wlogout/default.nix
Normal file
30
homeManagerModules/guiApps/wlogout/default.nix
Normal 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";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue