Skip to content

Keyboard layout via text file

When I first made this install I remember modifying a text file to change some of my keyboard keys to fit my preferences (such as having the num row default to their symbols since I only use the numpad for numbers).

Now I updated my system, and the keyboard seems to be back in its original configuration, and I can't for the life of me find the text file again.

It was in a format sorta like:
q Q w W e E Etc.

4 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
4 · 83% up
Kind
Text
ID
orrybz

Author

2
posts
18
comments
0
media
View profile

5 comments

I suggest using localectl that will create a configuration text file in the /etc/X11 folder.

2 points

I have tried this and still can find anywhere to actually modify the keyboard layout, all I really want to do is make the num row use the symbols when not shifting, and use the numbers when shifting

1 points

Maybe you can do localectl list-x11-keymap-options and see if there's an option for it?

The file location I was talking about is /etc/X11/xorg.conf.d/00-keyboard.conf.

Edit: nvm i saw you found the solution

1 points

The keyboard layouts are in /usr/share/X11/xkb/symbols. If you change these files directly, they will be overwritten when you update. But you can create a new layout (unless you use the special name "custom" it won't show up in the graphical preferences though).

In the world of the modern linux desktop, you can also store xkb tree overyays in ~/.xkb or /etc/xkb. You can also register your custom keyboard layouts/options in the xml files. Note that this is only supported by libxkbcommon and not by the legacy display server.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.