Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard settings are not working #794

Open
CvH opened this issue Sep 23, 2024 · 1 comment
Open

keyboard settings are not working #794

CvH opened this issue Sep 23, 2024 · 1 comment

Comments

@CvH
Copy link

CvH commented Sep 23, 2024

It looks like the keyboard settings are properly set during image creation but are not actually used from wayfire.

debconf-show keyboard-configuration shows me the proper configuration but the settings are missing at the wayfire.ini .

my pi-gen config

KEYBOARD_KEYMAP=de
KEYBOARD_LAYOUT=Deutsch
FIRST_USER_NAME=admin
FIRST_USER_PASS=1234
DISABLE_FIRST_BOOT_USER_RENAME=1

debconf-show keyboard-configuration

* keyboard-configuration/xkb-keymap: de
  keyboard-configuration/modelcode: pc105
  keyboard-configuration/toggle: No toggling
* keyboard-configuration/optionscode:
  keyboard-configuration/switch: No temporary switch
  keyboard-configuration/store_defaults_in_debconf_db: true
* keyboard-configuration/compose: No compose key
  keyboard-configuration/unsupported_config_options: true
  keyboard-configuration/unsupported_options: true
  keyboard-configuration/layout:
  keyboard-configuration/unsupported_config_layout: true
* keyboard-configuration/model: Generische PC-Tastatur mit 105 Tasten
  keyboard-configuration/variantcode:
  keyboard-configuration/unsupported_layout: true
  debian-installer/console-setup-udeb/title:
* keyboard-configuration/altgr: The default for the keyboard layout
* keyboard-configuration/ctrl_alt_bksp: false
  keyboard-configuration/layoutcode: de
  keyboard-configuration/other:
* keyboard-configuration/variant: Deutsch

/home/$user/.config/wayfire.ini

...
[input]
xkb_model = pc105
xkb_layout = gb
xkb_variant =
@CvH
Copy link
Author

CvH commented Sep 23, 2024

static workaround that does the job 👍

pi-gen/stage4/07-workaround/00-run.sh

#!/bin/bash -e

sed -E -i \
  -e "s/^xkb_model.*/xkb_model = pc105/" \
  -e "s/^xkb_layout.*/xkb_layout = de/" \
  -e "s/^xkb_variant.*/xkb_variant = nodeadkeys/" \
  ${ROOTFS_DIR}/etc/wayfire/template.ini \
  ${ROOTFS_DIR}/etc/wayfire/gtemplate.ini

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant