First off, I understand that this can be achieved with xmodmap, but I read of some compatibility issues with sxhdkrc so I have been reluctant to try.
I have recently installed endeavour bspwm and am having issues with the brightness keys on my laptop. In Sxhdkrc its under:
xbacklight -inc 5
xbacklight -dec 5
After I saw this I tried using the xbacklight commands and they work, albeit only in sudo (maybe that’s the problem?).
The keys I wish to bind show up in
sudo showkey &
sudo showkey -s as:
keycode 225 press
keycode 225 release
0xe0 0x54 0xe0 0xd4
keycode 224 press
keycode 224 release
0xe0 0x4c 0xe0 0xcc
I thought it was strange that the scan codes were in groups of 4, which made it worse when I eventually tried to change the X keysms config file and realized my codes were much shorter than the ones in those mappings.
Can anyone show me how I can change the values behind the XF86MonBrightnessUp key and other media keys?
The mappings for my volume keys are correct however they are jumping to around 35% volume from mute with only one press, then climb up at strange rates from there. In
sudo showkey -s I noticed that those keys also were showing 4 outputs. Could this be a reason why?
I also noticed that in the polybar config file there were lines stating:
; Interval for volume increase/decrease (in percent points)
; Default: 5
interval = 5