Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Feb 2008 15:42:21 +0100
From:      "Armando Cambra" <acambra@gmail.com>
To:        "Jona Joachim" <jaj@hcl-club.lu>
Cc:        questions@freebsd.org
Subject:   Re: xmodmap not working from xinitrc
Message-ID:  <e27a91b40802280642p74dd884do4c090c68e3ebbf03@mail.gmail.com>
In-Reply-To: <20080228140338.GA4034@nirvana.my.domain>
References:  <20080228140338.GA4034@nirvana.my.domain>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jaj@hcl-club.lu> 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     root@nirvana.my.domain
> :/usr/obj/usr/src/sys/HYPOCENTER  i386
>
> Installed versions:
> xorg-7.3_1
> xmodmap-1.0.3
>
> --
> :wq Jona
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e27a91b40802280642p74dd884do4c090c68e3ebbf03>