Skip to content
This repository was archived by the owner on Sep 3, 2024. It is now read-only.

Bugfix/keymap#184

Closed
vic1707 wants to merge 17 commits intoChrisTitusTech:testfrom
vic1707:bugfix/keymap
Closed

Bugfix/keymap#184
vic1707 wants to merge 17 commits intoChrisTitusTech:testfrom
vic1707:bugfix/keymap

Conversation

@vic1707
Copy link
Copy Markdown
Contributor

@vic1707 vic1707 commented Jan 15, 2022

On the startup script, I added a little note to clarify the input required by the user.
Typing -fr instead of fr causes localectl to fail with error localectl: invalid option -- 'f'.
+
The localectl isn't persistent upon reboot when the installation is finished + when executed manually after the install it doesn't seem to affect anything because we are running X11.
When setting up a keymap manually it adds a line to /etc/vconsole.conf as well as in /etc/X11/xorg.conf.d/00-keyboard.conf.
My modifications set up those exact modifications to get the keymap setup.

P.S: This approach is working, but really ugly, if someone has a better implementation feel free to let me know!

This was referenced Jan 15, 2022
@ChrisTitusTech ChrisTitusTech changed the base branch from main to test January 21, 2022 22:51
@ChrisTitusTech
Copy link
Copy Markdown
Owner

fixed in #191

@vic1707 vic1707 deleted the bugfix/keymap branch January 22, 2022 15:29
Comment on lines -57 to +69
localectl --no-ask-password set-keymap ${KEYMAP}
echo "KEYMAP=${KEYMAP}" > /etc/vconsole.conf
mkdir -p /etc/X11/xorg.conf.d/
touch /etc/X11/xorg.conf.d/00-keyboard.conf
cat << EOT >> /etc/X11/xorg.conf.d/00-keyboard.conf
# Written by systemd-localed(8), read by systemd-localed and Xorg. It's
# probably wise not to edit this file manually. Use localectl(1) to
# instruct systemd-localed to update it.
Section "InputClass"
Identifier "system-keyboard"
MatchIsKeyboard "on"
Option "XkbLayout" "${KEYMAP}"
EndSection
EOT
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisTitusTech unfortunately this change wasn't implemented in #191.
So I think we still have the problem of the keyboard not persisting to the desktop environment 🤔 (I'll test soon and edit this comment).

@vic1707 vic1707 restored the bugfix/keymap branch January 22, 2022 16:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants