Updated sway and Hyprland config to use brightnessctl

This commit is contained in:
Logan G 2024-01-24 11:27:20 -07:00
parent a563d3cc4f
commit fa0908b89a
Signed by: logan
GPG key ID: E328528C921E7A7A
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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