Let me explain it more clearly...
]]>Thanks
]]>"xvkbd -text 'foo'"
b:9
"xvkbd -text 'bar'"
release + b:9
does what i expect it to do (print foo on keypress and bar on keyrelease)
So what i need is a program/script to switch the mod4...
xmacroplay seems buggy here, creating infinite keypress and keyrelease events.
xdotool seems fine for
xdotool keydown a
but
xdotool keydown super|Super_L|shift
and similar don't do what I want.
]]>"/usr/bin/xvkbd -text '\[XF86Forward]'"
b:9
you probably can't bind to mod4 because X doesn't recognise it directly. also, you'll have to install xvkbd
]]>I want to map the Mod4 modifier (aka as Super or Windowskey) to the button 9 on my mouse.
Problems so far are, xmodmap needs a keycode or keysym, which the button doesn't have or xev doesn't show.
xbindkeys can use the button, but (afaik) only send a command when the key is pressed, which works for most things but modifier keys.
My next idea is: most apps do a "history forward" when i press that button. So either it is convention that button 9 should do that "forward" or something (maybe the driver itself?) maps this to button 9. If the latter is true, I could be able to change it to mod4, but i don't know much about it.
Or is a nice app out there I don't know about? Any input for my issue is welcome.
]]>