39aldo39 / klfc

Keyboard Layout Files Creator
GNU General Public License v3.0
215 stars 13 forks source link

run-session.sh errors #31

Open Pomegranate123 opened 3 years ago

Pomegranate123 commented 3 years ago

I've made my keyboard layout and installed it (with xkb), but when I try to run ./run-session.sh I get the following output: Error: Unknown field Alt in a symbol interpretation Definition ignored Error: Unknown field NumLock in a symbol interpretation Definition ignored Error: symbols not defined in XkbWriteXKBSymbols Output file "/tmp/temp.xkb" removed

I've also noticed that my layout name (BEAKL 15) has replaced the English(us) layout name, and that half of the variants that were there (in the English(us) layout) are now invisible when I select the newly named BEAKL 15 layout. (for example, dvorak is missing). I do see the missing layouts when I open the us symbols file, however.

This is the layout I've tried to add: (I can't upload .json, so .txt will do) beakl.txt

Any ideas on how I could fix this? I feel like I've made some major mistake that ruined my xkb files or something, since uninstalling the layout doesn't seem to revert the second issue I had.

39aldo39 commented 3 years ago

As for the ./run-session.sh errors, it turns out that the problem occurs when you have multiple modifiers bound to the same key: I used a , to separate them instead of a +. The error should be fixed if you replace vmods=LevelThree,Alt by vmods=LevelThree+Alt and vmods=LevelFive,NumLock by vmods=LevelFive+NumLock. However, I am no sure whether XKB supports this well. In my limited testing it didn't really seem to work.

As for the missing layouts, did the problems happen when you executed ./run-session.sh or ./install-system.sh? But neither one should have any effect on existing layouts. Also, what shell are you using? I am not sure what happened, but the UI depends on the definitions in the rules directory (instead of symbols).