bash: xmodmap: command not found
bash: xmodmap: command not found
I just restarted from having my box up for 3 days+ and it worked fine before, now it says this to me when i attempt the commands: xmodmap "pointer = 1 2 3 6 7 4 5" or xmodmap What can I do about this? Distro: Slackware 9 Thanks for any help, Jalalabee |
Try using a whereis or locate:
whereis xmodmap locate xmodmap Mine is located: /usr/X11R6/bin/xmodmap (as well as /usr/bin/X11/xmodmap /usr/X11/bin/xmodmap ) So then you'll need to check your PATH: echo $PATH And see if that directory is listed. If not, do a search on here to see how to edit your PATH, or open up /etc/profile and see if you can wing it (I don't suggest this though...) Cool |
If you are just swapping your mouse buttons around you can put the line
pointer = 1 2 3 6 7 4 5 in a file called /etc/X11/Xmodmap (you need to be root to create and/or edit this) and then it will run automatically every time X starts. |
Thanks for the reply :)
Quote:
xmodmap: /usr/X11R6/bin/xmodmap /usr/bin/X11/xmodmap /usr/X11/bin/xmodmap /usr/share/xmodmap /usr/man/cat1/xmodmap.1x.bz2 /usr/share/man/cat1/xmodmap.1x.bz2 /usr/X11/man/man1/xmodmap.1x /usr/X11/man/cat1/xmodmap.1x.bz2 root@computer:~# cd /usr/X11R6/bin/xmodmap bash: cd: /usr/X11R6/bin/xmodmap: Not a directory root@computer:~# cd /usr/X11R6/bin/ root@computer:/usr/X11R6/bin# xmodmap bash: xmodmap: command not found root@computer:/usr/X11R6/bin# I must be doing something wrong? Quote:
Quote:
Quote:
bash: pointer: command not found It doesn't seem to work for me. Quote:
Thanks for the help so far. ;) -Jalalabee |
The full path must be used if it's not in your PATH, so to execute it:
/usr/X11R6/bin/xmodmap Or, if you want to cd into that directory: cd /usr/X11R6/bin/ Then to execute it you have to use the ./ : ./xmodmap :) Finally, the /etc/X11/Xmodmap (might be hidden with .Xmodmap ) is gonna really be the way to go. Cool |
All times are GMT -5. The time now is 09:02 AM. |