mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 21:01:34 +01:00
Improve deUtils dependency management
This commit is contained in:
parent
206c43f71a
commit
1f8cadb2dc
6 changed files with 32 additions and 9 deletions
|
|
@ -17,17 +17,17 @@
|
|||
|
||||
settings = {
|
||||
general = {
|
||||
lock_cmd = "pidof hyprlock || hyprlock";
|
||||
lock_cmd = lib.mkIf config.myConfig.deUtils.hyprlock.enable "pidof hyprlock || hyprlock";
|
||||
before_sleep_cmd = "loginctl lock-session";
|
||||
after_sleep_cmd = "hyprctl dispatch dpms on";
|
||||
};
|
||||
|
||||
listener = [
|
||||
{
|
||||
(lib.mkIf config.myConfig.deUtils.brightnessctl.enable {
|
||||
timeout = 5 * 60;
|
||||
on-timeout = "brightnessctl --save --exponent set 10%";
|
||||
on-resume = "brightnessctl --restore";
|
||||
}
|
||||
})
|
||||
{
|
||||
timeout = 10 * 60;
|
||||
on-timeout = "hyprctl dispatch dpms off";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue