Click to See Complete Forum and Search --> : Writing a script? Autostart?
jrbush82
08-21-2001, 11:32 PM
I need KDE to load xmodmap -e "pointer = 1 2 3 6 7 4 5" command on startup. How do I go about doing this? How would I write a script to execute so that I can put it in the Autostart directory? Is there a file to add this command to so that I can do this on startup?
Thanks,
Jason
TheGimp
08-21-2001, 11:36 PM
just put xmodmap -e "pointer = 1 2 3 6 7 4 5" into a new file, save it under the autostart dir and make it executable.
jrbush82
08-22-2001, 04:01 PM
well... I did that. All it does is pops up and asks what program do I want to open/execute it with?
I made it in kedit and just added that line to the file. Saved it as a file with no extention, moved it to my ~HOME/.kde/Autostart directory and made it executable. Am I doing something wrong?
Thanks,
Jason
bdg1983
08-22-2001, 04:24 PM
Did you add
#!/bin/bash
or
#!/bin/sh
as the first line?