
Originally Posted by
Guillaumeb
Hello,
Do you know if there is a way to trigger the GNOME-Shell windows management with a mouse button (say the middle button) instead of the Windows key
I used to do this thru Compiz setting manager for Gnome classic but it does not seem to be working with GNOME-Shell
also, is it possible to change the top left hot corner and replace it to the right ?
thank you very much
You can set the super key to a mouse button using easystroke and xdotool.
Code:
sudo apt-get install easystroke xdotool
Open easy stroke and go to preferences.
Change the gesture button to 3(right mouse)
Go to additional buttons and click add.
Click your middle button in the pop up window.
Click ok and goto the actions tab.
Click on the add action button and enter the name with type:command.
Enter xdotool key Super as the command.
Hit the record stroke button and click your middle mouse.
If you hold down the middle button for a few secs while recording
it will cause a slight delay before the middle click action is initiated.
This allows the middle click paste feature to still be used with quick clicks.
Notice the difference in the second attachment of the stroke recording.
You can also use xdotool to trigger the super key when the mouse is placed in the top right corner with this script.
Code:
#!/bin/bash
while [ 1 ];
do
m=`xdotool getmouselocation|sed 's/x:\(.*\) y:\(.*\) screen:.*/\1, \2/'`
if [ "$m" = "1679, 0" ];
then
xdotool key Super
sleep 1
fi
done
This works with my screen resolution of 1680x1050
To get your x resolution
run this in the terminal while your mouse is in the top right corner
Code:
xdotool getmouselocation
and adapt the script accordingly.
**Note: this is something I made used from other scripts I have downloaded and it looks like it uses a lot of CPU so
may not be scripted properly.
May be a start though for someone who knows what they're doing.