Source code |
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
#!/bin/sh # # make kopete show the game and server you are currently playing on # when starting a game from XQF # # copy this file to ~/.qf/PreLaunch, chmod+x and make sure that XQF creates the launchinfo file and # executes this file as prelaunch script (XQF -> preferences -> gereneral -> ...when launching a game ) ##### settings ##### YOURNAME="spirit" YOURNICK="dichtfux" ##### get info ##### XQFHOME="$HOME/.qf" INFOFILE="$XQFHOME/LaunchInfo.txt" if [ ! -r $INFOFILE ]; then echo "infofile not found at $INFOFILE. using default message." STATUS="$YOURNAME is playing online games. his nick is $YOURNICK." else GAME=$(grep ^GameType $INFOFILE | sed s/GameType//) MOD=$(grep ^ServerMod $INFOFILE | sed s/ServerMod//) SRVADR=$(grep ^ServerAddr $INFOFILE | sed s/ServerAddr//) SRVNAME=$(grep ^ServerName $INFOFILE | sed s/ServerName//) STATUS="$YOURNAME is playing $GAME $MOD on a server named $SRVNAME ($SRVADR ). \ his nickname is currently $YOURNICK." fi ##### show info ##### dcop kopete KopeteIface setAway "$STATUS" echo "set kopete away message to : \"$STATUS\"" |
Forum Software: Burning Board®, developed by WoltLab® GmbH
Linux Computer - Linux Forum -
Linux Computer und Notebooks - Lastminute - Wasserbetten & Whirlpools