You are not logged in.
Hello, I would like to know if there is a command in the terminal to execute a shortcut, and if so, which one?
Thank you.
Offline
Terminals typically have their own shortcuts, but if you want to reduce typing shell aliases are an option .
my ~/.bashrc has
alias makepkg='makepkg -Crs --nocheck'in it .
So everytime I type makepkg as that user the bash shell executes makepkg -Crs --nocheck .
In case I want to execute makepkg without anything added I can type /usr/bin/makepkg .
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Thank you for your reply.
But that's not what I'm looking for.
I'm trying to find out if it's possible to write a shortcut in the console to run it, and if so, how.
Offline
You have to tell us what you mean by 'a shortcut', then. That's not a specific thing in Linux.
Offline
For example, the shortcut to launch Dolphin is: Meta+E,
for Krusader: Meta+K,
for Konsole: Ctrl+Alt+T.
I would like to know if it's possible to write these shortcut commands in a terminal to launch the applications, and how to do so.
Thank you for your help.
Offline
if it's possible to write these shortcut commands in a terminal to launch the applications, and how to do so.
What "terminal" do you mean? Pure virtual console or terminal emulator GUI application or terminal multiplexer?
In general terminals are not supposed to bind custom commands execution to hotkeys.
Online
Konsole for exemple
Offline
Sure, for example, to run Krusader, you would use 'krusader'.
You use hotkeys to run commands, using commands to run hotkeys makes no sense.
Offline
Otherwise this would related to the shell, not the TE and you could use bind or bindkey (bash/zsh) but as pointed out: that approach makes little to no sense at all.
wrt the parallel https://bbs.archlinux.org/viewtopic.php?id=311997
https://en.wikipedia.org/wiki/XY_problem - you seem to be trying to brick together a solution for something? In that case it's better to inquire about "something" directly.
Offline
Are you looking for something like a bash alias such as k for /usr/bin/konsole ?
I see you've basically said no to this idea earlier but then I'm in the same position as everyone else here, completely missing your goal
Last edited by gxt25 (Yesterday 22:10:25)
a man a plan a canal panama
Offline
I'm just randomly guessing here but yeah, gnome terminal doesn't allow for adding more shortcuts but does have shortcuts and you can edit the hotkeys.
I would assume it's possible to hax this by editing some config files
Offline