diff --git a/config b/config index 112b0b1..964c5c5 100644 --- a/config +++ b/config @@ -44,6 +44,10 @@ mode "mediaplayer" { } bindsym $mod+m mode "mediaplayer" +# Brightness +bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5% +bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%- + # use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod diff --git a/dotfiles/polybar.conf b/dotfiles/polybar.conf index 8e5764a..475d525 100644 --- a/dotfiles/polybar.conf +++ b/dotfiles/polybar.conf @@ -30,7 +30,7 @@ modules-center = date [bar/primary] inherit = bar/secondary -modules-right = cpu memory pulseaudio battery ethernet wlan +modules-right = cpu memory pulseaudio brightness battery ethernet wlan [module/i3] type = internal/i3 @@ -55,6 +55,12 @@ label-urgent = %name% label-urgent-background = #a00000 label-urgent-padding = 1 +[module/brightness] +type = internal/backlight +card = intel_backlight +format =