From ec9e16502d94555f139c5045897e7f7faab08c47 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Wed, 22 Jul 2026 16:31:30 +0530 Subject: brigthtness fix --- hypr/hyprland/keybinds.conf | 4 ++-- quickshell/scripts/brightness.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hypr/hyprland/keybinds.conf b/hypr/hyprland/keybinds.conf index 2b6eb7b..b7a0245 100644 --- a/hypr/hyprland/keybinds.conf +++ b/hypr/hyprland/keybinds.conf @@ -59,8 +59,8 @@ bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%- bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle -bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 5%+ -bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 5%- +bindel = ,XF86MonBrightnessUp, exec, brightnessctl -e4 -n2 set 100%+ +bindel = ,XF86MonBrightnessDown, exec, brightnessctl -e4 -n2 set 100%- # Requires playerctl bindl = ,XF86AudioNext, exec, playerctl next diff --git a/quickshell/scripts/brightness.sh b/quickshell/scripts/brightness.sh index ccb2bc2..a39b85d 100755 --- a/quickshell/scripts/brightness.sh +++ b/quickshell/scripts/brightness.sh @@ -1,4 +1,4 @@ -brightness=$(brightnessctl | grep 'Current brightness' | grep -o '[0-9]\+' | head -n 1) +brightness=$(cat /sys/class/backlight/acpi_video0/actual_brightness) temp=$(hyprctl hyprsunset temperature 2>/dev/null | grep -o '[0-9]\+') if [ -z "$temp" ]; then temp=6000; fi echo "$brightness $temp" -- cgit v1.2.3