I'm trying bind a button on my mouse to show the Gnome Shell Activities overview. I'm using xbindkeys to bind actions to my mouse buttons.
I tried using the following xte command to show the Activities overview:
xte 'keydown Alt_L' 'key F1' 'keyup Alt_L'
This works fine when executed in the terminal, but doesn't work with xbindkeys for some reason.
I got it working in the end by adding the
release
modifier to the xbindkeys config. I have no idea why the press event doesn't work but the release event does.The final xbindkeys config ended up being:
I just found your Question over Google. I was searching for this Command. The Command
xte 'keydown Alt_L' 'key F1' 'keyup Alt_L'
works great with easystroke. You can find easystroke in the USC.My English is not very got so i made a HowTo Picure. I hope it helps you http://ubuntuone.com/6sQIXcRIt7aP3SEzEKvRcC
I had the same problem. Here's what the command looked like in HOME/.xbindkeysrc:
Note: The xbindkeysrc file was created with command :
(And this is obviously after installing xautomation.) I also changed the command in Gnome from Alt+F1 to Ctrl+F1 - just to see if that made a difference. It did, but only after installing and running Easystroke. I also changed the ALT/WIN to "Meta is Mapped to Left Win" based on some other posts but this didn't help. So:
After installing easystroke and starting it, the Ctrl+F1 combination worked (somehow, easystroke reset something that allowed xbindkeys to work, even though I assigned no actions in easystroke). If I turned off easystroke, xbindkeys also stopped working.
After installing easystroke and starting it, the Alt+F1 combination did not work (I obviously changed the keyboard combination back to ALT+F1). So, there's possibly some weirdness surrounding XTE, Gnome Shell and the Alt key?
I installed easystroke:
Then Alt+F2 and typed in easystroke.
So, if you're an average user like me, don't use xbindkeys in Gnome Shell (there are some weird bugs or conflicts going on), use easystroke. Easystroke just works. Remember to add easystroke to your startup applications.
I got it working running xbindkeys as root. My ~/.xbindkeysrc:
P. S. Easystroke work for me as well, but if you bind stroke from only one key press, you had to press having mouse completely still. This was actually hard·