2023-09-24 13:05:26 +01:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
programs.wlogout = {
|
|
|
|
enable = true;
|
|
|
|
layout = [
|
|
|
|
{
|
|
|
|
label = "reboot";
|
|
|
|
action = "systemctl reboot";
|
|
|
|
text = "Reboot";
|
|
|
|
keybind = "r";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "shutdown";
|
|
|
|
action = "systemctl poweroff";
|
|
|
|
text = "Shutdown";
|
|
|
|
keybind = "s";
|
|
|
|
}
|
|
|
|
{
|
|
|
|
label = "logout";
|
|
|
|
action = "hyprctl dispatch exit";
|
|
|
|
text = "Logout";
|
|
|
|
keybind = "l";
|
|
|
|
}
|
|
|
|
];
|
2023-10-17 09:57:53 +01:00
|
|
|
style = with config.lib.stylix.colors.withHashtag;
|
|
|
|
let
|
|
|
|
font-family = config.stylix.fonts.sansSerif.name;
|
|
|
|
shutdownIcon = ./icons/shutdown.png;
|
|
|
|
rebootIcon = ./icons/reboot.png;
|
|
|
|
logoutIcon = ./icons/logout.png;
|
|
|
|
in ''
|
|
|
|
* { font-family: "${font-family}"; }
|
2023-10-07 10:19:56 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
window {
|
|
|
|
border: none;
|
|
|
|
background: transparent;
|
|
|
|
}
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
button {
|
|
|
|
border: ${base0D};
|
|
|
|
background-color: alpha(${base00}, 0.8);
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-size: 25%;
|
|
|
|
box-shadow: none;
|
|
|
|
margin: 5px;
|
|
|
|
font-size: 20px;
|
|
|
|
color: ${base05};
|
|
|
|
}
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
button:hover {
|
|
|
|
background-color: ${base01};
|
|
|
|
color: ${base05};
|
|
|
|
}
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
button:focus {
|
|
|
|
background-color: ${base03};
|
|
|
|
color: ${base05};
|
|
|
|
}
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
#shutdown {
|
|
|
|
background-image: url("${shutdownIcon}");
|
|
|
|
}
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
#reboot {
|
|
|
|
background-image: url("${rebootIcon}");
|
|
|
|
}
|
2023-09-24 13:05:26 +01:00
|
|
|
|
2023-10-17 09:57:53 +01:00
|
|
|
#logout {
|
|
|
|
background-image: url("${logoutIcon}");
|
|
|
|
}
|
|
|
|
'';
|
2023-09-24 13:05:26 +01:00
|
|
|
};
|
|
|
|
}
|