unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Roman Riabenko via <help-guix@gnu.org>
To: help-guix@gnu.org
Subject: switching layout in tty
Date: Sat, 4 Jan 2025 22:14:38 +0200	[thread overview]
Message-ID: <20250104221438.90c0a3955cf140d3fbb640a7@riabenko.com> (raw)

Hello

I am trying to navigate my home directory on a tty console, for example
after pressing Ctrl+Alt+F3, on a Guix System with GNOME desktop. This
requires utilising Latin and Cyrillic characters.

I used the graphical install for the system installation and initially
left the default Alt+Shift to switch the layout. This worked fine
during the installation.

However, now I have to press it multiple times to switch from English
to another language. Finally, after switching, I cannot switch back to
English. Instead, when pressing the shortcut, the console occasionally
gets into a state where it does not show any input until the layout is
switched back to non-Latin. Enter key and other shortcuts stop working
entirely.

I tried to set a different shortcut, such as both Shifts pressed
simultaneously. The option for this is grp:shifts_toggle per man
xkeyboard-config. This stops Alt+Shift from working. But the new
combination also does nothing.

For comparison, under the graphical interface, the Alt+Shift is not
managed by the GNOME shell considering that it is not listed in the
shortcuts and even conflicts with one of the default GNOME shortcuts.
So, I guess that it should be set the same way. However, the shortcut's
behaviour in the desktop environment is different. When pressed, it
cycles through two instances of Latin and one Cyrillic. I couldn't
identify the difference between the Latin instances. I only have the
English (US) layout configured in the guix system configuration and the
GNOME Settings.

Changing the shortcut to both Shifts in guix system configuration did
not affect the shortcut in GNOME at all.

How do I change or disable this Alt+Shift shortcut properly? How do I
configure a shortcut to switch the layouts on the tty?

$ grep locale /etc/config.scm -B 1 -A 3
(operating-system
  (locale "uk_UA.utf8")
  (timezone "Europe/Kyiv")
  (keyboard-layout (keyboard-layout "us,ua"
                                    #:options '("grp:shifts_toggle")))
$ localectl status
   System Locale: n/a
       VC Keymap: n/a
      X11 Layout: us,ua
     X11 Options: grp:shifts_toggle
$ guix describe
Generation 13	04 січ 2025 20:47:51	(current)
  guix b8858d8
    repository URL: https://git.savannah.gnu.org/git/guix.git
    вітка: master
    коміт: b8858d8b1344525d0d7ac78d8fb9dc1a577b85d3

Roman


             reply	other threads:[~2025-01-04 20:15 UTC|newest]

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

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=20250104221438.90c0a3955cf140d3fbb640a7@riabenko.com \
    --to=help-guix@gnu.org \
    --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).