1
How to open Konsole in Split View and run a command?
(lemmy.dbzer0.com)
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.
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.
Off the top of my head, you could write a small function and place it in your shell's start up file (ex: .bashrc). The function would check to see if htop is running under your userid, and if not start it...although depending on the timing you may end up with htop in both sessions.
A second option would be to create a bookmark and set the location to something such as ssh://youruserid@localhost "htop" <- I've not tested this, I've only bookmarks to ssh into remote systems
It may just be easier to associate the command you need to a 2 or 3 letter alias and simply type that in
As for timing, one could use the flock function to ensure only one process starts. Something like this (untested):
flock -n ~/.htop.lock -c htop