You are not logged in.
Hey guys,
This has got to be a dumb question, but I'm short on time (typical when I have a dumb question, otherwise I don't ask them, right?), so I'm hoping somebody has a quick smart answer.
I decided on a whim that I should take advantage of my lefthandedness, and am going to use my mouse left handed. Google told me to run xmodmap -e 'pointer = 3 2 1' to get left handed mouse. Perfect. Scrolling even still works.
So I want to automate this. I try putting the xmodmap command in ~/.xinitrc. No cigar. Google tells me I should put "pointer = 3 2 1" in ~/.Xmodmap. No cigar. Arch forum search says I should try /etc/X11/xinit/.Xmodmap. No cigar. I figure hidden files in config directories are bad so I try /etc/X11/xinit/Xmodmap too. No cigar. By this time I'm pretty desperate for that cigar. I've tried putting a usermodmap="~/.Xmodmap" and a USERMODMAP="~/.Xmodmap" line in both my .bashrc and my .xinitrc. Still no cigar.
I'm tired of restarting X to test this thing, so if somebody can tell me how to have my xmodmap set to pointer = "3 2 1" on X login, that would be very pleasant.
Dusty
Offline
What I currently do for my xmodmap is the following:
~/.xinitrc
xmodmap ~/.Xmodmap
~/.Xmodmap
! Swap caps lock to control, escape to caps lock, and control to escape
remove Lock = Caps_Lock
remove Control = Control_L
keysym Control_L = Escape
keysym Escape = Caps_Lock
keysym Caps_Lock = Control_L
add Lock = Caps_Lock
add Control = Control_L
keycode 111 =
keycode 94 = Alt_L
keycode 116 = Super_L
Offline
What I currently do for my xmodmap is the following:
~/.xinitrc
xmodmap ~/.Xmodmap
*shrugs*
That works. Let us not ask why that works and xmodmap -e does not. Feels like a Windows system when I don't understand why things don't work. :-/
Thanks very much!
Dusty
Offline