niri: redo a lot

Signed-off-by: unexplrd <unexplrd@linerds.us>
This commit is contained in:
2025-07-19 13:19:54 +03:00
parent bba55dc973
commit c0d1341448
4 changed files with 424 additions and 263 deletions

View File

@ -1,27 +1,26 @@
{
# perSystem,
lib,
osConfig,
pkgs,
lockscreen,
...
}: {
}:
lib.attrsets.recursiveUpdate {
blueman-applet.enable = osConfig.services.blueman.enable;
swaync = import ./swaync;
copyq.enable = true;
gammastep.enable = true;
gnome-keyring.enable = true;
hypridle.enable = true;
kanshi = import ./kanshi;
network-manager-applet.enable = true;
playerctld.enable = true;
swaync = import ./swaync;
swayosd.enable = true;
udiskie.enable = true;
wpaperd.enable = true;
copyq = {
enable = true;
# package = perSystem.nixpkgs-stable.copyq;
};
gnome-keyring = {
enable = true;
components = ["secrets"];
};
}
{
gammastep = {
enable = true;
provider = "manual";
latitude = 49.6;
longitude = 36.1;
@ -31,34 +30,28 @@
night = 3000;
};
};
swayosd = {
enable = true;
topMargin = 0.8;
gnome-keyring.components = ["secrets"];
hypridle.settings = {
general = {
before_sleep_cmd = "loginctl lock-session";
lock_cmd = "pidof ${lockscreen} || ${lockscreen}";
# unlock_cmd = "loginctl unlock-session";
};
listener = [
{
timeout = 600;
on-timeout = "pidof ${lockscreen} || ${lockscreen}";
}
{
timeout = 601;
on-timeout = lib.getExe pkgs.niri + " msg action power-off-monitors";
}
];
};
swayosd.topMargin = 0.8;
udiskie = {
enable = true;
automount = false;
notify = true;
tray = "auto";
};
hypridle = {
enable = true;
settings = {
general = {
before_sleep_cmd = "loginctl lock-session";
lock_cmd = "pidof ${lockscreen} || ${lockscreen}";
# unlock_cmd = "loginctl unlock-session";
};
listener = [
{
timeout = 600;
on-timeout = "pidof ${lockscreen} || ${lockscreen}";
}
{
timeout = 601;
on-timeout = lib.getExe pkgs.niri + " msg action power-off-monitors";
}
];
};
};
}

View File

@ -17,7 +17,7 @@
control-center-layer = "overlay";
# Notification settings
positionX = "right";
positionX = "left";
positionY = "top";
notification-2fa-action = true;
notification-inline-replies = false;
@ -27,7 +27,7 @@
notification-window-width = 400;
# Control center settings
control-center-positionX = "right";
control-center-positionX = "left";
control-center-positionY = "top";
control-center-width = 500;
control-center-exclusive-zone = true;