cranberry: Backlighting
This commit is contained in:
parent
498357fffc
commit
ea1c390bc0
|
@ -13,6 +13,21 @@
|
||||||
frogeye.desktop = {
|
frogeye.desktop = {
|
||||||
x11_screens = [ "eDP-1" ];
|
x11_screens = [ "eDP-1" ];
|
||||||
maxVideoHeight = 1080;
|
maxVideoHeight = 1080;
|
||||||
|
|
||||||
|
phasesCommands = {
|
||||||
|
jour = ''
|
||||||
|
echo 0 | sudo tee /sys/class/leds/chromeos::kbd_backlight/brightness &
|
||||||
|
${pkgs.brightnessctl}/bin/brightnessctl set 30% &
|
||||||
|
'';
|
||||||
|
crepuscule = ''
|
||||||
|
echo 1 | sudo tee /sys/class/leds/chromeos::kbd_backlight/brightness &
|
||||||
|
${pkgs.brightnessctl}/bin/brightnessctl set 10% &
|
||||||
|
'';
|
||||||
|
nuit = ''
|
||||||
|
echo 10 | sudo tee /sys/class/leds/chromeos::kbd_backlight/brightness &
|
||||||
|
${pkgs.brightnessctl}/bin/brightnessctl set 0% &
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Alt key swallowed the Meta one
|
# Alt key swallowed the Meta one
|
||||||
|
@ -26,6 +41,5 @@
|
||||||
nixos-hardware.nixosModules.common-gpu-amd
|
nixos-hardware.nixosModules.common-gpu-amd
|
||||||
nixos-hardware.nixosModules.common-pc-laptop
|
nixos-hardware.nixosModules.common-pc-laptop
|
||||||
nixos-hardware.nixosModules.common-pc-ssd
|
nixos-hardware.nixosModules.common-pc-ssd
|
||||||
# TODO Fix sound
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,6 +19,7 @@ in
|
||||||
sudo "$switch" boot &
|
sudo "$switch" boot &
|
||||||
fi
|
fi
|
||||||
${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands}
|
${builtins.getAttr phase.command config.frogeye.desktop.phasesCommands}
|
||||||
|
wait
|
||||||
''))
|
''))
|
||||||
phases) ++ (with pkgs; [
|
phases) ++ (with pkgs; [
|
||||||
brightnessctl
|
brightnessctl
|
||||||
|
|
Loading…
Reference in a new issue