How to execute bash file on onboard snippet?

Asked by AACOS on 2016-04-26

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

English Edit question
Onboard Edit question
No assignee Edit question
Last query:
Last reply:
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

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.)

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.