2 # This small script renames the konsole tab to the commands' last argument
7 lastarg="${args[(w)-1]}"
8 if [ -n "$KONSOLE_DCOP_SESSION" ]
10 dcop ${KONSOLE_DCOP_SESSION} renameSession "$lastarg"
11 elif [ -n "$KONSOLE_DBUS_SESSION" ]
13 qdbus ${KONSOLE_DBUS_SERVICE} ${KONSOLE_DBUS_SESSION} setTitle 0 "$lastarg" > /dev/null
14 qdbus ${KONSOLE_DBUS_SERVICE} ${KONSOLE_DBUS_SESSION} setTitle 1 "$lastarg" > /dev/null