LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-02-2004, 10:07 AM   #1
Atomsmasher
LQ Newbie
 
Registered: Mar 2004
Posts: 24

Rep: Reputation: 15
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??

Last edited by Atomsmasher; 04-02-2004 at 10:08 AM.
 
Old 04-02-2004, 10:13 AM   #2
hp_tux
Member
 
Registered: Mar 2004
Location: Germany
Distribution: Slackware 14
Posts: 87

Rep: Reputation: 15
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
 
Old 04-02-2004, 11:03 AM   #3
Atomsmasher
LQ Newbie
 
Registered: Mar 2004
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
Old 04-02-2004, 11:11 AM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
'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'.
 
Old 04-02-2004, 11:33 AM   #5
Atomsmasher
LQ Newbie
 
Registered: Mar 2004
Posts: 24

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 03:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 10:40 PM
kde startup script LucidParody SUSE / openSUSE 1 03-01-2005 03:58 AM
couple of qs, gnome ftp, removing kde or improving speed of kde, startup modprobe darkleaf Linux - Software 2 07-20-2004 10:54 AM
How to auto load a script on KDE startup kam_kenneth Linux - Newbie 2 05-03-2004 05:55 PM


All times are GMT -5. The time now is 12:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration