allowed backlight control on non-intel gpus.

This commit is contained in:
Gabe Venberg 2023-07-16 01:10:24 -05:00
parent 3346f10e7e
commit f7c9498e70

View file

@ -188,8 +188,8 @@ font pango:DejaVu Sans Mono 8
bindsym $mod+shift+b exec --no-startup-id "xset +dpms; notify-send --expire-time=500 'screen blanking on'" bindsym $mod+shift+b exec --no-startup-id "xset +dpms; notify-send --expire-time=500 'screen blanking on'"
# change brightness # change brightness
bindsym $mod+control+plus exec --no-startup-id "xbacklight -inc 10; notify-send --expire-time=500 Brightness\ $(xbacklight -get | cut --delimiter=. -f 1)" bindsym $mod+control+plus exec --no-startup-id "brightnessctl s +10%; notify-send --expire-time=500 Brightness\ $(brightnessctl -m| cut --delimiter=, -f 4)"
bindsym $mod+control+minus exec --no-startup-id "xbacklight -dec 10; notify-send --expire-time=500 Brightness\ $(xbacklight -get | cut --delimiter=. -f 1)" bindsym $mod+control+minus exec --no-startup-id "brightnessctl s 10%-; notify-send --expire-time=500 Brightness\ $(brightnessctl -m| cut --delimiter=, -f 4)"
#screenshot everything with mod+s, current window with mod+shift+s, selection with mod+ctrl+s #screenshot everything with mod+s, current window with mod+shift+s, selection with mod+ctrl+s
bindsym $mod+s exec --no-startup-id "maim ~/Pictures/$(date +%s).png; notify-send --expire-time=1000 'Whole-desktop screenshot taken'" bindsym $mod+s exec --no-startup-id "maim ~/Pictures/$(date +%s).png; notify-send --expire-time=1000 'Whole-desktop screenshot taken'"