From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id d7QuBLLRE2QrdwAASxT56A (envelope-from ) for ; Fri, 17 Mar 2023 03:34:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id oFB1A7LRE2TiNAAA9RJhRA (envelope-from ) for ; Fri, 17 Mar 2023 03:34:26 +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 AE101227B1 for ; Fri, 17 Mar 2023 03:34:25 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pczut-0001Gf-4C; Thu, 16 Mar 2023 22:34:03 -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 1pczur-0001GW-8J for help-guix@gnu.org; Thu, 16 Mar 2023 22:34:01 -0400 Received: from mail-ua1-x930.google.com ([2607:f8b0:4864:20::930]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pczup-0000qG-D9 for help-guix@gnu.org; Thu, 16 Mar 2023 22:34:01 -0400 Received: by mail-ua1-x930.google.com with SMTP id q42so2475814uac.3 for ; Thu, 16 Mar 2023 19:33:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679020436; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=gUFZV4tqtIlJz/jjaBTzuoDyyo30hSxTlQYX/eF96Yw=; b=osG24G8ML9vlQcje6VPedBr5pb2ZSxLGyFNLtbUUKvQNCSc8M40Nn9okCAjkZYHB9F dhMEqjen7hguC7DfsHuUkF+hAMSYhpzH2eBmBG81hFikTOyfPWAnEdGFnDpDo2j1S5n3 qDAf4rrd/i+FGgpWTEgXgIju8QyO2/xSOmADLns1AnnjwF8DfYGUqmd+DDHImNqQUCH3 NAAXGs8yv/QfaHF9bGg4Bse//v+JwJDQzNsF0+AKBzCSTlvWmIuQ7r/RvBpJvW+Gfhwl si4Jobc97O6UiynMx5UjI4Vl6ovf1CSgCKi6HL+NJ079j6PzQZNBWou+nOsRRQrOorwZ znfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679020436; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=gUFZV4tqtIlJz/jjaBTzuoDyyo30hSxTlQYX/eF96Yw=; b=TXrIk6Kz41mhjafYl28fZHd03bk5DA6ilUO9mpPZPa41bjlVTYw07k+anylmjN+TpS 3ESwc40kp2hplF4VBFTaIl4C+aAat5JPUBaB7q6gbSgCzqw9cerjPAf/fLQTk4w+crlX 5h+UaQo+qXmj74jE8jmmTbQ78QdEU5CXPB/J6yQHR04HyvVDOYTHLJG95FJQ6tT6BS1R 0pEkSrzg1Qpy8COvWEhoXsIbmQhKNNaD2m8hc59sKTEUQ2Cvfqu5krvQbXjR62lkSAHv NXwBXNfOgDYahSyDPjrtwIG/42BI50vM1QKWqMbvSnjM6NpVfzAxku5/qGPaLBEErsBY ltMA== X-Gm-Message-State: AO0yUKX5AU+Rt8Ys5ZuQcArlEz7lSFXKAxhfmTzfoFzon654m6dVOwrj yUFOo6I0e7C6thori7ICuDJaFBif2jFE+eFvsXQ6UDRNrnTCHA== X-Google-Smtp-Source: AK7set8iqxbc6MeqZZt/gOD6StHPeRVFFkF7jheDiH89RPHdQ62iQV+lXLx6BnJy52RsUthduGWgiJaVDMGDDIC+eA8= X-Received: by 2002:a1f:9bc4:0:b0:432:8c3a:40e5 with SMTP id d187-20020a1f9bc4000000b004328c3a40e5mr992174vke.0.1679020435622; Thu, 16 Mar 2023 19:33:55 -0700 (PDT) MIME-Version: 1.0 From: Rodrigo Morales Date: Thu, 16 Mar 2023 21:31:24 -0500 Message-ID: Subject: Execute startxbmap at login to map Ctrl Caps to Escape To: help-guix@gnu.org Received-SPF: pass client-ip=2607:f8b0:4864:20::930; envelope-from=moralesrodrigo1100@gmail.com; helo=mail-ua1-x930.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=osG24G8M; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679020465; a=rsa-sha256; cv=none; b=uS2UgxsnqXDYRx4cGXMlJyRZG1iEVIxhoy4+mlQvUZhzdNtJAz6hFwUSwBJei1Q0T5RmU+ RM0T9b5514URo2+U7rKor+jy05Dqvhx4q0FRj2c81hIpEvNRGbdnPKyZp+YZ5SeJl4yvS3 cVUPDlS+uabO6JzYTyy8gj/uvULg5Ni8jvUBoUaT52lZeTXQdaeTDldLdgr0ulEH0ptpzL 3doPESzw8HGZ3l3cxWjA0I+ByqFNnsiWNoOhNpW47+1Vu1aGL/oc72VIlY8TEHbojDJdV1 kztvHEH+oHdUpFEY4lpzKwFmI6nMwuXO0Wmf7eMS8236M9knHcWsdro8mcv+Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679020465; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=KEQWyXV4XW7K01Yjt04bNCVNGOdtwHVWFBBgyDHc2us=; b=eNlZRCqo/aZSvF67nSnqAI9kxMYycYMdK4oLiQoKDP3Z1VHu8GgT8TMfH+CiOght0shssJ SqZrSel18fNHAXa8iyyeS7x+Ok7nZAJkHFuILqWPsJdZXbJge69ToZ/fdqZuMh8nCQBwnP jG5XFQVLEjla+pYiZ3wywbRupxUrIqwibCCX4ejKd6W1PKpqumwdiLGfQSWlDE7xDpHVtr 3PIYK+S0fIMzWBW46+X+T/qIBpbzzxHh8/O6jwd7Lvy1OXuNMw7uxgEX7ocChiT1xz0Fqy GblieHGtP+M8JBNR0/cNFrpIOfsOR2CCq/mZ23MEmf3/WeI44lSsyX39dxh6fw== X-Migadu-Spam-Score: -1.94 X-Spam-Score: -1.94 X-Migadu-Queue-Id: AE101227B1 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=osG24G8M; 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=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) X-TUID: TYfcGwEUQIZr Table of Contents _________________ 1. The context 2. The question 3. Additional information 1 The context ============= I've been using Guix for around 1 month. I'd previously used Arch Linux. In Arch Linux, I mapped Caps Lock to Ctrl by inserting the following statement in my ~/.xinitrc file (see code block below) ,---- | #!/bin/bash | | setxkbmap -option 'ctrl:nocaps' -layout us | | exec i3 `---- The `~/.xinitrc' file was read by `startx', as you can see in the last line of the file `~/.profile' (see code block below) ,---- | (...) | | startx ~/.xinitrc `---- In Guix, I'm using Emacs with EXWM and I want to map Caps Lock to Escape as I did in Arch in Linux. I don't necessarily want to execute `startx' or `xinitrc'. I'm happy with whatever solution that guarantee that the `setxbmap' command is executed. 2 The question ============== What's the Guix way to map Caps Lock to Escape? 3 Additional information ======================== I found [this(1)] message in help-guix from 22 Mar 2021, someone states that it has never been simple to use `xinit' or `startx' in Guix. I also found [this(2)] thread in help-guix started in 21 Aug 2021, where someone reports that startx was not working. To me, all seems to indicate that I shouldn't try to use `startxkbmap' in `~/.xinitrc' (so that it can be read by `startx' or `xinitrc'), so I'm sure there must be a more proper way. I could also insert the following statement in my `init.el' file (see code block below), but this solution doesn't look clean to me. When I switch to i3, this solution wouldn't work. ,---- | (start-process "*foo*" nil "setxkbmap" "-option" "ctrl:nocaps" "-layout" "us") `---- [this(1)] [this(2)]