polybar: display brightness

This commit is contained in:
Vincent Bernat 2021-07-05 08:28:06 +02:00
parent d2e9eb6aa3
commit 043fce1a58
2 changed files with 11 additions and 1 deletions

4
config
View file

@ -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

View file

@ -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 = <label>
label =  %percentage: 2%%
[module/cpu]
type = internal/cpu
interval = 2