From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id kDFOLGLTFWSSdwAASxT56A (envelope-from ) for ; Sat, 18 Mar 2023 16:06:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id YM5KLGLTFWTLJgAA9RJhRA (envelope-from ) for ; Sat, 18 Mar 2023 16:06:10 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 95D5D2BFD2 for ; Sat, 18 Mar 2023 16:06:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pdY7o-0002lw-Fe; Sat, 18 Mar 2023 11:05:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pd07P-00062a-5v for help-guix@gnu.org; Thu, 16 Mar 2023 22:46:59 -0400 Received: from marioforzanini.com ([2a05:f480:1c00:436:5400:4ff:fe01:c56f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pd07N-0005Ut-6n for help-guix@gnu.org; Thu, 16 Mar 2023 22:46:58 -0400 Message-ID: <9132a50b-4cd3-4690-d783-d311f481fafa@marioforzanini.com> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=marioforzanini.com; s=mail; t=1679021211; bh=/yQ9qT/c19BE3LPRCd9qjRkO+gFrcBfiiGScndaGd3o=; h=Date:Subject:To:References:From:Cc:In-Reply-To:From; b=iPCTxhXtxu9FyMvRGPgGXAt1ORC9okHNw7szbKsc40Bh/FjOTLy1CSYQR9JHOPvHR tR3WBKn8xf475XMyrE242JzKhY/Tp34xG+zelI6OCM55D/FrdpWWT2KkLvscHhenXb C9D/PqQWQiCSn/vb6hHC/GtO5D6pL1xWbFFUOP9BNe4907f09EgQeaP2FsnymcZXhp ISkAryR3ntqoEhqQJVuGZmw2ViRJAoBuRtsHEKWhv0f1GJs4cZc00+Emin8jF2y8iu RJCbtLq3iijKvQkuTYjM5/dB6WDZIZAWgqmNrYtpdsDEm6qSiEjqtZYEJj2HXuXX1/ 2oY2wbSnKbLFQ== Date: Fri, 17 Mar 2023 03:46:50 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2 Subject: Re: Execute startxbmap at login to map Ctrl Caps to Escape Content-Language: en-US, it To: Rodrigo Morales References: From: Mario Forzanini Cc: help-guix@gnu.org In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: none client-ip=2a05:f480:1c00:436:5400:4ff:fe01:c56f; envelope-from=mf@marioforzanini.com; helo=marioforzanini.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Sat, 18 Mar 2023 11:05:39 -0400 X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=marioforzanini.com header.s=mail header.b=iPCTxhXt; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=marioforzanini.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679151970; a=rsa-sha256; cv=none; b=litVYp7NiavUrc7vbzojNhGe8EdFZapQNIrH5cWVrOIg+MqHJLVlNFFtT43ffmaJncMp5+ Flhla3MuGDI4FaSoZ1Ldo8+6wK/0li3nLT8mUVEzeIa3ONMPpHlOBigcxioA2jbtN1fo6o kqh+MGtqhR+t9HfYDaRjq9+N2Ihc3QiHRVU2O5814qUGbEdIp8OwJdU08vHhjMgWDDg7fz rOP9EcdXX90+KIrq+XKa0UkDczzNmK6PE2WXSfeU/spBsOMbFR83cv2ss0Un7kC4GIjTLV Zrrdsqi3oGV1aLw+0YnKaCSDzSUTjZd4rHzlC3t0GJzsUnFWTQ2gGS0KzXbU0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679151970; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=PA6tYuRx2RaVqtseUI9bTu0al1y9+R4LEyOxANrHXEc=; b=DyMt51N1yrluob3SOqDCanJQ/ETyd06kXZJJUH+S/417s/PXroNyXq6SFwWYCIEKYj80x9 81UTNrxPviVwiRfJ0mTS3KitC2zqqCY9ybtHcTErRTKfJ4IA42XJgqS91jlM8PnQ9nPxGk 7nbJ3GKzy4uYMc3karQSg49JBK6O80xwjhxIeoZ/R5j0XicspF617WHIZozMf5Z6X4xSBx I0Rcp1XJ0SmTwG+jBHG+so+8A3V4X7bQDf1T7aVUyZnydz/CAgWZvuha60txxeeWFhzbZB eRDQ74F+MpMVIghV7Ua+GNFMtnMSknHnk/8T4mOkviViaCQVzny2kaXK9xw/vw== X-Migadu-Spam-Score: -3.25 X-Spam-Score: -3.25 X-Migadu-Queue-Id: 95D5D2BFD2 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=marioforzanini.com header.s=mail header.b=iPCTxhXt; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=marioforzanini.com X-TUID: CJIcBQ7XoR/8 Hi! On 3/17/23 3:31 AM, Rodrigo Morales wrote: > What's the Guix way to map Caps Lock to Escape? I actually have some similar setting mapping Caps Lock to Control in my operating system configuration, I think this may work: (operating-system (keyboard-layout (keyboard-layout "us" #:options '("caps:escape"))) ; ... Then you can use this configuration for Xorg by adding the 'set-xorg-configuration' service: (service (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))) Note that this approach also applies this setting to TTYs, if you only want to modify the keyboard layout in Xorg you can modify the second snippet: (service (set-xorg-configuration (xorg-configuration (keyboard-layout (keyboard-layout "us" #:option '("ctrl:escape"))))) ; ... Then rebuild the system -- Mario