Page 1 of 3
add a layout to keyboardsetup
Posted: 16. Aug 2022, 13:41
by mimosa
I use the "programmer Dvorak" layout, which can be set like this:
Normally I select a more generic Dvorak during installation (which is still there in Console) and change the x keyboard in .xinitrc. But it would be better to change it system-wide and independent of the window manager.
To add it to keyboardsetup, perhaps I need to add an entry like this to the 'keymaps' file?
That isn't enough on its own, though.
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 15:26
by gapan
I'm afraid keyboardsetup does not currently support having the same layout with a different variant as different option.
Without having tried it, I'm guessing a workaround would be:
Code: Select all
sudo cp /usr/share/kbd/keymaps/i386/qwerty/us.map.gz /usr/share/kbd/keymaps/i386/qwerty/us-dvp.map.gz
and then add an entry
in the /usr/share/salixtools/keymaps file.
Can you try it?
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 16:44
by mimosa
That gives me the correct layout in X, but qwerty in console.
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 16:45
by gapan
What is the one you want on the console?
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 17:01
by mimosa
The same one everywhere - programmer Dvorak (which is what I can touch type).
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 17:04
by gapan
If you choose one of the dvorak options that are already available in keyboardsetup, do you get the keymap you want in the console?
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 17:09
by mimosa
No, but then I don't get it in X either - the difference between dvp and normal Dvorak is the symbol characters are in completely different places, and numbers are accessed by shift, on the grounds they are less often used especially in code. So I can muddle through but it may take me a while to find things like /.
This is obviously being perfectionist but it would be pleasing to have perfection

Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 17:21
by gapan
Well then, you'll have to do some work!

I don't think there exists a dvorak programmer's keymap for the console so you'll have to make one yourself.
1. take an existing keymap that is closest to the one you want (I guess /usr/share/kbd/keymaps/i386/dvorak/dvorak.map.gz or /usr/share/kbd/keymaps/i386/qwerty/us.map.gz ? ).
2. gunzip it, it's just a text file
3. edit it with your text editor to your liking.
4. gzip it and copy it somewhere in /usr/share/kbd/keymaps/i386/, e.g: /usr/share/kbd/keymaps/i386/dvorak/dvorak-programmer.map.gz
5. change the entry to the /usr/share/salixtools/keymaps file to
(or whatever you've named it)
6. profit?
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 17:29
by mimosa
Thanks George, I'll let you know how the project goes! I could even treat it as a warmup for my own customisation of dvp to make it easier to use exotica such as umlauts, and thorn and eth.
But maybe I'll just stick to my time-honoured workaround
One thing I will say though, since I finally learned to touch type five or ten years ago, I have only regretted my lack of discipline in the preceding decades.
Re: add a layout to keyboardsetup
Posted: 16. Aug 2022, 18:01
by gapan
Send it to me when you're done so there's a dvorak/mimosa option during installation!
