手機 - Google Pixel 3a XL - Droidian - 如何客製化Keyboard Layout



參考資訊:
https://gitlab.com/Ph42oN/squeekboard-terminal-layout
https://github.com/zabalkansky/squeekboard-pckb-layout
https://github.com/mikeshenson/Phosh-Squeekboard-Keyboard

squeekboard-pckb-layout



Phosh-Squeekboard-Keyboard




queekboard-terminal-layout


~/.local/share/squeekboard/keyboards/custom.yaml

---
outlines:
    default: { width: 100, height: 100 }
    action: { width: 200, height: 100 }

views:
    base:
        - "s00 d01 s01 d02     s02 d01 p00"
        - "d01 s03 d01 s04 s05 d01 s06 d01"
        - "s07 d01 s08 d02     s09 d01 s10"
        - "d01 s11 d01 s12 s13 d01 s14 d01"

buttons:
    d01:
        action:
            set_view: "base"
        outline: "default"
        label: ""
    d02:
        action:
            set_view: "base"
        outline: "action"
        label: ""
    p00:
        action: "show_prefs"
        outline: "default"
        icon: "keyboard-mode-symbolic"
    s00:
        outline: "default"
        keysym: "Tab"
        label: "L"
    s01:
        outline: "default"
        keysym: "BackSpace"
        label: "R"
    s02:
        outline: "default"
        text: "m"
        label: "M"
    s03:
        outline: "default"
        keysym: "Up"
        label: "↑"
    s04:
        outline: "default"
        text: "s"
        label: "S"
    s05:
        outline: "default"
        text: "l"
        label: "L"
    s06:
        outline: "default"
        text: "x"
        label: "X"
    s07:
        outline: "default"
        keysym: "Left"
        label: "←"
    s08:
        outline: "default"
        keysym: "Right"
        label: "→"
    s09:
        outline: "default"
        text: "y"
        label: "Y"
    s10:
        outline: "default"
        text: "a"
        label: "A"
    s11:
        outline: "default"
        keysym: "Down"
        label: "↓"
    s12:
        outline: "default"
        keysym: "Escape"
        label: "SE"
    s13:
        outline: "default"
        keysym: "Return"
        label: "ST"
    s14:
        outline: "default"
        text: "b"
        label: "B"



~/.local/share/squeekboard/keyboards/terminal/us.yaml

---
outlines:
    default: { width: 35.33, height: 46 }
    action:  { width: 59,    height: 46 }
    altline: { width: 52.67, height: 46 }
    wide: { width: 59, height: 46 }
    spaceline: { width: 140, height: 46 }
    special: { width: 44, height: 46 }
    small: { width: 59, height: 22 }

views:
    base:
        - "Tab Ctrl ↑ ↓ ← →"
        - "q w e r t y u i o p"
        - "a s d f g h j k l"
        - "Shift_L   z x c v b n m  BackSpace"
        - "show_numbers preferences      space        show_actions Return"
    upper:
        - "Tab Ctrl PgUp PgDn Home End"
        - "Q W E R T Y U I O P"
        - "A S D F G H J K L"
        - "Shift_L   Z X C V B N M  BackSpace"
        - "show_numbers preferences      space        show_actions Return"
    numbers:
        - "Tab Ctrl ↑ ↓ ← →"
        - "1 2 3 4 5 6 7 8 9 0"
        - "* # $ / & - _ + ( )"
        - "show_symbols   , \" ' colon ; ! ?  BackSpace"
        - "show_letters preferences         space        period Return"
    symbols:
        - "Tab Ctrl ↑ ↓ ← →"
        - "~ ` | · √ π τ ÷ × ¶"
        - "© ® £ € ¥ ^ ° @ { }"
        - "show_numbers_from_symbols   \\ % < > = [ ]  BackSpace"
        - "show_letters preferences         space        period Return"
    actions:
        - "Tab Ctrl PgUp PgDn Home End"
        - "F1  F2  F3  F4  F5  F6"
        - "F7  F8  F9  F10 F11 F12"
        - "Esc Alt Pause Insert Up Del"
        - "show_letters Menu Break Left Down Right"

buttons:
    Shift_L:
        action:
            locking:
                lock_view: "upper"
                unlock_view: "base"
        outline: "altline"
        icon: "key-shift"
    BackSpace:
        outline: "altline"
        icon: "edit-clear-symbolic"
        action: erase
    preferences:
        action: "show_prefs"
        outline: "special"
        icon: "keyboard-mode-symbolic"
    show_numbers:
        action:
            set_view: "numbers"
        outline: "wide"
        label: "123"
    show_numbers_from_symbols:
        action:
            set_view: "numbers"
        outline: "altline"
        label: "123"
    show_letters:
        action:
            set_view: "base"
        outline: "wide"
        label: "ABC"
    show_symbols:
        action:
            set_view: "symbols"
        outline: "altline"
        label: "τ=\\"
    show_actions:
        action:
            set_view: "actions"
        outline: "altline"
        label: ">_"
    period:
        outline: "altline"
        text: "."
    space:
        outline: "spaceline"
        text: " "
    Return:
        outline: "wide"
        icon: "key-enter"
        keysym: "Return"
    colon:
        text: ":"
    F1:
        outline: "action"
        keysym: "F1"
    F2:
        outline: "action"
        keysym: "F2"
    F3:
        outline: "action"
        keysym: "F3"
    F4:
        outline: "action"
        keysym: "F4"
    F5:
        outline: "action"
        keysym: "F5"
    F6:
        outline: "action"
        keysym: "F6"
    F7:
        outline: "action"
        keysym: "F7"
    F8:
        outline: "action"
        keysym: "F8"
    F9:
        outline: "action"
        keysym: "F9"
    F10:
        outline: "action"
        keysym: "F10"
    F11:
        outline: "action"
        keysym: "F11"
    F12:
        outline: "action"
        keysym: "F12"
    Esc:
        outline: "action"
        keysym: "Escape"
    Tab:
        outline: "small"
        keysym: "Tab"
    Del:
        outline: "action"
        keysym: "Delete"
    Insert:
        outline: "action"
        keysym: "Insert"
    Menu:
        outline: "action"
        keysym: "Menu"
    Pause:
        outline: "action"
        keysym: "Pause"
    Break:
        outline: "action"
        keysym: "Break"
    Home:
        outline: "small"
        keysym: "Home"
    End:
        outline: "small"
        keysym: "End"
    PgUp:
        outline: "small"
        keysym: "Page_Up"
    PgDn:
        outline: "small"
        keysym: "Page_Down"
    "↑":
        outline: "small"
        keysym: "Up"
    "↓":
        outline: "small"
        keysym: "Down"
    "←":
        outline: "small"
        keysym: "Left"
    "→":
        outline: "small"
        keysym: "Right"
    Up:
        label: "↑"
        outline: "action"
        keysym: "Up"
    Left:
        label: "←"
        outline: "action"
        keysym: "Left"
    Down:
        label: "↓"
        outline: "action"
        keysym: "Down"
    Right:
        label: "→"
        outline: "action"
        keysym: "Right"
    Ctrl:
        modifier: "Control"
        outline: "small"
        label: "Ctrl"
    Alt:
        modifier: "Alt"
        outline: "action"
        label: "Alt"