2023-08-30 16:35:25 +02:00
|
|
|
{ ... }: {
|
|
|
|
xdg.configFile."wlogout/layout" = {
|
|
|
|
enable = true;
|
|
|
|
target = "./wlogout/layout";
|
|
|
|
text = ''
|
|
|
|
{
|
2023-08-30 17:04:36 +02:00
|
|
|
"label" : "lock",
|
|
|
|
"action" : "swaylock",
|
|
|
|
"text" : "Lock",
|
2023-08-30 16:35:25 +02:00
|
|
|
"keybind" : "l"
|
|
|
|
}
|
|
|
|
{
|
2023-08-30 17:04:36 +02:00
|
|
|
"label" : "hibernate",
|
|
|
|
"action" : "systemctl hibernate",
|
|
|
|
"text" : "Hibernate",
|
2023-08-30 16:35:25 +02:00
|
|
|
"keybind" : "h"
|
|
|
|
}
|
|
|
|
{
|
2023-08-30 17:04:36 +02:00
|
|
|
"label" : "logout",
|
|
|
|
"action" : "loginctl terminate-user $USER",
|
|
|
|
"text" : "Logout",
|
2023-08-30 16:35:25 +02:00
|
|
|
"keybind" : "e"
|
|
|
|
}
|
|
|
|
{
|
2023-08-30 17:04:36 +02:00
|
|
|
"label" : "shutdown",
|
|
|
|
"action" : "systemctl poweroff",
|
|
|
|
"text" : "Shutdown",
|
2023-08-30 16:35:25 +02:00
|
|
|
"keybind" : "s"
|
|
|
|
}
|
|
|
|
{
|
2023-08-30 17:04:36 +02:00
|
|
|
"label" : "suspend",
|
|
|
|
"action" : "systemctl suspend",
|
|
|
|
"text" : "Suspend",
|
2023-08-30 16:35:25 +02:00
|
|
|
"keybind" : "u"
|
|
|
|
}
|
|
|
|
{
|
2023-08-30 17:04:36 +02:00
|
|
|
"label" : "reboot",
|
|
|
|
"action" : "systemctl reboot",
|
|
|
|
"text" : "Reboot",
|
2023-08-30 16:35:25 +02:00
|
|
|
"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;
|
2023-08-30 17:15:46 +02:00
|
|
|
font-size: 0px;
|
2023-08-30 17:18:20 +02:00
|
|
|
border-radius: 5000px;
|
2023-08-30 17:17:51 +02:00
|
|
|
margin: 25px;
|
2023-08-30 16:35:25 +02:00
|
|
|
background-color: #1E1E1E;
|
|
|
|
border-style: solid;
|
2023-08-30 17:16:33 +02:00
|
|
|
border-width: 3px;
|
2023-08-30 16:35:25 +02:00
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-position: center;
|
|
|
|
background-size: 25%;
|
|
|
|
}
|
|
|
|
|
2023-08-30 17:13:43 +02:00
|
|
|
button:active, button:hover {
|
2023-08-30 17:15:46 +02:00
|
|
|
background-color: #504945;
|
2023-08-30 17:04:36 +02:00
|
|
|
outline-style: none;
|
2023-08-30 16:35:25 +02:00
|
|
|
}
|
|
|
|
|
2023-08-30 17:10:26 +02:00
|
|
|
#lock {
|
2023-08-31 13:58:36 +02:00
|
|
|
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/lock.png");
|
2023-08-30 17:10:26 +02:00
|
|
|
}
|
|
|
|
#logout {
|
2023-08-31 13:58:36 +02:00
|
|
|
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/logout.png");
|
2023-08-30 17:10:26 +02:00
|
|
|
}
|
|
|
|
#suspend {
|
2023-08-31 13:58:36 +02:00
|
|
|
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/suspend.png");
|
2023-08-30 17:10:26 +02:00
|
|
|
}
|
|
|
|
#hibernate {
|
2023-08-31 13:58:36 +02:00
|
|
|
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/hibernate.png");
|
2023-08-30 17:10:26 +02:00
|
|
|
}
|
|
|
|
#shutdown {
|
2023-08-31 13:58:36 +02:00
|
|
|
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/shutdown.png");
|
2023-08-30 17:10:26 +02:00
|
|
|
}
|
|
|
|
#reboot {
|
2023-08-31 13:58:36 +02:00
|
|
|
background-image: url("/etc/nixos/git/home-manager/common/desktops/hyprland/_default/wlogout/reboot.png");
|
2023-08-30 17:10:26 +02:00
|
|
|
}
|
2023-08-30 16:35:25 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|