Hi,
I installed now OpenBSD on my Thinkpad T460 and some of the media-keys
don't work. The only keys that work are XF86AudioMute,
XF86AudioRaiseVolume and XF86AudioLowerVolume. The other keys do not
even register, when I use xev.
Any ideas where I could look further?
Especially annoying are the brightness-keys. Thus I thought I write a
script that will set the brightness for me. Since xbacklight tells me
"No outputs have backlight property", I am using wsconsctl
#!/bin/sh
level=`wsconsctl -n display.brightness | sed s/\%// | awk -F . '{print $1}'`
echo $level
echo $1
nlevel=`echo $level+$1 | bc`
echo $nlevel
wsconsctl display.brightness=$nlevel
I added in the doas.conf:
permit nopass user cmd sh args /home/user/bin/backlight.sh *
And it works fine when I use it in a terminal. But when I use it in the
xfce-keyboard-shortcuts like:
/usr/bin/doas /bin/sh /home/nik/bin/backlight.sh -10 with shift+super+j
nothing happens. Why could that be?
Niels