fix(hypr): make sure hypridle runs
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
1e448f8ae2
commit
4da31089e7
1 changed files with 10 additions and 5 deletions
|
@ -5,7 +5,7 @@
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) mkIf;
|
inherit (lib) mkIf optionals;
|
||||||
inherit (config.vars) mainUser;
|
inherit (config.vars) mainUser;
|
||||||
|
|
||||||
isLaptop = config.services.logind.lidSwitch == "lock";
|
isLaptop = config.services.logind.lidSwitch == "lock";
|
||||||
|
@ -36,15 +36,20 @@ in {
|
||||||
|
|
||||||
services.hypridle = mkIf isLaptop {
|
services.hypridle = mkIf isLaptop {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = hypridle.packages.${pkgs.system}.default;
|
||||||
settings.general.lock_cmd = "${lockPkg}/bin/lock";
|
settings.general.lock_cmd = "${lockPkg}/bin/lock";
|
||||||
};
|
};
|
||||||
|
|
||||||
wayland.windowManager.hyprland = {
|
wayland.windowManager.hyprland = {
|
||||||
settings = {
|
settings = {
|
||||||
exec-once = [
|
exec-once =
|
||||||
"gnome-keyring-daemon --start --components=secrets"
|
[
|
||||||
"${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
|
"gnome-keyring-daemon --start --components=secrets"
|
||||||
];
|
"${pkgs.plasma5Packages.polkit-kde-agent}/libexec/polkit-kde-authentication-agent-1"
|
||||||
|
]
|
||||||
|
++ optionals isLaptop [
|
||||||
|
"systemctl --user restart hypridle"
|
||||||
|
];
|
||||||
|
|
||||||
windowrule = [
|
windowrule = [
|
||||||
"float,^(org.kde.polkit-kde-authentication-agent-1)$"
|
"float,^(org.kde.polkit-kde-authentication-agent-1)$"
|
||||||
|
|
Loading…
Reference in a new issue