nix/home-manager/hosts/nixos-laptop/desktops/hyprland/gruvbox/wlogout.nix

96 lines
2.7 KiB
Nix
Raw Normal View History

2023-08-30 16:35:25 +02:00
{ ... }: {
xdg.configFile."wlogout/layout" = {
enable = true;
target = "./wlogout/layout";
text = ''
{
"label" : "lock",
"action" : "swaylock",
2023-08-30 16:50:51 +02:00
"text" : "
Lock",
2023-08-30 16:35:25 +02:00
"keybind" : "l"
}
{
"label" : "hibernate",
"action" : "systemctl hibernate",
"text" : "Hibernate",
"keybind" : "h"
}
{
"label" : "logout",
"action" : "loginctl terminate-user $USER",
2023-08-30 16:50:24 +02:00
"text" : "󰍃",
2023-08-30 16:35:25 +02:00
"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"
}
'';
};
xdg.configFile."wlogout/style.css" = {
enable = true;
target = "./wlogout/style.css";
text = ''
* {
background-image: none;
}
window {
background-color: rgba(50, 48, 47, 0.8);
}
button {
color: #d5c4a1;
background-color: #1E1E1E;
border-style: solid;
border-width: 2px;
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
2023-08-30 16:40:54 +02:00
font-size: 96px;
2023-08-30 16:35:25 +02:00
}
button:focus, button:active, button:hover {
background-color: #a89984;
outline-style: none;
}
#lock {
2023-08-30 16:37:54 +02:00
background-image: url("/usr/local/share/wlogout/icons/lock.png");
2023-08-30 16:35:25 +02:00
}
#logout {
2023-08-30 16:37:54 +02:00
background-image: url("/usr/local/share/wlogout/icons/logout.png");
2023-08-30 16:35:25 +02:00
}
#suspend {
2023-08-30 16:37:54 +02:00
background-image: url("/usr/local/share/wlogout/icons/suspend.png");
2023-08-30 16:35:25 +02:00
}
#hibernate {
2023-08-30 16:37:54 +02:00
background-image: url("/usr/local/share/wlogout/icons/hibernate.png");
2023-08-30 16:35:25 +02:00
}
#shutdown {
2023-08-30 16:37:54 +02:00
background-image: url("/usr/local/share/wlogout/icons/shutdown.png");
2023-08-30 16:35:25 +02:00
}
#reboot {
2023-08-30 16:37:54 +02:00
background-image: url("/usr/local/share/wlogout/icons/reboot.png");
2023-08-30 16:35:25 +02:00
}
'';
};
}