deprecate stylix, fix minor gripes and bugs

This commit is contained in:
alisceon 2026-05-22 19:48:24 +02:00
parent 6b492bad2f
commit fb1ad8d919
42 changed files with 951 additions and 688 deletions

View file

@ -1,12 +1,21 @@
{ ... }:
{ theme, ... }:
let
p = theme.palette;
fonts = theme.fonts;
fontSize = toString fonts.sizes.applications;
in
{
services.mako = {
enable = true;
settings = {
actions = true;
anchor = "top-center";
background-color = "${p.darkestGray}FF";
border-color = p.purple;
border-radius = 0;
default-timeout = 10000;
font = "${fonts.sansSerif.name} ${fontSize}";
height = 100;
width = 600;
icons = true;
@ -14,6 +23,18 @@
layer = "overlay";
margin = 10;
markup = true;
progress-color = "over ${p.darkGray}";
text-color = p.lightGray;
"urgency=critical" = {
background-color = "${p.darkestGray}FF";
border-color = p.red;
text-color = p.lightGray;
};
"urgency=low" = {
background-color = "${p.darkestGray}FF";
border-color = p.gray;
text-color = p.lightGray;
};
};
};
}

View file

@ -25,11 +25,23 @@ in
command = "${pkgs.systemd}/bin/systemctl suspend";
}
];
events = {
before-sleep = "display off; systemctl --user stop libinput-gestures; ${lock}";
after-resume = "display on; systemctl --user start libinput-gestures";
lock = (display "off") + "; " + lock;
unlock = display "on";
};
events = [
{
event = "before-sleep";
command = "display off; systemctl --user stop libinput-gestures; ${lock}";
}
{
event = "after-resume";
command = "display on; systemctl --user start libinput-gestures";
}
{
event = "lock";
command = (display "off") + "; " + lock;
}
{
event = "unlock";
command = display "on";
}
];
};
}