More useful terminal key layout for phosh's squeekboard
#11
(04-20-2020, 02:35 PM)nas Wrote:
(04-20-2020, 08:02 AM)newton688 Wrote: Do you know if you can put key sequences in there like Ctrl-C, Ctrl-V?

It was on purism's to-do list about a month ago.

And it is now available in squeekboard 1.9.1. Debian phosh already has these changes incorporated.

So, just download the new and improved terminal.yaml and you can finally use Ctrl and Alt keys.
  Reply
#12
(04-28-2020, 02:36 AM)Boern Wrote: So, just download the new and improved terminal.yaml and you can finally use Ctrl and Alt keys.

Great work. Thanks! Smile
  Reply
#13
I did not like that small bottom row, so i made my own 5 row layout where i moved some keys around to fit all same keys with 1 less row, and i replaced menu button behind shift with - and / because i see no need for menu button, - and / are often used in terminal.
https://gitlab.com/Ph42oN/squeekboard-terminal-layout
  Reply
#14
Awesome!
I modified it further to move the Tab key next to q and I moved the show_symbols key to the left and increased the size of the space bar.
Maybe I'll switch the period and comma as well.


.png   20200729_20h58m51s_grim.png (Size: 114.75 KB / Downloads: 704)

I mentioned your layout here: https://source.puri.sm/Librem5/squeekboard/-/issues/213

Maybe you should open a merge request.
  Reply
#15
I just found this post, I already created my custom keyboard layout and want to share it.

copy this code to 
~/.local/share/squeekboard/keyboards/us.yaml

Code:
---
outlines:
    default: { width: 34, height: 42 }
    action:  { width: 34,    height: 42 }
    altline: { width: 51, height: 42 }
    wide: { width: 51, height: 42 }
    spaceline: { width: 85, height: 42 }
    special: { width: 34, height: 42 }
    small: { width: 51, height: 42 }

views:
    base:
        - "- 1 2 3 4 5 6 7 8 9 0"
        - "= q w e r t y u i o p"
        - "\" a s d f g h j k l"
        - "Shift_L preferences z x c v b n m BackSpace"
        - "show_symbols Ctrl Tab ,  space period Return"
    upper:
        - "_ ! @ # $ % ^ & * ( )"
        - "+ 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_symbols Ctrl Tab :     space ? Return"
    numbers:
        - "Ctrl Alt ↑ ↓ ← →"
        - "1 2 3 4 5 6 7 8 9 0"
        - "* # $ / & - _ + ( )"
        - "show_symbols   , \" ' colon ; ! ?  BackSpace"
        - "show_letters preferences         space        period Return"
    symbols:
        - "PgUp { } \\ / * - ( ) ;"
        - "PgDn [ ] 7 8 9 + $ |"
        - "Home < > 4 5 6 = % '"
        - "End ~ ↑ 1 2 3 , colon \""
        - "show_letters ← ↓ → 0 period BackSpace  Return"
    actions:
        - "Ctrl Alt PgUp PgDn Home End"
        - "F1  F2  F3  F4  F5  F6"
        - "F7  F8  F9  F10 F11 F12"
        - "Esc Tab 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: "small"
        label: "ABC"
    show_symbols:
        action:
            set_view: "symbols"
        outline: "small"
        label: "SYB"
    show_actions:
        action:
            set_view: "actions"
        outline: "altline"
        label: ">_"
    period:
        outline: "default"
        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: "default"
        keysym: "Up"
    "↓":
        outline: "default"
        keysym: "Down"
    "←":
        outline: "default"
        keysym: "Left"
    "→":
        outline: "default"
        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: "small"
        label: "Alt"


Attached Files Thumbnail(s)
   
  Reply
#16
Can someone tell me how to remove all keyboards except the terminal keyboard? I don't need English (US) keyboard if I have the terminal one. Also, I will never use the emoji keyboard.
  Reply
#17
Manjaro will allow you to turn off the on-screen keyboard. This is nice if you are using an external keyboard so the onscreen keyboard doesn't keep flashing up. 

I am currently using Mobian and an external bluetooth keyboard and I wish I could find a similar setting. Still looking. LoL.
  Reply
#18
Just wondering, does the shift key in this one actually function as a shift key, or is it just a caps modifier like on the default keyboard?
Because the only big problem I have with the default Squeekboard keyboard is that none of the hotkeys that requires the shift key works, which can be pretty annoying at many occasions.
母語は日本語ですが、英語も喋れます(ry
  Reply
#19
I found out how to turn off the onscreen keyboard in Mobian

Settings > accessibility > typing  

Screen keyboard on/off switch

I turned off the onscreen keyboard while I am using my bluetooth keyboard and works great. Hope this helps.

(04-28-2020, 02:36 AM)Boern Wrote:
(04-20-2020, 02:35 PM)nas Wrote:
(04-20-2020, 08:02 AM)newton688 Wrote: Do you know if you can put key sequences in there like Ctrl-C, Ctrl-V?

It was on purism's to-do list about a month ago.

And it is now available in squeekboard 1.9.1. Debian phosh already has these changes incorporated.

So, just download the new and improved terminal.yaml and you can finally use Ctrl and Alt keys.

Linux noobie here. Have a copy of file terminal.yaml. Where do I download it to? You pros make it sound sooooo easy.
  Reply
#20
(01-03-2022, 03:32 PM)gilwood Wrote: Linux noobie here. Have a copy of file terminal.yaml. Where do I download it to? You pros make it sound sooooo easy.

From the first post in the thread: "~/.local/share/squeekboard/keyboards/ (create if necessary)"

Using the terminal:

The tilde (~) means your user's home directory, e.g. "cd ~" will go to your home directory. So it's in "[home_dir]/.local/share/squeekboard/keyboards".

The dot in the `.local` folder means it's a hidden folder. The folders `squeekboard` and `keyboards` may not exists, so you'll need to use `mkdir` to make them.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Photo Mobian with X11 without Wayland and Phosh. Manieck71 0 1,409 09-09-2023, 07:35 AM
Last Post: Manieck71
  How to disable lock screen in Phosh? lat 14 16,644 03-31-2023, 04:17 AM
Last Post: Eugo
  Article: NuttX RTOS for PinePhone: LVGL Terminal for NSH Shell lupyuen 0 1,523 02-01-2023, 10:11 PM
Last Post: lupyuen
  Fedora + Phosh for PinePhone njha 74 151,622 12-12-2022, 10:19 PM
Last Post: wcdeich4@hotmail.com
  Enable 'upcoming-events' on Mobian/Phosh Korac 3 3,031 09-14-2022, 01:19 AM
Last Post: dukla2000
  Advise: ENABLE animations before updating phosh! Otherwise freezes and crashes! dante404 5 4,250 08-18-2022, 02:03 PM
Last Post: dante404
  Phosh message notifications issue itstoughtofocus 2 3,174 08-15-2022, 06:39 AM
Last Post: nemsys
  Building an image with phosh liara 1 2,206 02-01-2022, 08:26 AM
Last Post: kqlnut
  Flat-file database script for pinephone terminal cabbie001 0 1,476 11-21-2021, 06:17 PM
Last Post: cabbie001
  Phosh: Idles to Lockscreen Without Powering Off Display Merc 1 2,301 11-01-2021, 09:00 AM
Last Post: e1337

Forum Jump:


Users browsing this thread: 1 Guest(s)