Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1164  / 2 Years ago, thu, january 20, 2022, 9:10:32

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.


More From » panel

 Answers
5

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

[#41718] Friday, January 21, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
horicgly

Total Points: 36
Total Questions: 126
Total Answers: 104

Location: Iceland
Member since Thu, Dec 1, 2022
1 Year ago
;