Compare commits

...

2 commits

2 changed files with 9 additions and 0 deletions

View file

@ -116,6 +116,9 @@
# Setup gpu fan curves and light undervolt
services.lact.enable = true;
# Setup display brightness changing using ddcutil
hardware.i2c.enable = true;
# Setup rgb control
services.hardware.openrgb.enable = true;
@ -291,6 +294,7 @@
lm_sensors
libva-utils
alsa-utils
ddcutil
];
# Enable nixd to see nixpkgs path

View file

@ -276,9 +276,14 @@ in {
];
bindel = [
# Volume bindings
", XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+ --limit 1 && ${volume-notify}/bin/volume-notify"
", XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- --limit 1 && ${volume-notify}/bin/volume-notify"
", XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle && ${volume-notify}/bin/volume-notify"
# Brightness bindings
"$mod, XF86AudioRaiseVolume, exec, ddcutil -d 1 setvcp 10 + 5"
"$mod, XF86AudioLowerVolume, exec, ddcutil -d 1 setvcp 10 - 5"
];
# Requires playerctl