LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mouse script on KDE startup?? (https://www.linuxquestions.org/questions/linux-newbie-8/mouse-script-on-kde-startup-165347/)

Atomsmasher 04-02-2004 09:07 AM

Mouse script on KDE startup??
 
I have the logitech wireless mouse but the wheel doesn't work. After KDE starts up I open a Konsole and type

xmodmap -e "pointer = 1 2 3 6 7 4 5"

and it works fine. So I thought I would make something to do this automagicaly for me, so using vi i made a file called mouse.sh and put it in /home/bobby/.kde/Autostart the file looks like this:

#bin/bash
xmodmap -e "pointer = 1 2 3 6 7 4 5"
exit (0)

I cannot get this this to run when KDE starts up......what am I missing??

hp_tux 04-02-2004 09:13 AM

Hello,

Quote:

a file called mouse.sh and put it in /home/bobby/.kde/Autostart
well, did you set the executable bit on the file, e.g. with "chmod"?

cu

hp_tux

Atomsmasher 04-02-2004 10:03 AM

Thats a big no sir... how do I do that?? the chmod -h didn't say much about an executible switch... i'll keep lookin'

other than that... do I have it in the correct folder and the script written correctly ?

thanks

aaa 04-02-2004 10:11 AM

'chmod a+x [file]' gives everybody execute permissions on a file. Or you can browse to the file in KDE and change the permissions. Don't think you need that 'exit'.
Also, look at 'man chmod'.

Atomsmasher 04-02-2004 10:33 AM

That was it.... once I hit it with the cdmod a+x and restarted kde it all worked perfectly.

Thanks for your help...

now if i could only get speech working in ut2004.......

Bobby


All times are GMT -5. The time now is 12:19 PM.