feat(void): add brightness control keybinds
This commit is contained in:
parent
2a3da177f1
commit
a48ad48523
2 changed files with 8 additions and 1 deletions
7
void.nix
7
void.nix
|
|
@ -1,7 +1,7 @@
|
|||
# Edit this configuration file to define what should be installed on
|
||||
# your system. Help is available in the configuration.nix(5) man page
|
||||
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
||||
{ config, ... }:
|
||||
{ config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./hardware-configuration-void.nix
|
||||
|
|
@ -46,4 +46,9 @@
|
|||
];
|
||||
boot.kernelModules = ["i2c-dev" "ddcci_backlight"];
|
||||
hardware.i2c.enable = true;
|
||||
|
||||
# package for controlling brightness on external monitor
|
||||
environment.systemPackages = [
|
||||
pkgs.ddcutil
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ in {
|
|||
# screen backlight brightness control
|
||||
riverctl map -repeat normal None XF86MonBrightnessDown spawn 'brightnessctl set 1%-'
|
||||
riverctl map -repeat normal None XF86MonBrightnessUp spawn 'brightnessctl set 1%+'
|
||||
riverctl map -repeat normal Super 'Prior' spawn 'ddcutil setvcp 10 + 10'
|
||||
riverctl map -repeat normal Super 'Next' spawn 'ddcutil setvcp 10 - 10'
|
||||
|
||||
# layout management
|
||||
riverctl map -repeat normal Super+Alt H send-layout-cmd rivertile 'main-ratio -0.05'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue