FAIR WARNING:
This is a hobby-project and work-in-progress made for and on Manjaro KDE with Zshell
by an idiot that can't really code
The code is bad, shameful and hard to look at.
Without arguments kommander displays a list of currently open konsole-windows and -sessions
session 1 in the current window will execute ls-command
Execute ls-command in session 1 of the window refrenced (org.kde.konsole-PID can also be the first argument)
Open new konsole window, split it's view into 2 sessions vertically, execute ls in left split-view and htop in right.
Resize current/given window using wmctrl
Place on screen and resize current/given window using wmctrl
List and identify the current sessions in the current/given window by executing "echo this is session X" in the session(s)
List and identify the current sessions in all windows by executing "echo this is session X" in the session(s)
List the current sessions in current/given window
Returns the current window's qdbus refrence
Perform kill -SIGINT (same as pressing ctrl+c) on the current process running in the given session
Perform kill -SIGINT on all running processes in all other sessions, in the current window
Perform kill -SIGINT on all running processes in all other sessions, in all windows
Sends clear command to all other sessions in current window, if ps -p SESSION-PID -o comm= says "zsh" is the currently running process
Sends clear command to all other sessions in all windows, if ps -p SESSION-PID -o comm= says "zsh" is the currently running process
Select a profile for the current session from the list of available konsole profiles
Select a profile for the given session from the list of available konsole profiles