mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 17:43:55 -05:00
Aly Raffauf
da2cbecbe7
* switch default gtk theme and colors to adw-gtk3 * vscodium: move to adwaita * home/theme: switch qt theme to Adwaita-dark * wlogout: migrate to adwaita and improve look and feel * nixpkgs: remove adwaita overrides * plymouth: remove catppuccin theme * home/chromium: remove catppuccin theme * emacs: remove catppuccin * home/neovim: catppuccin -> ayu * nixos/base: remove catppuccin console colors * home/theme: switch to Bibata cursors * nixos/lightdm: conform to default home theme * home: remove theme overrides * qlogout: fix regression with button:focus keeping entries highlighted when unhovered * format with alejandra * home/waybar: match colors to adwaita * home/fuzzel: match selection colors with theme.colors * mauville: remove overrided vscode theme * aly: use firefox gnome theme * rustboro: decrease cursor size override * nixos/options: remove catppuccin references * home/theme: fixed regression in theme.gtk.hideTitleBar
90 lines
2.8 KiB
Nix
90 lines
2.8 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}: {
|
|
config = lib.mkIf config.ar.home.apps.wlogout.enable {
|
|
programs.wlogout = {
|
|
enable = true;
|
|
|
|
layout = [
|
|
{
|
|
label = "logout";
|
|
action = ''${lib.getExe' pkgs.systemd "loginctl"} terminate-user ${config.home.username}'';
|
|
text = "logout (e)";
|
|
keybind = "e";
|
|
}
|
|
{
|
|
label = "shutdown";
|
|
action = ''${lib.getExe' pkgs.systemd "systemctl"} poweroff'';
|
|
text = "shutdown (s)";
|
|
keybind = "s";
|
|
}
|
|
{
|
|
label = "reboot";
|
|
action = ''${lib.getExe' pkgs.systemd "systemctl"} reboot'';
|
|
text = "reboot (r)";
|
|
keybind = "r";
|
|
}
|
|
];
|
|
|
|
style = ''
|
|
* {
|
|
background-image: none;
|
|
box-shadow: none;
|
|
font-family: "${config.ar.home.theme.font.name}", sans-serif;
|
|
transition: 20ms;
|
|
}
|
|
|
|
window {
|
|
background-color: rgba(35, 38, 52, 0.8);
|
|
}
|
|
|
|
button {
|
|
background-color: ${config.ar.home.theme.colors.background};
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-size: 25%;
|
|
border-color: ${config.ar.home.theme.colors.primary};
|
|
border-radius: 10;
|
|
border-style: solid;
|
|
border-width: 2;
|
|
color: ${config.ar.home.theme.colors.text};
|
|
margin: 5px;
|
|
text-decoration-color: ${config.ar.home.theme.colors.text};
|
|
}
|
|
|
|
button:active, button:hover {
|
|
background-color: ${config.ar.home.theme.colors.primary};
|
|
outline-style: none;
|
|
}
|
|
|
|
#lock {
|
|
background-image: image(url("${config.programs.wlogout.package}/share/wlogout/icons/lock.png"), url("/usr/local/share/wlogout/icons/lock.png"));
|
|
}
|
|
|
|
#logout {
|
|
background-image: image(url("${config.programs.wlogout.package}/share/wlogout/icons/logout.png"), url("/usr/local/share/wlogout/icons/logout.png"));
|
|
}
|
|
|
|
#suspend {
|
|
background-image: image(url("${config.programs.wlogout.package}/share/wlogout/icons/suspend.png"), url("/usr/local/share/wlogout/icons/suspend.png"));
|
|
}
|
|
|
|
#hibernate {
|
|
background-image: image(url("${config.programs.wlogout.package}/share/wlogout/icons/hibernate.png"), url("/usr/local/share/wlogout/icons/hibernate.png"));
|
|
}
|
|
|
|
#shutdown {
|
|
background-image: image(url("${config.programs.wlogout.package}/share/wlogout/icons/shutdown.png"), url("/usr/local/share/wlogout/icons/shutdown.png"));
|
|
}
|
|
|
|
#reboot {
|
|
background-image: image(url("${config.programs.wlogout.package}/share/wlogout/icons/reboot.png"), url("/usr/local/share/wlogout/icons/reboot.png"));
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|