Score:0

Create a custom keyboard shortcut to type in text

cn flag

I am constantly typing the same text in Ubuntu 18.04, be it passwords/short lines of code.

My keyboard has some additional keys which do not work in Ubuntu (calculator/skype/headphones/email/homepage) which I would like to transform into macro keys for making my work less type centric.

In the shortcut menu, I can assign commands to keys. How can I give a command to type something?

e.g, press the homepage button would be equivalent to press the keys "A","S","K","U","B","U","N","T","U"

Best Regards

David avatar
cn flag
Does your keyboard have its own driver for Ubuntu?
Jacob Vlijm avatar
by flag
Old post, but still works without an issue (just tested) https://askubuntu.com/a/544388/72216
Manuel Oliveira avatar
cn flag
Is autokey working when I lock the screen?
Score:0
us flag

I don't recommend the following applications for passwords since you have to store them in plain text. But they are great for text and code.

AutoKey (Qt or gtk) - program keyboard shortcuts.

  • I've tried with home, pgup, pgdn, end and others. Not sure if it will work for your keyboard.

Espanso - Text Expander

Actiona - For more complex scripts that can be launch with a hotkey. I think you can only run one instance at the time. You can Open a URL, type text, move cursor, click, etc.

actiona

For passwords KeePassXC (Cross-Platform Password Manager) can autotype passwords.

Manuel Oliveira avatar
cn flag
Is it not possible to assign a shortcut with keystrokes? Will it be able to run when the screen is locked?
Gounou avatar
us flag
What kind of shortcut do you need? If it's a shortcut to a software you can achieve this with AutoKey. However, it is better to use the [Custom shortcuts option](https://help.ubuntu.com/stable/ubuntu-help/keyboard-shortcuts-set.html.en) from Ubuntu (you can run a command, for example : `terminator` to run the terminal with that name and assign a shortcut key combination). I think none of them will work with hotkey when the screen is locked.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.