Disable on screen keyboard permanently.
#7
(02-15-2022, 08:05 AM)wibble Wrote: Based on the script on the wiki page I guess something like this should work as the basis for a script which you could then add a .desktop file for:

if [ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) = "true" ]; then gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false; else gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true; fi

Thanks, that works great!

What I did was use that in a shell script ~/bin/keybd, that displays the result before exiting:

Code:
#!/bin/bash

if [ $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled) = "true" ]; then gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled false; else gsettings set org.gnome.desktop.a11y.applications screen-keyboard-enabled true; fi

echo ""
echo ""
echo ""
echo =====================================================""
echo "Toggling on-screen keyboard..."
echo "Keyboard is now: $(gsettings get org.gnome.desktop.a11y.applications screen-keyboard-enabled)"
echo =====================================================""

sleep 2

I installed xterm since I found that unlike King's Cross the xterm window closes completely after it exits (no need to swipe up).

Code:
sudo apt install xterm

Then I created the desktop file in ~/.local/share/applications/keybd_toggle.desktop:

Code:
[Desktop Entry]
Name=04 Toggle Keybd
Type=Application
Icon=input-keyboard.png
Exec=/usr/bin/xterm -fg white -bg black -e /home/mobian/bin/keybd
Categories=Utility;
X-Purism-FormFactor=Workstation;Mobile;

This makes for a very quick way to toggle the onscreen keyboard. (The reason for the number "04" in the name is to put this near the top of the screen. I have my most frequently used icons named that way, currently prefixed 00 through 04.)
  Reply


Messages In This Thread
RE: Disable on screen keyboard permanently. - by Zebulon Walton - 02-15-2022, 11:48 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  icon keyboard chris_02 3 379 02-09-2024, 08:53 AM
Last Post: 3x5co
  Keyboard not popping up on QT apps 3x5co 1 224 02-08-2024, 11:45 PM
Last Post: Kevin Kofler
  Screen auto-rotation sensitivity mdk 0 264 12-26-2023, 06:08 AM
Last Post: mdk
  Keyboard keeps disappearing the moment it's touched jojuma 1 490 10-29-2023, 08:34 AM
Last Post: walter1950
  New keyboard issue sandspur 29 12,109 10-05-2023, 02:27 AM
Last Post: grump_fiddle_reinstall
  how to disable ipv6 at kernel level with towboot? vusra 2 882 07-09-2023, 01:25 AM
Last Post: vusra
  Unable to do initial setup of Weather due to keyboard LibrePhoneUser 2 1,081 07-07-2023, 03:29 AM
Last Post: jojuma
  Screen stay black unless power key pressed short freelectro 0 643 06-24-2023, 01:55 PM
Last Post: freelectro
  Unsuspend → Black screen mdk 15 5,074 06-22-2023, 11:20 AM
Last Post: Melechtna
  Lock screen question: always squeekboard tuxcall 1 1,205 02-02-2023, 08:51 PM
Last Post: Haibara23

Forum Jump:


Users browsing this thread: 1 Guest(s)