add: brightness adjustment
This commit is contained in:
@@ -7,6 +7,8 @@
|
|||||||
bindel = [
|
bindel = [
|
||||||
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
|
", XF86AudioRaiseVolume, exec, swayosd-client --output-volume raise"
|
||||||
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
|
", XF86AudioLowerVolume, exec, swayosd-client --output-volume lower"
|
||||||
|
", XF86MonBrightnessUp, exec, ddcutil setvcp 10 + 10"
|
||||||
|
", XF86MonBrightnessDown, exec, ddcutil setvcp 10 - 10"
|
||||||
];
|
];
|
||||||
|
|
||||||
bindl = [
|
bindl = [
|
||||||
|
|||||||
@@ -1,9 +1,12 @@
|
|||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
myConfig,
|
myConfig,
|
||||||
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
hardware.i2c.enable = true;
|
hardware.i2c.enable = true;
|
||||||
|
# boot.extraModulePackages = [config.boot.kernelPackages.ddcci-driver];
|
||||||
|
# boot.kernelModules = ["ddcci_backlight"];
|
||||||
environment.systemPackages = with pkgs; [ddcutil];
|
environment.systemPackages = with pkgs; [ddcutil];
|
||||||
users.users.${myConfig.nixos.username}.extraGroups = ["i2c"];
|
users.users.${myConfig.nixos.username}.extraGroups = ["i2c"];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user