nixos/home/hyprland/wlogout/default.nix
Evie Litherland-Smith e94a4dde31 Move font confit to flake.nix, add to stylix
Change fonts to all use Fira family, Fira Sans for UI Fira Sans Mono for
monospace and FiraCode still for Emacs
2023-10-07 10:19:56 +01:00

75 lines
1.5 KiB
Nix

{ 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";
}
];
style = let
shutdownIcon = ./icons/shutdown.png;
rebootIcon = ./icons/reboot.png;
logoutIcon = ./icons/logout.png;
in ''
* {
font-family: "Fira Sans";
}
window {
background: transparent;
}
button {
background-repeat: no-repeat;
background-position: center;
background-size: 25%;
border: none;
background-color: rgba(36, 39, 58, .5);
box-shadow: none;
margin: 5px;
font-size: 20px;
color: #6e738d;
}
button:hover {
background-color: rgba(183, 189, 248, .05);
color: #cad3f5;
}
button:focus {
background-color: rgba(202, 211, 245, .1);
color: #cad3f5;
}
#shutdown {
background-image: url("${shutdownIcon}");
}
#reboot {
background-image: url("${rebootIcon}");
}
#logout {
background-image: url("${logoutIcon}");
}
'';
};
}