diff options
| -rw-r--r-- | hypr/hyprland/keybinds.conf | 4 | ||||
| -rwxr-xr-x | 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" |
