Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thank you for that very helpful reference. Can you give me a clue why my attempt does not work?
I defined a shortcut named EmailAddr to be "echo Ron39@gmail.com" and it does not work. The command works fine in the terminal.
I also tried "bash echo Ron39@gmail.com" but that command does NOT work in the terminal. The terminal says it cannot execute a binary file. It also does not work as a shortcut.
Yes, I am using Gnome 3.36.8 in Ubuntu 20.04 LTS.
Last edited by JavaMeister; 06-15-2021 at 07:39 AM.
Reason: formatting
The Gnome shortcuts are for creating commands. If I understand you, you want to be able to use a short-cut just to save typing in a string in any application. If that's the case, just install the program autokey from the Ubuntu repository. It looks a bit complicated but it's worth trying: Beginners-Guide
I am surprised that there does not seem to be a "native" way to do this, "native" to Linux, Ubuntu, Gnome, etc. autokey has a LOT of power. It requires one know or learn Python to use most of it.
I'm glad you like it — I might try it myself. I too am surprised this isn't built in. Years ago on my Sinclair QL, one could create shortcuts on the fly, or in a script to run at the start, using the Alt key. So
Code:
altkey "m", "Testing!" \ "Hello world"
would enable alt-m to print the two messages at the cursor, separated by a line feed. Occasionally QDOS could reach places that Linux couldn't — the built-in alarm clock was also handy.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.