From 9febdc406e163ec2993443b5dcae9c782137c06e Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Fri, 7 Jul 2023 12:37:44 +0300 Subject: [PATCH] xorg.backlight --- config/sxhkd/sxhkdrc | 11 ++++++++++- hosts/sakotop/configuration.nix | 1 + modules/desktop/bspwm.nix | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) diff --git a/config/sxhkd/sxhkdrc b/config/sxhkd/sxhkdrc index bc0e8113..62ef2d4a 100644 --- a/config/sxhkd/sxhkdrc +++ b/config/sxhkd/sxhkdrc @@ -121,11 +121,20 @@ super + {Left,Down,Up,Right} bspc node -v {-20 0,0 20,0 -20,20 0} # -## audio and backlight +## audio # + XF86AudioRaiseVolume pactl set-sink-volume 0 +5% XF86AudioLowerVolume pactl set-sink-volume 0 -5% XF86AudioMute pactl set-sink-mute 0 toggle + +# +## backlight +# + +XF86MonBrightness{Up,Down} + xbacklight -{inc,dec} 5 & + diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 3f8ac078..1f8b64f0 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -139,6 +139,7 @@ rofi kitty polybar + xorg.xbacklight steam winetricks wineWowPackages.staging diff --git a/modules/desktop/bspwm.nix b/modules/desktop/bspwm.nix index 4f5e015c..c827b02a 100644 --- a/modules/desktop/bspwm.nix +++ b/modules/desktop/bspwm.nix @@ -25,6 +25,7 @@ in { (polybar.override { pulseSupport = true; }) + xorg.xbacklight ]; }; }