From fa0908b89a2e4503b2ccce12beea3da9ed05da2d Mon Sep 17 00:00:00 2001 From: Logan Gartner Date: Wed, 24 Jan 2024 11:27:20 -0700 Subject: [PATCH] Updated sway and Hyprland config to use brightnessctl --- .config/hypr/hyprland.conf | 4 ++-- .config/sway/config | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/hypr/hyprland.conf b/.config/hypr/hyprland.conf index f9ffa90..421ec6e 100644 --- a/.config/hypr/hyprland.conf +++ b/.config/hypr/hyprland.conf @@ -117,8 +117,8 @@ bindle=,XF86AudioLowerVolume, exec, wpctl set-volume -l 2.0 @DEFAULT_AUDIO_SINK@ bindle=,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle # Brightness -bind=,XF86MonBrightnessUp,exec,light -A 10 -bind=,XF86MonBrightnessDown,exec,light -U 10 +bind=,XF86MonBrightnessUp,exec,brightnessctl s +5% +bind=,XF86MonBrightnessDown,exec,brightnessctl s 5%- # Media controls bindle=,XF86AudioPlay, exec, ~/.config/i3/toggleplay.sh diff --git a/.config/sway/config b/.config/sway/config index cebe4e2..d86a2ef 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -206,8 +206,8 @@ bindsym $mod+Ctrl+Right move workspace to output right bindsym $mod+Ctrl+q exec swaymsg -t get_tree | jq '.. | select(.type?) | select(.focused==true) | .pid' | kill -9 $(cat /dev/stdin) # Screen brightness controls -bindsym XF86MonBrightnessUp exec light -A 10 # increase screen brightness -bindsym XF86MonBrightnessDown exec light -U 10 # decrease screen brightness +bindsym XF86MonBrightnessUp exec brightnessctl s +5% # increase screen brightness +bindsym XF86MonBrightnessDown exec brightnessctl s 5%- # decrease screen brightness # Touchpad controls #bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad