From 56762054428e1a5af8347d147bd1b93eaf9c0f84 Mon Sep 17 00:00:00 2001 From: Daniel Patterson Date: Sat, 18 Mar 2023 16:27:59 +0000 Subject: [PATCH] Add backlight --- users/daniel/configs/desktop/hyprland/hyprland.conf | 5 ++++- users/daniel/configs/desktop/waybar/config.json | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/users/daniel/configs/desktop/hyprland/hyprland.conf b/users/daniel/configs/desktop/hyprland/hyprland.conf index ac438de..8ac369b 100644 --- a/users/daniel/configs/desktop/hyprland/hyprland.conf +++ b/users/daniel/configs/desktop/hyprland/hyprland.conf @@ -145,9 +145,12 @@ bind = $mainMod, I, movetoworkspace, +1 bind = $mainMod SHIFT, space, togglefloating, 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=, XF86MonBrightnessUp, exec, xbacklight -inc 10 +binde=, XF86MonBrightnessDown, exec, xbacklight -dec 10 + # Move/resize windows with mainMod + LMB/RMB and dragging bindm = $mainMod, mouse:272, movewindow bindm = $mainMod, mouse:273, resizewindow diff --git a/users/daniel/configs/desktop/waybar/config.json b/users/daniel/configs/desktop/waybar/config.json index fbdbd8d..5987426 100644 --- a/users/daniel/configs/desktop/waybar/config.json +++ b/users/daniel/configs/desktop/waybar/config.json @@ -3,6 +3,7 @@ "modules-left": ["wlr/workspaces", "hyprland/window"], "modules-center": ["clock"], "modules-right": [ + "backlight", "pulseaudio", "network", "battery", @@ -15,6 +16,10 @@ }, "bat": { + }, + "backlight": { + "format": "{percent}% {icon}", + "format-icons": ["", ""] }, "wlr/workspaces": { "format": "{icon}",