This commit is contained in:
2026-01-25 15:37:17 +00:00
parent c08192ac34
commit e5230def14
3 changed files with 55 additions and 13 deletions

View File

@@ -45,6 +45,48 @@ in
hyprlock = { hyprlock = {
enable = true; enable = true;
}; };
wlogout = {
enable = true;
layout = [
{
"label" = "lock";
"action" = "hyprlock";
"text" = "Lock";
"keybind" = "l";
}
{
"label" = "hibernate";
"action" = "systemctl hibernate";
"text" = "Hibernate";
"keybind" = "h";
}
{
"label" = "logout";
"action" = "uwsm stop";
"text" = "Logout";
"keybind" = "e";
}
{
# TODO add hypr shutdown
"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";
}
];
};
}; };
systemd.user.services."hyprland_suspend" = lib.mkIf cfg.suspend-on-hibernate { systemd.user.services."hyprland_suspend" = lib.mkIf cfg.suspend-on-hibernate {
Unit = { Unit = {

View File

@@ -1,21 +1,21 @@
{ inputs, pkgs, ... }: { inputs, pkgs, ... }:
{ {
home.packages = [ home.packages = [
pkgs.hyprlauncher pkgs.kickoff
]; ];
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
bind = [ bind = [
"$mainMod, R, exec, hyprlauncher" "$mainMod, R, exec, kickoff"
]; ];
}; };
systemd.user.services.hyprlauncher-deamon = { # systemd.user.services.hyprlauncher-deamon = {
Install = { # Install = {
WantedBy = [ "hyprland-session.target" ]; # WantedBy = [ "hyprland-session.target" ];
}; # };
Service = { # Service = {
ExecStart = "${pkgs.writeShellScript "watch-store" '' # ExecStart = "${pkgs.writeShellScript "watch-store" ''
hyprlauncher -d # hyprlauncher -d
''}"; # ''}";
}; # };
}; # };
} }

View File

@@ -102,7 +102,7 @@ in
"$mainMod" = "SUPER"; "$mainMod" = "SUPER";
bind = [ bind = [
"$mainMod, C, killactive" "$mainMod, C, killactive"
"$mainMod, M, exit" "$mainMod, M, exec, uwsm stop"
"$mainMod, E, exec, $fileManager" "$mainMod, E, exec, $fileManager"
"$mainMod, V, togglefloating," "$mainMod, V, togglefloating,"
"$mainMod, P, pseudo, # dwindle" "$mainMod, P, pseudo, # dwindle"