kook/lib/base.sh

25 lines
700 B
Bash
Raw Normal View History

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"
session=$(qdbus org.kde.konsole /Konsole newSession)
}
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"
}