New monitor!!
This commit is contained in:
parent
4e0841d1b0
commit
7d6f1ee06c
|
@ -1,4 +1,8 @@
|
||||||
{pkgs, ...}: {
|
{
|
||||||
|
pkgs,
|
||||||
|
username,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./../../modules/core
|
./../../modules/core
|
||||||
|
@ -26,4 +30,9 @@
|
||||||
capSysAdmin = true;
|
capSysAdmin = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home-manager.users.${username}.wayland.windowManager.hyprland.settings.monitor = [
|
||||||
|
"HDMI-A-1, 1920x1080@60, 0x0, 1"
|
||||||
|
"DP-1, 2560x1440@165, 1920x0, 1.333333"
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,19 +25,14 @@
|
||||||
on-timeout = ckb-next --profile "Off" # turn off keyboard backlight.
|
on-timeout = ckb-next --profile "Off" # turn off keyboard backlight.
|
||||||
on-resume = ckb-next --profile "Personal" # turn on keyboard backlight.
|
on-resume = ckb-next --profile "Personal" # turn on keyboard backlight.
|
||||||
}
|
}
|
||||||
|
|
||||||
listener {
|
|
||||||
timeout = 330 # 5.5min
|
|
||||||
on-timeout = ddcmonitorctl off # screen off when timeout has passed
|
|
||||||
on-resume = ddcmonitorctl on # screen on when activity is detected after timeout has fired.
|
|
||||||
}
|
|
||||||
''
|
''
|
||||||
else ''
|
else null
|
||||||
listener {
|
)
|
||||||
timeout = 330 # 5.5min
|
+ ''
|
||||||
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
listener {
|
||||||
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
timeout = 330 # 5.5min
|
||||||
}
|
on-timeout = hyprctl dispatch dpms off # screen off when timeout has passed
|
||||||
''
|
on-resume = hyprctl dispatch dpms on # screen on when activity is detected after timeout has fired.
|
||||||
);
|
}
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue