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…

  • Capricorn@lemmy.todayOP
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    8 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 "!!"