Article 6CRV4 Scripting: How to Send an Insert Mode?

Scripting: How to Send an Insert Mode?

by
jakfish
from LinuxQuestions.org on (#6CRV4)
With a PinePhone and its physical keyboard and Manjaro/xfce, I'm trying to build a simple script that will send a command to go into Insert Mode, type a character, and then return to Overwrite Mode, and exit.

Using xdotool, one rub is the kb's Insert Mode is Fn + ; and my searches show a lot of issues with xdotool and a hard-coded Fn key.

With: Code:xmodmap -e "keycode 108 = Insert Insert" I can circumvent possible Fn issues by successfully turning the unused AltGr key into an Insert/Overwrite key.

But I still don't know how to call either the AltGr or Fn + ; in a script to toggle to Insert Mode and then back again to Overwrite.

Any ideas how to do this?

Thanks.
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments