Add backlight

This commit is contained in:
2023-03-18 16:27:59 +00:00
parent 640cc21cc1
commit 5676205442
2 changed files with 9 additions and 1 deletions

View File

@@ -145,9 +145,12 @@ bind = $mainMod, I, movetoworkspace, +1
bind = $mainMod SHIFT, space, togglefloating, bind = $mainMod SHIFT, space, togglefloating,
binde=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%- binde=, XF86AudioLowerVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%-
bind=, XF86AudioMute, exec, wpctl set-mute -l 1.0 @DEFAULT_AUDIO_SINK@ toggle bind=, XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+ binde=, XF86AudioRaiseVolume, exec, wpctl set-volume -l 1.0 @DEFAULT_AUDIO_SINK@ 5%+
binde=, XF86MonBrightnessUp, exec, xbacklight -inc 10
binde=, XF86MonBrightnessDown, exec, xbacklight -dec 10
# Move/resize windows with mainMod + LMB/RMB and dragging # Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow bindm = $mainMod, mouse:273, resizewindow

View File

@@ -3,6 +3,7 @@
"modules-left": ["wlr/workspaces", "hyprland/window"], "modules-left": ["wlr/workspaces", "hyprland/window"],
"modules-center": ["clock"], "modules-center": ["clock"],
"modules-right": [ "modules-right": [
"backlight",
"pulseaudio", "pulseaudio",
"network", "network",
"battery", "battery",
@@ -15,6 +16,10 @@
}, },
"bat": { "bat": {
},
"backlight": {
"format": "{percent}% {icon}",
"format-icons": ["", ""]
}, },
"wlr/workspaces": { "wlr/workspaces": {
"format": "{icon}", "format": "{icon}",