#!/bin/sh # RenameKonsoleTab.sh # Mon Mar 30 14:05:54 PST 2009 # Chieh Cheng # http://www.CynosureX.com/ # GNU General Public License (GPL) Version 2, June 1991 scriptName=`basename "$0"` usage () { echo " Usage: ${scriptName} \"new name\"" } if [ $# -eq 1 ] then name="$1" exist1=`ApplicationExists.sh dcopclient` exist2=`ApplicationExists.sh dcop` if [ ${exist1} -eq 1 ] && [ ${exist2} -eq 1 ] then window=`dcopclient $KONSOLE_DCOP` tab=`dcop $KONSOLE_DCOP currentSession` dcop "${window}" "${tab}" renameSession "${name}" fi else usage fi