How to execute bash file on onboard snippet?

Asked by AACOS

Hello,
I am trying to execute bash commands on onboard custom layout snippets. Or is there alternate ways of doing that using python or autokey etc.

Question information

Language:
English Edit question
Status:
Answered
For:
Onboard Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
marmuta (marmuta) said :
#1

Hi, Onboard 's snippets are mainly meant to be used while you are typing with the on-screen keyboard anyway. There are no hotkeys for example, you always have to press a snippet button.

However there exists actually an autokey-gtk package that seems to allow to assign hotkeys to arbitrary actions. Perhaps just try it and see which one you like better. I don't have experience with it, unfortunately.

sudo apt-get install autokey-gtk

Revision history for this message
Francesco Fumanti (frafu) said :
#2

Simply terminate the command in the snippet with a space, a backslash and the letter n. For example:

ls \n

(I am assuming that a bash terminal is the active window.)

Revision history for this message
AACOS (ubuntuaaos) said :
#3

Thanks you both, will try an report back.

Can you help with this problem?

Provide an answer of your own, or ask AACOS for more information if necessary.

To post a message you must log in.