macbook: restore keyboard backlight to 10% on graphical login
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b97920df45
commit
7e59e8b2e8
1 changed files with 13 additions and 0 deletions
|
|
@ -36,6 +36,19 @@
|
|||
home-manager.users.fred = { ... }: {
|
||||
wayland.windowManager.hyprland.settings.monitor =
|
||||
[ ",preferred,auto,auto" ];
|
||||
|
||||
systemd.user.services.kbd-backlight-init = {
|
||||
Unit = {
|
||||
Description = "Set keyboard backlight to 10% on login";
|
||||
After = [ "graphical-session.target" ];
|
||||
PartOf = [ "graphical-session.target" ];
|
||||
};
|
||||
Service = {
|
||||
Type = "oneshot";
|
||||
ExecStart = "${pkgs.brightnessctl}/bin/brightnessctl -d smc::kbd_backlight set 10%";
|
||||
};
|
||||
Install.WantedBy = [ "graphical-session.target" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue