un-key/srcs/layouts/latn_qwerty_us.xml

76 lines
2.4 KiB
XML
Raw Normal View History

2025-11-21 15:13:05 +01:00
<?xml version="1.0" encoding="utf-8"?>
<!-- This file defines the QWERTY (US) layout.
A layout is made of keys arranged into rows. Each keys can be assigned several
symbols.
'key0' assigns the symbol on the middle of the key. 'nw', 'ne', etc.. assign
symbols to the corners of a key, they are arranged following the cardinal
directions:
nw n ne
w c e
sw s se
Symbols prefixed with 'loc ' are not visible on the keyboard. They are used to
specify a place for a key, if it needed to be added to the layout later.
(for example, by the "Add keys to keyboard" option)
Keys can be made bigger with the 'width' attribute and blank space can be added
on the left of a key with the 'shift' attribute.
You can define your own bottom row by simply adding another '<row>...<row/>' tag
then disabling the built-in bottom row by adding 'bottom_row="false"' to the
keyboard metadata.
Useful links.
- Web based editor that will simplify editing of this file.
https://unexpected-keyboard-layout-editor.lixquid.com
- Full guide on how to edit the layout.
https://github.com/Julow/Unexpected-Keyboard/tree/master/doc/Custom-layouts.md
- Current definition of the bottom row (for easy importing).
https://github.com/Julow/Unexpected-Keyboard/tree/master/res/xml/bottom_row.xml
- Built-in layouts (for easy importing)
https://github.com/Julow/Unexpected-Keyboard/tree/master/srcs/layouts
-->
<keyboard name="QWERTY (US)" script="latin">
<row>
<key c="q" ne="1" se="loc esc"/>
<key c="w" nw="~" ne="2" sw="\@"/>
<key c="e" nw="!" ne="3" sw="\#" se="loc €"/>
<key c="r" ne="4" sw="$"/>
<key c="t" ne="5" sw="%"/>
<key c="y" ne="6" sw="^"/>
<key c="u" ne="7" sw="&amp;"/>
<key c="i" ne="8" sw="*"/>
<key c="o" ne="9" sw="(" se=")"/>
<key c="p" ne="0"/>
</row>
<row>
<key shift="0.5" c="a" nw="loc tab" ne="`"/>
<key c="s" ne="loc §" sw="loc ß"/>
<key c="d"/>
<key c="f"/>
<key c="g" ne="-" sw="_"/>
<key c="h" ne="=" sw="+"/>
<key c="j" se="}" sw="{"/>
<key c="k" sw="[" se="]"/>
<key c="l" ne="|" sw="\\"/>
</row>
<row>
<key width="1.5" c="shift" ne="loc capslock"/>
<key c="z"/>
<key c="x" ne="loc †"/>
<key c="c" ne="&lt;" sw="."/>
<key c="v" ne="&gt;" sw=","/>
<key c="b" ne="\?" sw="/"/>
<key c="n" ne=":" sw=";"/>
<key c="m" ne="&quot;" sw="'"/>
<key width="1.5" c="backspace" ne="delete"/>
</row>
</keyboard>