add: brightness adjustment

This commit is contained in:
kenji
2025-12-26 13:33:11 -06:00
parent fe39db683a
commit 4b1d5c5f02
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -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 = [
+3
View File
@@ -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"];
} }