this post was submitted on 12 Mar 2024
7 points (100.0% liked)

KDE

5281 readers
75 users here now

KDE is an international technology team creating user-friendly free and open source software for desktop and portable computing. KDE’s software runs on GNU/Linux, BSD and other operating systems, including Windows.

Plasma 6 Bugs

If you encounter a bug, proceed to https://bugs.kde.org, check whether it has been reported.

If it hasn't, report it yourself.

PLEASE THINK CAREFULLY BEFORE POSTING HERE.

Developers do not look for reports on social media, so they will not see it and all it does is clutter up the feed.

founded 1 year ago
MODERATORS
 

Anyone knows how to add a key-binding in konsole that binds a key combination to a sequence of actions?

Maybe, this could be achieved via a script?

In my case, I just want a key-binding to switch to a certain tab and send the command !! (last used command). This is super-useful while developing. I can do the first action with standard konsole keybinding and the second action using a qdbus command. I don't know how to put them together...

you are viewing a single comment's thread
view the rest of the comments
[–] count0@lemmy.dbzer0.com 2 points 7 months ago (1 children)

Soo... If we could figure out how to do the first one via DBus/from the command line, you could put both in a script and bind that to a (global or so) shortcut, and be set. (?)

What qdbus command line exactly are you using to post input to the shell within Konsole?

I'll have a look later when I'm at my desktop again (and hopefully will remember).

[–] Capricorn 3 points 7 months ago* (last edited 7 months ago)

The thing is that the qdbus command only works from inside the terminal, because it needs to know the correct konsole instance. Anyway, I moved to alacritty because the konsole support for ANSI codes is terrible...

Qdbus command: qdbus $KONSOLE_DBUS_SERVICE $KONSOLE_DBUS_SESSION runCommand "!!"