From owner-freebsd-questions@FreeBSD.ORG Thu Feb 28 15:09:56 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F04110657C7 for ; Thu, 28 Feb 2008 15:09:56 +0000 (UTC) (envelope-from acambra@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.171]) by mx1.freebsd.org (Postfix) with ESMTP id DFF0A8FC1D for ; Thu, 28 Feb 2008 15:09:55 +0000 (UTC) (envelope-from acambra@gmail.com) Received: by wf-out-1314.google.com with SMTP id 25so3200923wfa.7 for ; Thu, 28 Feb 2008 07:09:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=t306+v6KJFJPydFqM2xPnQV6UJ9RWCPtS0RkPAP5MD4=; b=MUuLjTI8I35o6N+eJerxiCvjIMDo8C6GV2g27QLsskP2Y10LCalJVm5aFuRsqAWOaiXsZ5UqQRtGa8hkTH6N0yISo6C2NzqKJFPidgrMxJnYLG9UfJTT1IZpYlGQAXlnjpGtJgrspMz+SaPZHleHrpMJCqQRHLdZVL80+wi8FSo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=tyWXfamq4g9SeYcSf2gXjftJEUpZrPEMSR/Jiw5kxbc20/+51exUt8ewnjWSbWqKHv07XbAr8k1kcgGThIDwvhNxzVAWt78926LzF9aVShv+KNRHA6nsrpUppDjwiSRpkUxdFAKBMEA6v5EZ4Oe5lzfj9mvfo8tcO71mZv3eNgQ= Received: by 10.142.47.6 with SMTP id u6mr6346067wfu.29.1204209741128; Thu, 28 Feb 2008 06:42:21 -0800 (PST) Received: by 10.143.187.9 with HTTP; Thu, 28 Feb 2008 06:42:21 -0800 (PST) Message-ID: Date: Thu, 28 Feb 2008 15:42:21 +0100 From: "Armando Cambra" To: "Jona Joachim" In-Reply-To: <20080228140338.GA4034@nirvana.my.domain> MIME-Version: 1.0 References: <20080228140338.GA4034@nirvana.my.domain> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: questions@freebsd.org Subject: Re: xmodmap not working from xinitrc X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 15:09:56 -0000 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 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 > >