diff --git a/bin/brightness b/bin/brightness new file mode 100755 index 0000000..073e25a --- /dev/null +++ b/bin/brightness @@ -0,0 +1,7 @@ +#!/bin/sh + +# Set brightness and sleep a bit before reading back the value + +brightnessctl -q set $1 +sleep 0.1 +brightnessctl > /dev/null diff --git a/config b/config index 93eb1da..c864ad4 100644 --- a/config +++ b/config @@ -39,8 +39,8 @@ bindsym XF86AudioPrev exec --no-startup-id exec playerctl -p $mediaplayer bindsym $mod+s exec --no-startup-id exec ~/.config/i3/bin/rofi-mediaplayer $mediaplayer # brightness -bindsym XF86MonBrightnessUp exec --no-startup-id exec brightnessctl -q set +5% -bindsym XF86MonBrightnessDown exec --no-startup-id exec brightnessctl -q set 5%- +bindsym XF86MonBrightnessUp exec --no-startup-id exec ~/.config/i3/bin/brightness 5%+ +bindsym XF86MonBrightnessDown exec --no-startup-id exec ~/.config/i3/bin/brightness 5%- # use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod