On 23/04/2025 18:01, Adam Williamson wrote:
On Wed, 2025-04-23 at 11:43 -0400, Neal Gompa wrote:
On Wed, Apr 23, 2025 at 11:42 AM Adam Williamson
<adamw...@fedoraproject.org> wrote:

On Tue, 2025-04-22 at 11:51 +0200, Jocelyn Falempe wrote:
Hi,

I've packaged 3 userspace consoles, on my copr repository for Fedora.
They can replace fbcon (The default kernel-based console), have more
features (like scrolling) and are more secure as they run in userspace.

   * Kmscon: https://copr.fedorainfracloud.org/coprs/jfalempe/kmscon/
   * Cage/foot or Gnome-kiosk/Ptyxis:
https://copr.fedorainfracloud.org/coprs/jfalempe/Userspacevt/

Do they use xkb keyboard layouts and configuration? Or kbd?

The Wayland ones will use xkb. kmscon probably still uses kbd.

then for the love of god can we switch to a wayland one yesterday? :P

Kmscon uses xkbcommon, so probably xkb too.


(but on a serious level, how does configuring keyboard layout / input
method work if all you have is a compositor and a terminal app?
presumably read from a file...has the format and location been
standardized?)

systemd has the localectl command to do that, it also generates a file /etc/vconsole.conf which has the keymap information.

When trying with Gnome-kiosk or Kwin, the layout is automatically configured (I use dvorak, and it was already setup without any interaction).
For Kmscon, you need to edit the file /etc/kmscon.conf.
And for Cage + foot, I've done a workaround, to read the configuration from /etc/vconsole.conf with [1], and export the XKB_DEFAULT_LAYOUT variable. I can probably do the same for kmscon, or read directly /etc/vconsole.conf in kmscon.

[1] https://gitlab.com/kdj0c/userspacevt/-/blob/main/cagefootvt/usr/libexec/cagefootvt/wait_tty.sh?ref_type=heads#L11

Best regards,

--

Jocelyn

--
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to