key shortcuts feature

Asked by eddiecsilva on 2009-01-23

Congratulations for the project, Alltray is very useful to me.
I wonder if you want to add support for shortcut keys to restore the programs sent to the tray?

Question information

English Edit question
AllTray Edit question
No assignee Edit question
Solved by:
Michael B. Trausch
Last query:
Last reply:
Best Michael B. Trausch (mtrausch) said : #1

Hello to you, and thanks!

I believe that the functionality you're referring to is already there; it's the --key (or -k) option. You can tell AllTray to use a function key, or the scroll lock key, or some other key you do not use. Here are a few examples:

Use the F12 key for show/hide:
 $ alltray -k F12 xterm

Use Scroll Lock (had to get the keycode from 'xev'):
 $ alltray -k 78 xterm

AllTray currently claims that it supports the use of modifier keys, but I am not certain that they are working correctly; either I am patently stupid and can't get them to work on my system, or they are broken. Using a single key like F12 or Scroll Lock seems to work just fine, though.

eddiecsilva (eddiecsilva) said : #2

Hello Michael!
When I read the "help" I do not understand the function of "-k" ... sorry my fault.
Your tip works perfectly using the keycode able to xev, thank you for your response!

eddiecsilva (eddiecsilva) said : #3

Thanks Michael B. Trausch, that solved my question.