land.nix: add brightness controls

This commit is contained in:
Charlie Root 2024-08-28 12:52:57 +02:00
commit 73bec6209c

View file

@ -113,6 +113,7 @@ in {
"special:nixos, decorate:false" "special:nixos, decorate:false"
"special:keepassxc, decorate:false" "special:keepassxc, decorate:false"
]; ];
# Input settings # Input settings
input = { input = {
kb_layout = "de,us"; kb_layout = "de,us";
@ -279,13 +280,13 @@ in {
bindle = let bindle = let
volume_up = "${pkgs.pamixer}/bin/pamixer -ui 5"; volume_up = "${pkgs.pamixer}/bin/pamixer -ui 5";
volume_down = "${pkgs.pamixer}/bin/pamixer -ud 5"; volume_down = "${pkgs.pamixer}/bin/pamixer -ud 5";
brightness_up = "${pkgs.brighnessctl}/bin/brighnessctl set +5%"; brightness_up = "${pkgs.brightnessctl}/bin/brightnessctl set +10%";
brightness_down = "${pkgs.brighnessctl}/bin/brighnessctl set 5%-"; brightness_down = "${pkgs.brightnessctl}/bin/brightnessctl set 10%-";
in [ in [
", XF86AudioRaiseVolume, exec, ${volume_up}" ", XF86AudioRaiseVolume, exec, ${volume_up}"
", XF86AudioLowerVolume, exec, ${volume_down}" ", XF86AudioLowerVolume, exec, ${volume_down}"
", XF86MonBrighnessUp, exec, ${brightness_up}" ", XF86MonBrightnessUp, exec, ${brightness_up}"
", XF86MonBrighnessDown, exec, ${brightness_down}" ", XF86MonBrightnessDown, exec, ${brightness_down}"
]; ];
# Mouse settings # Mouse settings
@ -299,6 +300,7 @@ in {
pass_mouse_when_bound = false; pass_mouse_when_bound = false;
movefocus_cycles_fullscreen = false; movefocus_cycles_fullscreen = false;
}; };
# Programs which get executed at Hyprland start. # Programs which get executed at Hyprland start.
exec-once = [ exec-once = [
"hyprctl setcursor ${cursor.name} ${toString cursor.size}" "hyprctl setcursor ${cursor.name} ${toString cursor.size}"