Julow / Unexpected-Keyboard

A lightweight virtual keyboard for developers.
GNU General Public License v3.0
1.25k stars 168 forks source link

How to export my current setting/layout? #636

Open AnabasisXu opened 1 month ago

AnabasisXu commented 1 month ago

I would like to start from my current layout instead of starting from the default.

Is there any way I can export my current layout?

In fact I just need to switch fn and alt for the qwerfty(us) layout on my current layout.

Yet it seems I need to import a new layout to do that?

Spike-from-NH commented 1 month ago

I keep my custom layout in a text file, which can be copied to other phones in several ways. On a new Unexpected installation, use Settings→Layout to select Custom. Then Select All and paste in your personal text file.

If you don't have your preferences in a text file, create a file and copypaste the text from Unexpected into it.

The other issue you raised suggests you already have a text file. Please clarify if I misunderstand your question.

Julow commented 1 month ago

It's not possible to find the definition of a layout within the app but you can find them all here: https://github.com/Julow/Unexpected-Keyboard/tree/master/srcs/layouts

For changing fn and alt, you will need to redefine the bottom row. This requires setting the bottom_row="false" attribute and then defining the bottom row, see this layout that does that: https://github.com/Julow/Unexpected-Keyboard/blob/master/srcs/layouts/latn_neo2.xml

Spike-from-NH commented 1 month ago

That is a good answer, but again, @AnabasisXu seems already to have a copy.

@JapanYoshi, the layouts folder should be added to your documentation; users who want to write XML will look there for a file as their starting point.

AnabasisXu commented 1 month ago

Thank you both! @Spike-from-NH As you said, I wish I could point to a file in the app as a config file and update my layout/setting from there, which would save a lot of copying/pasting effort.

JapanYoshi commented 1 month ago

That is a good answer, but again, @AnabasisXu seems already to have a copy.

@JapanYoshi, the layouts folder should be added to your documentation; users who want to write XML will look there for a file as their starting point.

Added a mention.

Spike-from-NH commented 1 month ago

Thanks, @JapanYoshi!

@AnabasisXu, copypasting layouts into Unexpected→Settings (I have two) for a new phone is a minor annoyance but I know no better way. One can still update a new installation in less than one minute.