mirror of
https://github.com/SeriousBug/dotfiles
synced 2024-12-04 18:30:37 -06:00
add backlight
This commit is contained in:
parent
a29efbd37f
commit
f59fad3203
|
@ -49,6 +49,7 @@ depends = ["theme", "system"]
|
|||
|
||||
[system.variables]
|
||||
has_battery = false
|
||||
intel_backlight = false
|
||||
|
||||
[theme.variables]
|
||||
# These are specified in bg-fg pairs, background and text color. The _fg color
|
||||
|
|
|
@ -270,6 +270,10 @@ bindsym $mod+c mode "screenshot"
|
|||
bindsym XF86AudioMute exec pactl set-sink-mute @DEFAULT_SINK@ toggle
|
||||
bindsym XF86AudioMicMute exec pactl set-source-mute @DEFAULT_SOURCE@ toggle
|
||||
|
||||
{{#if intel_backlight}}
|
||||
bindsym XF86MonBrightnessUp exec backlight-control +1
|
||||
bindsym XF86MonBrightnessDown exec backlight-control -1
|
||||
{{/if}}
|
||||
|
||||
#
|
||||
# Resizing containers:
|
||||
|
|
|
@ -10,6 +10,9 @@
|
|||
"modules-right": ["custom/media", "pulseaudio",
|
||||
{{#if has_battery}}
|
||||
"battery",
|
||||
{{/if}}
|
||||
{{#if intel_backlight}}
|
||||
"backlight",
|
||||
{{/if}}
|
||||
"cpu", "memory", "temperature", "sway/language", "clock", "tray", "custom/exit"],
|
||||
// Modules configuration
|
||||
|
@ -73,6 +76,8 @@
|
|||
"device": "intel_backlight",
|
||||
"format": "{percent}% {icon}",
|
||||
"format-icons": ["", ""],
|
||||
"on-scroll-up": "backlight-control +1",
|
||||
"on-scroll-down": "backlight-control -1"
|
||||
},
|
||||
"pulseaudio": {
|
||||
// "scroll-step": 1, // %, can be a float
|
||||
|
|
Loading…
Reference in a new issue