2024-07-30 15:06:34 +01:00
|
|
|
{ config, fonts, ... }:
|
2024-07-07 08:47:50 +01:00
|
|
|
{
|
|
|
|
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 = "swaymsg exit";
|
|
|
|
text = "Logout";
|
|
|
|
keybind = "l";
|
|
|
|
}
|
|
|
|
];
|
2024-07-30 15:06:34 +01:00
|
|
|
style =
|
|
|
|
let
|
|
|
|
sc = config.scheme.withHashtag;
|
|
|
|
shutdownIcon = ./icons/shutdown.png;
|
|
|
|
rebootIcon = ./icons/reboot.png;
|
|
|
|
logoutIcon = ./icons/logout.png;
|
|
|
|
in
|
|
|
|
''
|
|
|
|
* {
|
|
|
|
font-size: ${toString fonts.sizes.popups}px;
|
|
|
|
font-family: "${fonts.sansSerif.name}";
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
window {
|
|
|
|
border: none;
|
|
|
|
background-color: transparent;
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
button {
|
|
|
|
background-color: ${sc.base00};
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-size: 25%;
|
|
|
|
box-shadow: none;
|
|
|
|
margin: 5px;
|
|
|
|
color: ${sc.base05};
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
button:hover {
|
|
|
|
background-color: ${sc.base01};
|
|
|
|
color: ${sc.base05};
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
button:focus {
|
|
|
|
background-color: ${sc.base02};
|
|
|
|
color: ${sc.base05};
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
#shutdown {
|
|
|
|
background-image: url("${shutdownIcon}");
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
#reboot {
|
|
|
|
background-image: url("${rebootIcon}");
|
|
|
|
}
|
2024-07-07 08:47:50 +01:00
|
|
|
|
2024-07-30 15:06:34 +01:00
|
|
|
#logout {
|
|
|
|
background-image: url("${logoutIcon}");
|
|
|
|
}
|
|
|
|
'';
|
2024-07-07 08:47:50 +01:00
|
|
|
};
|
|
|
|
}
|