I was wondering if there is any way to make the Global Menu (File, Edit.......Messages etc) Drop Down Automatically when I Hover my Mouse Pointer above it instead of Clicking them??? Im using Ubuntu 11.10 Unity Desktop.

- 11,732
2 Answers
You can install xdotool and create a script to put at "Startup Applications" like this:
#!/bin/bash # # version 0.06 by desgua # # To click at global menu # ############################################################ h= d= function hittop { eval $(xdotool getmouselocation --shell) if [ "$Y" -lt "24" ] ; then h=1 d=0 fi } while : do if [ "$h" = "1" ] ; then xdotool click 1 sleep .1 h=0 fi eval $(xdotool getmouselocation --shell) if [ "$Y" -gt "24" ] ; then d=1 fi if [ "$d" = "1" ] ; then hittop fi ######################## # Uncomment the following line if your cpu gets hot... # sleep .2 ######################## done exit 0
Step by step instructions:
1) Press Alt + F2 and paste gedit ~/.click.global.menu
then hit Enter - this will open a blank file.
2) Paste the previous script at the blank file and save.
3) Press Alt + F2 and paste gnome-terminal
- this will open a terminal.
4) At terminal paste chmod +x ~/.click.global.menu
5) Press Alt + F2 and paste gnome-session-properties
- this will open the Startup Applications.
6) At Startup Applications hit "Add".
7) At dialog paste Global Menu
at "Name:" and ~/.click.global.menu
at "Command:" as showed in this picture:
8) Install xdotool (just click at the link and hit "Install")
9) Logout and Log back in.
10) Have fun ;-)
Automated way
1) Just open a terminal and paste this:
sudo apt-get install xdotool && cd ~/ && wget -c http://dl.dropbox.com/u/4098082/click.global.menu && chmod +x ~/click.global.menu && ~/click.global.menu

- 32,917
This is a small answer but it could solve that lazy issue of yours :P Go to System>Preferences>Mouse
-- now go to the accessibility tab and check the box "initiate click when stopping pointer movement". This will enable click when not moving your mouse.

- 162
-
1In 11.10 this can be accomplished with System Settings -- Universal Access -- Pointing & Clicking tab -- Hover Click ON. You'll be able to select right, left double or drag. However, the result of the click will depend on where the cursor is positioned and unfortunately you get that click weather you wanted it or not. – fragos Dec 30 '11 at 23:04
Press Alt + F2
forOpen a terminal
. And yes you can start it manually by opening a terminal and pasting~/.click.global.menu
. – desgua Dec 31 '11 at 23:19sudo apt-get install xdotool && cd ~/ && wget -c http://dl.dropbox.com/u/4098082/click.global.menu && chmod +x ~/click.global.menu && ~/click.global.menu
then tell what happens? – desgua Jan 01 '12 at 13:35xdotool mousemove 100 15 && gnome-screenshot
? – desgua Jan 01 '12 at 19:27h= ; d= ; while : ; do function hittop { eval $(xdotool getmouselocation --shell) ; if [ "$Y" -lt "24" ] ; then h=1 ; d=0 ; fi ; } ; if [ $h = 1 ] ; then xdotool mousemove 100 15 click 1 ; sleep .1 ; xdotool mousemove $X $Y ; h=0 ; fi ; eval $(xdotool getmouselocation --shell) ; if [ "$Y" -gt "24" ] ; then d=1 ; fi ; if [ $d = 1 ] ; then hittop ; fi ; done
– desgua Jan 03 '12 at 23:05xdotool mousemove 100 15 click 1
the menu DropDown? – desgua Jan 04 '12 at 16:04