mirror of
https://github.com/vincentbernat/i3wm-configuration.git
synced 2025-06-24 18:58:33 +02:00
polybar: display brightness
This commit is contained in:
parent
d2e9eb6aa3
commit
043fce1a58
2 changed files with 11 additions and 1 deletions
4
config
4
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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue