124 lines
2.9 KiB
Nix
124 lines
2.9 KiB
Nix
{
|
|
pkgs,
|
|
configPath,
|
|
...
|
|
}: {
|
|
programs.wlogout = {
|
|
enable = true;
|
|
layout = [
|
|
{
|
|
label = "lock";
|
|
action = "hyprlock";
|
|
text = "Lock";
|
|
keybind = "l";
|
|
}
|
|
{
|
|
label = "hibernate";
|
|
action = "systemctl hibernate";
|
|
text = "Hibernate";
|
|
keybind = "h";
|
|
}
|
|
{
|
|
label = "logout";
|
|
action = "hyprctl dispatch exit 0";
|
|
text = "Logout";
|
|
keybind = "e";
|
|
}
|
|
{
|
|
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";
|
|
}
|
|
];
|
|
style = ''
|
|
* {
|
|
font-family: JetBrainsMono Nerd Font;
|
|
font-size: 14px;
|
|
background-image: none;
|
|
}
|
|
|
|
window {
|
|
background-color: rgba(13, 14, 21, 0.9);
|
|
}
|
|
|
|
button {
|
|
color: #BCADBB;
|
|
background-color: rgba(26, 27, 38, 0.9);
|
|
border-style: solid;
|
|
border-width: 2px;
|
|
border-color: #101C2F;
|
|
border-radius: 16px;
|
|
background-repeat: no-repeat;
|
|
background-position: center;
|
|
background-size: 35%;
|
|
margin: 10px;
|
|
transition: all 0.3s cubic-bezier(.55,-0.68,.48,1.682);
|
|
}
|
|
|
|
button:focus,
|
|
button:active,
|
|
button:hover {
|
|
background-color: rgba(16, 28, 47, 0.95);
|
|
border-color: #f7768e;
|
|
color: #f7768e;
|
|
outline-style: none;
|
|
}
|
|
|
|
#lock {
|
|
background-image: url("${configPath}/assets/wlogout/lock.png");
|
|
}
|
|
#lock:hover {
|
|
background-image: url("${configPath}/assets/wlogout/lock.png");
|
|
}
|
|
|
|
#logout {
|
|
background-image: url("${configPath}/assets/wlogout/logout.png");
|
|
}
|
|
#logout:hover {
|
|
background-image: url("${configPath}/assets/wlogout/logout.png");
|
|
}
|
|
|
|
#suspend {
|
|
background-image: url("${configPath}/assets/wlogout/suspend.png");
|
|
}
|
|
#suspend:hover {
|
|
background-image: url("${configPath}/assets/wlogout/suspend.png");
|
|
}
|
|
|
|
#hibernate {
|
|
background-image: url("${configPath}/assets/wlogout/hibernate.png");
|
|
}
|
|
#hibernate:hover {
|
|
background-image: url("${configPath}/assets/wlogout/hibernate.png");
|
|
}
|
|
|
|
#shutdown {
|
|
background-image: url("${configPath}/assets/wlogout/shutdown.png");
|
|
}
|
|
#shutdown:hover {
|
|
background-image: url("${configPath}/assets/wlogout/shutdown.png");
|
|
}
|
|
|
|
#reboot {
|
|
background-image: url("${configPath}/assets/wlogout/reboot.png");
|
|
}
|
|
#reboot:hover {
|
|
background-image: url("${configPath}/assets/wlogout/reboot.png");
|
|
}
|
|
'';
|
|
};
|
|
}
|