Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for custom keyboard Shortcuts #196

Open
Robert-112 opened this issue Jan 26, 2023 · 0 comments
Open

Add Support for custom keyboard Shortcuts #196

Robert-112 opened this issue Jan 26, 2023 · 0 comments

Comments

@Robert-112
Copy link

Hello,

in some cases it is usefull to have cutom keyboard Shortcuts.

In my case i turned the monitor off with display-off.sh an than a node-js-script waits for websocket-call to turn on the montior with display-on.sh. That works great.
(for HDMI-TVs i used cec-on.sh and cec-off.sh)

But i found no way for the user to turn on the monitor by himself.

Since Matchbox is used as window-manager, i found a way, to lauch scripts with a keyboard-shortcut.

Therefore i did the following steps:

  • create a file `~/.matchbox/kbdconfig'
  • edit the file kbdconfig and add the following lines
  • <ctrl>n=!/home/pi/display-on.sh
  • <ctrl>b=!/home/pi/display-off.sh

(more exampels can be found in /etc/machtbox/kbdconfig)

After reboot i can turn on the mointor with CTRL+n an can turn it off with CTRL+b.

These shortcuts (or other) should be available in the image by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant