You are not logged in.

#1 Yesterday 10:29:50

Pafrapé
Member
Registered: 2010-10-25
Posts: 38

Terminal command to execute a shortcut

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

#2 Yesterday 12:13:19

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,714

Re: Terminal command to execute a shortcut

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

#3 Yesterday 12:28:21

Pafrapé
Member
Registered: 2010-10-25
Posts: 38

Re: Terminal command to execute a shortcut

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

#4 Yesterday 12:29:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,508

Re: Terminal command to execute a shortcut

You have to tell us what you mean by 'a shortcut', then. That's not a specific thing in Linux.

Offline

#5 Yesterday 12:44:08

Pafrapé
Member
Registered: 2010-10-25
Posts: 38

Re: Terminal command to execute a shortcut

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

#6 Yesterday 12:56:48

dimich
Member
From: Kharkiv, Ukraine
Registered: 2009-11-03
Posts: 460

Re: Terminal command to execute a shortcut

Pafrapé wrote:

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

#7 Yesterday 13:57:16

Pafrapé
Member
Registered: 2010-10-25
Posts: 38

Re: Terminal command to execute a shortcut

Konsole for exemple

Offline

#8 Yesterday 13:58:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,508

Re: Terminal command to execute a shortcut

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

#9 Yesterday 15:10:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: Terminal command to execute a shortcut

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

#10 Yesterday 22:03:04

gxt25
Member
Registered: 2017-07-05
Posts: 108

Re: Terminal command to execute a shortcut

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

#11 Today 04:24:35

ReDress
Member
From: Nairobi
Registered: 2024-11-30
Posts: 219

Re: Terminal command to execute a shortcut

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

Board footer

Powered by FluxBB