mapping media keys
by wufo from LinuxQuestions.org on (#4RX90)
I have a Toshiba laptop that I wish to use the keyboard to toggle the touchpad on & off. I have a shell script that does that. My problem is mapping to the F5 key. Which has the mouse/no mouse logo
Now, on the Toshiba keyboard the Function keys double as media keys.
The keys act as media keys when pressed alone, and as regular function keys when used in conjunction with the FN key.
Using showkey yields the following
F5 alone = 530
fn+f5 = 63
I go to Settings->Keyboard to assign my script to a key. The problem is I cannot assign it to the F5 alone(530), only to fn+f5, which shows as F5 in the window.
Trying to assign it to F5(530) alone, the Keybord app does nothing and keeps saying "no key pressed".
I really don't want to use the F5(63) as it is used in some programs and the such. I would like to use the media key 530.
How can I get this mapping? Wher is there a file or what ever that holds these mappings?
tj


Now, on the Toshiba keyboard the Function keys double as media keys.
The keys act as media keys when pressed alone, and as regular function keys when used in conjunction with the FN key.
Using showkey yields the following
F5 alone = 530
fn+f5 = 63
I go to Settings->Keyboard to assign my script to a key. The problem is I cannot assign it to the F5 alone(530), only to fn+f5, which shows as F5 in the window.
Trying to assign it to F5(530) alone, the Keybord app does nothing and keeps saying "no key pressed".
I really don't want to use the F5(63) as it is used in some programs and the such. I would like to use the media key 530.
How can I get this mapping? Wher is there a file or what ever that holds these mappings?
tj