I want to map my Fn + Left (XF86audioprev) and Fn + Right (XF86audionext) keys to function as the "Home" (Num_Lock + 7) and "End" (Num_Lock + 1) keys.
I tried using xbindkeys with xte. At the beginning nothing happened when I pressed the buttons so I tried different things. I discovered that the xte commands where executed too early so I added a delay like suggested in another thread. I tried using 3 as the key to map and it works. This is what is written in the "/home/me/.xbindkeysrc" file:
#HomeFNLeft
"xte 'usleep 100000' 'key Num_Lock' 'key KP_Home' 'key Num_Lock'"
m:0x0 + c:12 + Release
3
This works perfectly but when I change the key to the Fn+Left this fails
#HomeFNLeft
"xte 'usleep 100000' 'key Num_Lock' 'key KP_Home' 'key Num_Lock'"
m:0x0 + c:173
XF86AudioPrev
The configuration above doesn't work. I don't know why. Is there an incompatibility between the media keys and xbindkeys? Thank you and hope you can help me.
My specs:
*OS: Ubuntu 16.04
*kernel: 4.8.0-58-generic
*Laptop Model: ASUS ROG Strix GL753VD