2013-06-04 13:46:44 +00:00
|
|
|
|
2013-06-04 14:08:18 +00:00
|
|
|
kotam_run() {
|
2013-06-04 13:46:44 +00:00
|
|
|
local cmd="$*"
|
|
|
|
qdbus org.kde.konsole /Sessions/${session} sendText "$cmd"
|
|
|
|
qdbus org.kde.konsole /Sessions/${session} sendText "
|
|
|
|
"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2013-06-04 14:08:18 +00:00
|
|
|
kotam_newtab() {
|
2013-06-04 13:46:44 +00:00
|
|
|
#dbus-send --session --dest=${KONSOLE_DBUS_SERVICE} --type=method_call \
|
|
|
|
# --print-reply /konsole/MainWindow_1 org.kde.KMainWindow.activateAction string:"new-tab"
|
|
|
|
|
2013-12-27 11:42:57 +00:00
|
|
|
TARGET=${KONSOLE_DBUS_SERVICE:-org.kde.konsole}
|
|
|
|
session=$(qdbus $TARGET /Konsole newSession)
|
2013-06-04 13:46:44 +00:00
|
|
|
}
|
|
|
|
|
2013-06-04 14:08:18 +00:00
|
|
|
kotam_renametab() {
|
2013-06-04 13:46:44 +00:00
|
|
|
#sessionno=$1
|
|
|
|
tabname=$1
|
|
|
|
#session="/Sessions/${sessionno}"
|
|
|
|
#dbus-send --session --dest=${KONSOLE_DBUS_SERVICE} --type=method_call --print-reply ${session} org.kde.konsole.Session.setTitle int32:1 string:"$tabname"
|
|
|
|
qdbus org.kde.konsole /Sessions/${session} setTitle 1 "$tabname"
|
|
|
|
}
|
|
|
|
|