You are not logged in.

#1 2007-02-26 03:05:27

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

.Xmodmap not being cool

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

#2 2007-02-26 03:10:58

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: .Xmodmap not being cool

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

#3 2007-02-26 03:46:42

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: .Xmodmap not being cool

codemac wrote:

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

Board footer

Powered by FluxBB