View previous topic :: View next topic |
Author |
Message |
Nitsuj n00b
Joined: 23 Apr 2004 Posts: 23 Location: Louisville, KY
|
Posted: Sat May 01, 2004 3:32 am Post subject: imwheel & xmodmap commnads wont run at boot in KDE |
|
|
I've spent the better part of two days now trying to get my mousehweel and side buttons working on my MX500. Finding out how to set them up was the easy part, but getting the neccessary commands to load up at boot on the other hand has been a royal pain in my ass. I've read this thread and tried everything in it, but the commands just wont pass at boot. Right now I have a shell script on my desktop named mx500 that just has this in it:
Code: | #!/bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5" &
imwheel -k -b "67" |
Now, if I double click this script after I boot my mousewheel and side buttons work fine (mouse wheel scrolls, side buttons go forward and backward). The hard part has been trying to figure out how to get this to happen automatically. I've edited /etc/X11/Sessions/kde-3.2.2 several different ways. The various ways I've tried, but failed of course are as follows:
Code: | #!/bin/sh
xmodmap -e "pointer = 1 2 3 6 7 4 5" &
imwheel -k -b "67" &
/usr/kde/3.2/bin/startkde |
Code: | #!/bin/sh
exec xmodmap -e "pointer = 1 2 3 6 7 4 5" &
exec imwheel -k -b "67" &
/usr/kde/3.2/bin/startkde |
Code: | #!/bin/sh
/etc/X11/Sessions/mx500
/usr/kde/3.2/bin/startkde |
and of course I've tried putting the variables after "/usr/kde/3.2/bin/startkde" but NOTHING I have done can get it so these commands will automatically run at boot. What am I doing wrong, and for the love of god can someone please help me, I think I'm losing my mind |
|
Back to top |
|
|
Nitsuj n00b
Joined: 23 Apr 2004 Posts: 23 Location: Louisville, KY
|
Posted: Sun May 02, 2004 8:03 am Post subject: |
|
|
bump, can anyone help me out? |
|
Back to top |
|
|
asimon l33t
Joined: 27 Jun 2002 Posts: 979 Location: Germany, Old Europe
|
Posted: Sun May 02, 2004 9:21 am Post subject: |
|
|
If you want it for a single use only you could put those scripts into the user's KDE autostart folder, i.e. $HOME/.kde/Autostart (or Konqueror's Menu -> Go -> Autostart). Everything in this folder is executed if the user logs into his KDE session.
If you use kdm and want those scripts run for all users you can put them in some kdm startup script. I have put some imwheel and xset stuff at the beginning of $KDEDIR/share/config/kdm/Xsession and it's working fine. $HOME is already set for the user when this scripts executes, thus things like "/usr/X11R6/bin/xmodmap $HOME/.Xmodmap" will work.
If have this at the beginning of $KDEDIR/share/config/kdm/Xsession:
Code: | /usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/bin/imwheel -p -k -b "67"
if [ -f $HOME/.Xmodmap ]; then
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
fi
# Find Gentoo X cursors
export XCURSOR_PATH=~/.icons:/usr/share/cursors/xfree |
The reason why your /etc/X11/Sessions solution didn't work is probalby because kdm doesn't use those session files. At least not with a vanilla configuration. I don't use the kde ebuilds and can't say what modifications Gentoo does to kdm, but what you write shows that evidently /etc/X11/Sessions/kde-3.2.2 isn't executed. |
|
Back to top |
|
|
Nitsuj n00b
Joined: 23 Apr 2004 Posts: 23 Location: Louisville, KY
|
Posted: Mon May 03, 2004 9:47 am Post subject: |
|
|
asimon wrote: | If have this at the beginning of $KDEDIR/share/config/kdm/Xsession:
Code: | /usr/X11R6/bin/xmodmap -e "pointer = 1 2 3 6 7 4 5"
/usr/bin/imwheel -p -k -b "67"
if [ -f $HOME/.Xmodmap ]; then
/usr/X11R6/bin/xmodmap $HOME/.Xmodmap
fi
# Find Gentoo X cursors
export XCURSOR_PATH=~/.icons:/usr/share/cursors/xfree |
|
I just wanted to thank you, this solved my problem and all the buttons work on my MX500 at boot now |
|
Back to top |
|
|
|