From: Lars Rustand <rustand.lars@gmail.com>
To: help-guix@gnu.org
Cc: Efraim Flashner <efraim@flashner.co.il>,
Hilton Chain <hako@ultrarare.space>
Subject: Re: Keyboard layout options not working
Date: Thu, 07 Dec 2023 13:28:02 +0100 [thread overview]
Message-ID: <8734wefaji.fsf@yoga.mail-host-address-is-not-set> (raw)
In-Reply-To: <87h6kudyf3.wl-hako@ultrarare.space>
Hilton Chain <hako@ultrarare.space> writes:
> In (gnu system keyboard), keyboard-layout is defined as:
>
> (keyboard-layout name (variant) (#:model) (#:options))
>
>
> So the following should be used instead:
>
> (keyboard-layout "us" "no" #:options '("grp:switch"))
I tried the above, but I get this following errror:
-8<---------------cut here---------------start------------->8---
error: (keyboard-layout "us" "no" #:options (quote ("grp:switch"))): invalid field specifier
-8<---------------cut here---------------end--------------->8---
> And for X, xorg-configuration accepts a <keyboard-layout> record and sets option
> XkbLayout to the name field of that record and XkbVariant to variant (only when
> it's present). Since XkbLayout recognizes the comma syntax and variant is not
> set, the result is valid.
Well, this comma syntax is precisely what I am trying to use. Note that
the "us,no" in my config refers to the list of US layout and NO layout,
not a NO variant of the US layout (I don't think there is such a
variant). The expected result of my keyboard-layout config is that I
have US layout by default, and when I hold down the right alt key I get
the NO layout.
A similar configuration is shown in the examples under the Keyboard
Layout section in the Guix manual.
-8<---------------cut here---------------start------------->8---
;; Arabic layout with "Alt-Shift" to switch to US layout.
(keyboard-layout "ar,us" #:options '("grp:alt_shift_toggle"))
-8<---------------cut here---------------end--------------->8---
next prev parent reply other threads:[~2023-12-07 12:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-07 9:48 Keyboard layout options not working Lars Rustand
2023-12-07 10:28 ` Efraim Flashner
2023-12-07 11:50 ` Hilton Chain
2023-12-07 12:28 ` Lars Rustand [this message]
2023-12-07 12:53 ` Lars Rustand
2023-12-07 13:46 ` Hilton Chain
2023-12-07 20:17 ` Lars Rustand
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8734wefaji.fsf@yoga.mail-host-address-is-not-set \
--to=rustand.lars@gmail.com \
--cc=efraim@flashner.co.il \
--cc=hako@ultrarare.space \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).