fix(hypr): make sure hypridle runs
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
Updater 2024-05-25 21:17:31 -04:00
parent 1e448f8ae2
commit 4da31089e7

View file

@ -5,7 +5,7 @@
pkgs,
...
}: let
inherit (lib) mkIf;
inherit (lib) mkIf optionals;
inherit (config.vars) mainUser;
isLaptop = config.services.logind.lidSwitch == "lock";
@ -36,15 +36,20 @@ in {
services.hypridle = mkIf isLaptop {
enable = true;
package = hypridle.packages.${pkgs.system}.default;
settings.general.lock_cmd = "${lockPkg}/bin/lock";
};
wayland.windowManager.hyprland = {
settings = {
exec-once = [
"gnome-keyring-daemon --start --components=secrets"
"${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
];
exec-once =
[
"gnome-keyring-daemon --start --components=secrets"
"${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
]
++ optionals isLaptop [
"systemctl --user restart hypridle"
];
windowrule = [
"float,^(org.kde.polkit-kde-authentication-agent-1)$"