I'm using xbacklight to increment and decrement by 10% and run the comment using my keyboard function keys (Arch Linux, i3-wm):
bindsym XF86MonBrightnessDown exec --no-startup-id xbacklight -dec 10
It works, but the inc/dec values are inconsistent. By this I mean, it doesn't stick to the 10% value I specified. It can jump from 100% to 87.78932% when using the bindsym shortcut (values chosen here are an example, it appears to be random and happens in both inc and dec commands). This is exacerbated if I press the keyboard shortcut quickly in repetition, or press and hold the shortcut. Manually running the xbacklight commands in terminal does not seem to replicate the issue. It doesn't happen every time. If I slowly tap the shortcut quickly I can get it to step in 10's.
My guess is that the bindsym command is firing too quickly to keep up with the inc/dec value specifed, resulting in these inconsistent values. I've attempted to use the --release command with bindsym, but it doesn't appear to work (unrelated issue I assume).
Any suggestions on what I could try? Or anyone know why I'm seeing what I'm seeing?