How to use different keyboards in different apps without paid software? Is there a way to use different keyboards in different apps? I want to use GBoard for every app except for my Terminal, in which I want to use Hacker's Keyboard. I want to do this because GBoard is a great keyboard, but I can't use arrow keys, ctrl+c, etc.

How could I use different virtual keyboards for different apps without using paid software?

This is different from Use fixed keyboard for a given app because the answer includes paid software.



I am using the OnePlus 5 with OxygenOS 4.5.10 (Stock ROM) (Based on Nougat 7.1.1)

Using this kernel: https://build.nethunter.com/nightly/3.20-20170903-2143/kernel-nethunter-oneplus5-oos-nougat-3.20-20170903-2143.zip

Rooted with Magisk tiny.cc/latestmagisk

Using the Kali Nethunter terminal: https://github.com/offensive-security/kali-nethunter/blob/master/nethunter-installer/update/data/app/Term-nh.apk

Kali Nethunter installed with this Magisk module: https://forum.xda-developers.com/android/software-hacking/kali-nethunter-magisk-t3676681/page1
You can try Macrodroid 

Steps :-


Download, install and launch 
Go to Marcos
Add new Marco
In trigger select the app launched and select the terminal app
In actions select Keyboard switch(i guess this would cause the keyboard list popup so you will need to tap once on hakers keyboard)
Repeat same for App closed trigger (add both trigger in same macro)


Hope it gets the job done 

Do report back 

Update:

Try putting constraints of app running or app in foreground on app closed action 

And app not running or not in foregroung on app launched action 

I would also suggest to try to keeping 2 different macros for launching and closing and also it should work without legacy support