unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Execute startxbmap at login to map Ctrl Caps to Escape
@ 2023-03-17  2:31 Rodrigo Morales
  2023-03-17  2:46 ` Mario Forzanini
  2023-03-17 15:05 ` Gary Johnson
  0 siblings, 2 replies; 4+ messages in thread
From: Rodrigo Morales @ 2023-03-17  2:31 UTC (permalink / raw)
  To: help-guix

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)] <https://www.mail-archive.com/help-guix@gnu.org/msg11418.html>

[this(2)] <https://www.mail-archive.com/help-guix@gnu.org/msg12256.html>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-18 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-17  2:31 Execute startxbmap at login to map Ctrl Caps to Escape Rodrigo Morales
2023-03-17  2:46 ` Mario Forzanini
     [not found]   ` <CAGxMbPZOwaw8WzOqEXkcjy8sH-94DTSLy1XVK0kZQM0Vb9H01g@mail.gmail.com>
2023-03-17 12:40     ` Mario Forzanini
2023-03-17 15:05 ` Gary Johnson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).