Keyboard Mapping for Raspbian

Hi,

I am running Raspbian Bullseye on my Pi-Top [1]. I remember that I mapped they Function Keys on the previous build but I cannot find any details on this after searching the web for over 2 hours I gave up:
Mute
Volume Down
Volume Up
Dim Screen
Bright Screen
File Manager
Terminal

Does anyone have the details about mapping these keys in Raspbian?

Thanks in advance!

Ok, strange, somehow they started working. It seems it added it by it self after a reboot.
But I did finally find what needs to be added to /etc/xdg/openbox/lxde-pi-rc.xml:

<keybind key="0xC6">
  <action name="Execute">
    <command>sh -c "if test -e /usr/bin/pt-brightness; then /usr/bin/pt-brightness -d; fi"</command>
  </action>
</keybind>
<keybind key="0xC7">
  <action name="Execute">
    <command>sh -c "if test -e /usr/bin/pt-brightness; then /usr/bin/pt-brightness -i; fi"</command>
  </action>
</keybind>
1 Like

How did you get it installed “/usr/bin/pt-brightness”
My is missing :frowning:

pi@pi-top:~ $ whereis pt-brightness
pt-brightness:

Sorry I am not sure anymore.

But the latest is
sudo apt install pi-top-os-apt-source -y
sudo apt update
sudo apt install --no-install-recommends pi-topd pt-miniscreen pt-firmware-updater

Then you can use:
sudo pt display brightness 9

1 Like