From owner-freebsd-x11@FreeBSD.ORG Fri Dec 19 02:15:15 2014 Return-Path: Delivered-To: freebsd-x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 78204B56 for ; Fri, 19 Dec 2014 02:15:15 +0000 (UTC) Received: from plane.gmane.org (plane.gmane.org [80.91.229.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 35465760 for ; Fri, 19 Dec 2014 02:15:14 +0000 (UTC) Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y1n5r-0007Zy-0n for freebsd-x11@freebsd.org; Fri, 19 Dec 2014 03:15:03 +0100 Received: from modemcable115.14-82-70.mc.videotron.ca ([70.82.14.115]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Dec 2014 03:15:03 +0100 Received: from jenia.ivlev by modemcable115.14-82-70.mc.videotron.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 19 Dec 2014 03:15:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-x11@freebsd.org From: jenia.ivlev@gmail.com (jenia.ivlev) Subject: How to execute command (to swap keys) at login? Date: Wed, 17 Dec 2014 23:55:14 -0500 Lines: 19 Message-ID: <878ui5wo99.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: modemcable115.14-82-70.mc.videotron.ca User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:och6se5qTdgdKK9oFp+fUi5d5Vg= X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Dec 2014 02:15:15 -0000 Hello. I want to swap the ctrl and caps keys at start up. So I left this code in .xinitrc and it didnt do anything: /usr/bin/setxkbmap -option 'ctrl:menu_rctrl' -option 'ctrl:swapcaps' When do I leave this command for it to be executed automatically at login? I though maybe in `~/.config/autostart/swap-caps-ctrl.desktop`? In contrast, when I leave it in .bashrc, and as soon as I start a terminal, the keys are swapped. So again, where can I leave the `/usr/bin/setxkbmap -option 'ctrl:menu_rctrl' -option 'ctrl:swapcaps'` command to execute it automatically at login? Thanks in advance for your kind help.