Skip to content

Stop xkbcomp from spawning *.xkm file

Hello folks

I have a US layout laptop but i'm actually Portuguese so i need ABNT2 keyboard.

To fix some inconveniences i made a custom keyboard layout by grabbing the abnt2 default layout file from xkb directory and editing some keys. Let's say i saved it as dellxps13.xkb.

I apply it in my zshenv file with this command:

xkbcomp -I $HOME/.config/xkb/dellxps13.xkb $DISPLAY &>/dev/null

But i believe this is not the proper way. Everytime i SSH into this laptop a bunch of dellxps13.xkm files are being spawned everywhere i step into.

How to apply this custom layout properly without spawning this *.xkm file??

2 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
2 · 76% up
Kind
Text
ID
lqo7cd

Author

7
posts
40
comments
1
media
View profile

6 comments

Rename one of those .xkm files to .Xkeymap and load that instead.

https://wiki.archlinux.org/index.php/X_keyboard_extension#Using_keymap

2 points

That actually worked but now it is spawning .xkb files instead of .xkm O.o

1 points

Huh, well I may have misread that wiki page, you may need to change the .xkb filename to something different, but if not, you say this happens in every directory you enter, or any one you ssh directory into? Because if it's reloading that bit every time you do a cd, that's pretty weird behavior and points to it being more related to something else about your zshenv file.

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.