dend: home parts

This commit is contained in:
2026-03-27 19:38:47 +01:00
parent a5c8c05c7c
commit 5c784e659f
19 changed files with 275 additions and 5 deletions

View File

@@ -0,0 +1,71 @@
{
flake.homeModules.wlogout = {
programs.wlogout.enable = true;
programs.wlogout.layout = [
{
label = "shutdown";
action = "systemctl poweroff";
text = "Shutdown";
keybind = "s";
}
{
label = "reboot";
action = "systemctl reboot";
text = "Reboot";
keybind = "r";
}
{
label = "logout";
action = "loginctl kill-session $XDG_SESSION_ID";
text = "Logout";
keybind = "e";
}
{
label = "hibernate";
action = "hyprlock --immediate & (sleep 1; systemctl hibernate -i)";
text = "Hibernate";
keybind = "h";
}
{
label = "lock";
action = "hyprlock";
text = "Lock";
keybind = "l";
}
];
programs.wlogout.style = builtins.readFile ./style.css;
xdg.enable = true;
xdg.configFile = {
"wlogout/icons/hibernate.png" = {
source = ./icons/hibernate.png;
};
"wlogout/icons/lock.png" = {
source = ./icons/lock.png;
};
"wlogout/icons/logout.png" = {
source = ./icons/logout.png;
};
"wlogout/icons/power.png" = {
source = ./icons/power.png;
};
"wlogout/icons/restart.png" = {
source = ./icons/restart.png;
};
"wlogout/icons/hibernate-hover.png" = {
source = ./icons/hibernate-hover.png;
};
"wlogout/icons/lock-hover.png" = {
source = ./icons/lock-hover.png;
};
"wlogout/icons/logout-hover.png" = {
source = ./icons/logout-hover.png;
};
"wlogout/icons/power-hover.png" = {
source = ./icons/power-hover.png;
};
"wlogout/icons/restart-hover.png" = {
source = ./icons/restart-hover.png;
};
};
};
}