More useful terminal key layout for phosh's squeekboard
#1
I didn't like how I had to switch to numbers or functions to press numbers or the tab key, respectively. So I changed the terminal layout a bit. Numbers are now available at the top and at the bottom are tab and the arrow keys. Switching the view reveals del, escape, home, end, pgup and pgdown. The keys are now a little bit smaller but I think they are still easy enough to hit. I based it off of the German layout and added the F-keys to the umlaut-view.

Only thing missing are the modifier keys. Unfortunately they need a new squeekboard version to properly work.

Just add the file terminal.yaml to the directory ~/.local/share/squeekboard/keyboards/ (create if necessary) and it should be picked up for the terminal layout.

For the modifier keys (Ctrl and Alt) to work you need at least squeekboard 1.9.1. As of now I think only Debian phosh has that version.
  Reply
#2
The keys are a little short for my fingers but I can see how more buttons could be handy. A side effect of moving the space bar is less accidental task switcher presses - it's one way to deal with that design flaw.

I enter most input on my other phone via a ssh app - much smaller screen but layout works very well.


.jpg   squeekboard.jpg (Size: 63.01 KB / Downloads: 1,001)

.png   juicessh-keyboard.png (Size: 52.14 KB / Downloads: 934)
  Reply
#3
Yeah, it's a shame that we can't make squeekboard taller.
  Reply
#4
I'm trying out your recipe by copying the terminal.yaml to my ~/.local/share/squeekboard/keyboards but it doesn't seem to show up in my keyboard. I've tried rebooting the phone to restart squeekboard, but it still seems to be the same. Maybe I'm missing something obvious? I'm on debian+phosh at the moment and it's the version from last week.

I wonder if I can get cut/copy/paste into the keyboard somehow via ctrl-x, ctrl-c and ctrl-v somehow. That would really accelerate some of my workflows.

Thanks!
  Reply
#5
You have to select "terminal" by clicking on the small globe thingy.
  Reply
#6
(04-19-2020, 09:29 AM)Boern Wrote: You have to select "terminal" by clicking on the small globe thingy.

Thanks, when I select the globe and then "terminal" it looks the same as I had for the terminal mode when I installed the OS. It seems to be no different. I had renamed the file to terminal2.yaml but it didn't seem to add another item in the globe menu.
  Reply
#7
I think to add completely new keyboards you have to recompile squeekboard.
  Reply
#8
(04-19-2020, 01:51 PM)newton688 Wrote: Thanks, when I select the globe and then "terminal" it looks the same as I had for the terminal mode when I installed the OS. It seems to be no different. I had renamed the file to terminal2.yaml but it didn't seem to add another item in the globe menu.

Rename it to terminal.yaml to make it work. It replaces the keyboard rather than giving you more menu options.
  Reply
#9
(04-20-2020, 01:23 AM)nas Wrote:
(04-19-2020, 01:51 PM)newton688 Wrote: Thanks, when I select the globe and then "terminal" it looks the same as I had for the terminal mode when I installed the OS. It seems to be no different. I had renamed the file to terminal2.yaml but it didn't seem to add another item in the globe menu.

Rename it to terminal.yaml to make it work. It replaces the keyboard rather than giving you more menu options.

Thank you, this worked fine. I can see the new keyboard now.

Do you know if you can put key sequences in there like Ctrl-C, Ctrl-V?
  Reply
#10
(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.
  Reply


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

Forum Jump:


Users browsing this thread: 2 Guest(s)