2

ScreenshotI 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.

2 Answers 2

3
+50

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:

enter image description here

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
17
  • isnt there a way to manually start it up instead of automatic? Dec 31, 2011 at 19:42
  • step 1 isnt opening anything, it just shows a file, that too is not clickable Dec 31, 2011 at 19:47
  • Do you know how to open a terminal? (Applications > Accessories > Terminal) You can substitute Press Alt + F2 for Open a terminal. And yes you can start it manually by opening a terminal and pasting ~/.click.global.menu.
    – desgua
    Dec 31, 2011 at 23:19
  • I did everything as you have said.... then.... nothing happens... Jan 1, 2012 at 8:11
  • Can you open a terminal and paste 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 then tell what happens?
    – desgua
    Jan 1, 2012 at 13:35
-1

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.

1
  • 1
    In 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, 2011 at 23:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .