29.03.2024, 01:55 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Konversation und meine Mugge


  1. Installation des beep-media player plugins (ist beschrieben in: http://ubuntuforums.org/showpost.php?p=260440&postcount=1
  2. Das nachfolgende Script ist in einem Editor einzufügen und als media3 in ~/.kde/share/apps/konversation/scripts zu speichern.
  3. In Konversation ist ein neuer Alias anzulegen:
    media3 /exec media3 *
  4. Das war es schon.
  5. Der Alias kann dann optional mit einem Text aufgerufen werden z.b. /media3 Ich lausche:
    Falls der Parameter nicht angegeben wird, wird als Text lauscht: ausgegeben.
    Der Parameter kann auch fix im Alias angegeben werden:
    media3 /exec media3 * Ich lausche
    Anmerkung:
    An Stelle des Sterns kann natürlich jedes beliebige Zeichen, auch utf-8 Sonderzeichen verwendet werden. Bei utf-8 Zeichen ist zu bedenken, dass die Kodieren im IRC-Kanal (rechte Mausklick auf das Tab des Kanals) ebenfals auf utf-8 eingestellt ist.
    #!/bin/sh
     
    # Simple beep-media-player script for konversation. Ultra-Quick-And-Dirty :-)
    # (c) 2005 GPL 
    # author: toni eisner tonieisner@gmail.com
     
    PORT=$1;
    SERVER=$2;
    TARGET=$3;
    NOTESIGN=$4;
    MESSAGE="Lauscht: ";
    if [ -n "$5" ]
    then
      MESSAGE="$5 $6 $7 $8 $9"
    fi
     
    SONG1="`cat ~/.bmp/songchange.dat`";
    SONG2="$MESSAGE $NOTESIGN $SONG1 $NOTESIGN";
    SONG3=`echo -n -e $SONG2`;
     
    dcop $PORT Konversation say $SERVER "$TARGET" "$SONG3" 
    # eof #

Thx to ToniEisner


zurück
XML Revisions of $tag
Seiten-History :: Letzter Editor : RoEn :: Eigentümer : RoEn ::
Powered by pnWikka 1.0
 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.