unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Roman Riabenko via <help-guix@gnu.org>
To: "pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de>
Cc: help-guix@gnu.org
Subject: Re: switching layout in tty
Date: Thu, 9 Jan 2025 21:56:01 +0200	[thread overview]
Message-ID: <20250109215601.9b3f3b1d65332496145edcb2@riabenko.com> (raw)
In-Reply-To: <87msg2e641.fsf@pelzflorian.de>

Hello Florian

On Tue, 07 Jan 2025 21:11:58 +0100
"pelzflorian (Florian Pelz)" <pelzflorian@pelzflorian.de> wrote:
>   (keyboard-layout (keyboard-layout "us,ua"
>                                     #:options '("grp:alt_shift_toggle")))
> 
> does work for me, although grp:shifts_toggle does not.  Possibly
> grp:shifts_toggle would only work on some keyboards?
> 
> If your stuck console state is a real bug and not due to xoff/xon flow
> control (i.e. Ctrl-S was pressed), then this is a bug with some software
> used by Guix, maybe the Linux kernel, or with console-setup.  Though I
> cannot reproduce it with grp:alt_shift_toggle.

Pressing both Shifts with "grp:shifts_toggle" option produces no effect
for me. Both "grp:alt_shift_toggle" (Alt+Shift) and
"grp:ctrl_shift_toggle" (Ctrl+Shift) options work, but when the
layout is switched, something else happens often, such as no
characters appear or the text is replaced with different characters and
it becomes difficult or impossible to enter shortcuts. "grp:lwin_toggle"
option seems to switch layouts without any side effects, so I will use
it for now. However, I do not understand what's wrong with these Shift
shortcuts.

I tried a few keyboards from different manufacturers and the behavior
is the same.

> GNOME has its own settings that are configurable inside the GNOME
> Keyboard Settings.

I could not find how to change this shortcut in GNOME Settings
application. But I finally changed it with the below commands. This
confirms that it is an entirely different setting. I still do not know
why there seem to be two Latin layouts, so that I have to press the
shortcut twice.

$ guix shell glib:bin
[env]$ gsettings set org.gnome.desktop.input-sources xkb-options
"['grp:shifts_toggle']"

The following turns the shortcut off completely in GNOME.

[env]$ gsettings set org.gnome.desktop.input-sources xkb-options "['']"

Roman


      parent reply	other threads:[~2025-01-09 19:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-04 20:14 switching layout in tty Roman Riabenko via
2025-01-07 20:11 ` pelzflorian (Florian Pelz)
2025-01-08 14:26   ` Felix Lechner via
2025-01-09 19:56   ` Roman Riabenko via [this message]

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=20250109215601.9b3f3b1d65332496145edcb2@riabenko.com \
    --to=help-guix@gnu.org \
    --cc=pelzflorian@pelzflorian.de \
    --cc=roman@riabenko.com \
    /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).