fix(backlight): use --class=backlight for brightnessctl
This commit is contained in:
parent
a436ad2b88
commit
d1dfc4bae4
2 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ in
|
||||||
options.modules.hardware.backlight = with types; {
|
options.modules.hardware.backlight = with types; {
|
||||||
enable = mkBoolOpt false;
|
enable = mkBoolOpt false;
|
||||||
initialValue = mkOpt str "50%";
|
initialValue = mkOpt str "50%";
|
||||||
initialCommand = mkOpt str "${getMainProgram pkgs.brightnessctl} set ${cfg.initialValue}";
|
initialCommand = mkOpt str "${getMainProgram pkgs.brightnessctl} set ${cfg.initialValue} --class=backlight";
|
||||||
};
|
};
|
||||||
|
|
||||||
config.systemd.services = mkIf cfg.enable {
|
config.systemd.services = mkIf cfg.enable {
|
||||||
|
|
|
@ -597,7 +597,7 @@ def init_widget_list(main=True, laptop=False):
|
||||||
]
|
]
|
||||||
if (
|
if (
|
||||||
backlight := run_command(
|
backlight := run_command(
|
||||||
"brightnessctl -lm | grep backlight"
|
"brightnessctl -lm --class=backlight"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
else []
|
else []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue