Compare commits
2 commits
d68b5ed583
...
c9f8069c24
| Author | SHA1 | Date | |
|---|---|---|---|
| c9f8069c24 | |||
| 54789106f8 |
2 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue