Re: xmodmap not working from xinitrc

2008-02-28 Thread Jona Joachim
On Thu, Feb 28, 2008 at 03:42:21PM +0100, Armando Cambra wrote:
 If I remember correctly (can't test it here... no unixoid system near),
 startx sources the .xmodmaprc in your home directory, so you swap your keys
 twice as you start up X.
 
 I'd try without xmodmap in your script an see if it works.

No it doesn't work if I comment out the line. Also the startx script doesn't
mention xmodmap. At least I only have to run xmodmap once if I don't put it
inside xinitrc.

-- 
:wq Jona


pgptTTk7yARu7.pgp
Description: PGP signature


Re: xmodmap not working from xinitrc

2008-02-28 Thread Armando Cambra
If I remember correctly (can't test it here... no unixoid system near),
startx sources the .xmodmaprc in your home directory, so you swap your keys
twice as you start up X.

I'd try without xmodmap in your script an see if it works.

Regards,

Armando


On 2/28/08, Jona Joachim [EMAIL PROTECTED] wrote:

 Hi!
 My .xinitrc has an xmodmap tweak to switch the Ctrl and Caps keys.
 For some reason these changes are not applied when I start X, Ctrl is
 still Ctrl
 and Caps is still Caps.
 However I have to run xmodmap twice when X has started to actually make it
 work.
 It seems like the changes were applied but somehow not used by X, when I
 rerun
 xmodmap it seems like it switches the keys back to their original states
 and when I
 then run it again it finally works.

 Here's my .xinitrc:

 
 # X tweaks
 xsetroot -cursor_name left_ptr
 xset -b
 numlockx on
 xmodmap ~/.xmodmap

 # Desktop environment
 feh --bg-center ~/.themes/FreeBSD.jpg
 mydzen 

 xmonad 

 # Wait
 wait $!
 pkill dzen2
 wait
 

 and here's my .xmodmap:

 
 remove Lock = Caps_Lock
 remove Control = Control_L
 keysym Control_L = Caps_Lock
 keysym Caps_Lock = Control_L
 add Lock = Caps_Lock
 add Control = Control_L
 

 uname -a:
 FreeBSD nirvana.my.domain 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #0: Wed
 Jan 30 10:06:18 CET 2008 [EMAIL PROTECTED]
 :/usr/obj/usr/src/sys/HYPOCENTER  i386

 Installed versions:
 xorg-7.3_1
 xmodmap-1.0.3

 --
 :wq Jona


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: xmodmap not working from xinitrc

2008-02-28 Thread Chris Hill

On Thu, 28 Feb 2008, Jona Joachim wrote:

My .xinitrc has an xmodmap tweak to switch the Ctrl and Caps keys. For 
some reason these changes are not applied when I start X, Ctrl is 
still Ctrl and Caps is still Caps. However I have to run xmodmap twice 
when X has started to actually make it work. It seems like the changes 
were applied but somehow not used by X, when I rerun xmodmap it seems 
like it switches the keys back to their original states and when I 
then run it again it finally works.


Here's my .xinitrc:


[snip]

I asked essentially the same question four months ago - see 
http://lists.freebsd.org/pipermail/freebsd-questions/2007-October/160815.html 
- and received a couple of me too responses. Now I get to say me too 
as well. Still no fix AFAIK.


Anyone?

--
Chris Hill   [EMAIL PROTECTED]
** [ Busy Expunging | ]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]