Unexpected-Keyboard icon indicating copy to clipboard operation
Unexpected-Keyboard copied to clipboard

How to export my current setting/layout?

Open AnabasisXu opened this issue 1 year ago • 6 comments

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?

AnabasisXu avatar May 19 '24 05:05 AnabasisXu

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.

Spike-from-NH avatar May 19 '24 18:05 Spike-from-NH

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

Julow avatar May 19 '24 20:05 Julow

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.

Spike-from-NH avatar May 19 '24 22:05 Spike-from-NH

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.

AnabasisXu avatar May 20 '24 00:05 AnabasisXu

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.

Spike-from-NH avatar May 20 '24 02:05 Spike-from-NH

Can you add a singular option to export everything to a file? I change several of the options to suit personal preferences and haven't been able to export between devices (and work profiles) by "pasting" the layout.

ghost avatar Sep 02 '24 08:09 ghost