key shortcuts feature

Asked by Edson C da Silva

Hello!
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

Language:
English Edit question
Status:
Solved
For:
AllTray Edit question
Assignee:
No assignee Edit question
Solved by:
Michael B. Trausch
Solved:
Last query:
Last reply:
Revision history for this message
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.

Revision history for this message
Edson C da Silva (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!

Revision history for this message
Edson C da Silva (eddiecsilva) said :
#3

Thanks Michael B. Trausch, that solved my question.