Главная страница


ru.linux

 
 - RU.LINUX ---------------------------------------------------------------------
 From : Sergey Sholokhov                     2:5030/675.53  22 Mar 2003  16:46:09
 To : Ilia Chirkov
 Subject : GNU/Linux counter
 -------------------------------------------------------------------------------- 
 
 
 19 Mar 2003 23:01, you wrote to Aleksei Gusev:
 
  SP>>>> А он у тебя после прибивания не нарисует в этот файл "XMMS: %s".
  SP>>>> Проверь, если нет, скажи плз версию xmms и плагина.
  IC>>> Вон, смотри ниже - рисует. А это плохо? Или с точки зрения
  IC>>> красивости? Плагин той же версии, хммс-1.2.7-2асп А то решение,
  IC>>> что предложил тот парень не рисует "XMMS: %s"?
  AG>> Парень (Я) дело говрил! ;) Hадо было смотреть на скрипт
  AG>> внимательней.
 
  IC> Закидывай этот скрипт, а то я его не видел, видимо, не дошел.
 
  IC>>> ... XMMS: %s
  AG>> ... XMMS Playing : Это сообщение набиралось под звуки клавиатуры
 
 Во прикольный скриптик шел с ljupdate.el, с ljupdate я так и не разобрался
 с кодировками, а скриптик прикольный, со стороны xmms не требует ни каких
 телодвижений.
 
 -+- begin of xmmscurrent.sh
 #!/bin/bash
 # Copyright (C) 2002 William R Thomas <corvar@theonering.net>
 
 # Maintainer: William R Thomas <corvar@theonering.net>
 # Keywords: convenience
 
 # This file is free software; you can redistribute it and/or modify
 # it under the terms of version 2 of the GNU General Public License
 # as published by the Free Software Foundation.
 
 # This file is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 # General Public License for more details.
 #
 
 # Revision History:
 # .99 Initial Version
 # 1.0 Added check to see if xmms was running
 # 1.1 Added -n and -h command line args.
 #     Improved xmms running check, to catch xmms run with a flag
 
 # Requirements:
 # Xmms-Perl
 
 # xmmscurrent.sh version: 1.1
 # works with Xmms-Perl version: 0.12 for Corvar ;)
 
 EXPR='s/^.*- \(.*\) - \(.*\)....$/\1 - \2/g'
 FILT="cat"
 
 case "$1" in
     -n)
     FILT="tr -d '\n'"
     ;;
     -h) echo "Usage: xmmscurrent.sh [-n]"
     echo "       -n suppresses trailing newline"
     exit
     ;;
 esac
 
 if [ `ps waux |egrep ' xmms($| )' |wc -l` -gt 1 ] ; then
     perl -MXmms -e current |head -1 |sed -e "$EXPR" |$FILT
 fi
 -+- end of xmmscurrent.sh
 
 и к нему приблуду еще
 -+- begin of nowplaying
 #!/bin/sh
 
 NPLAY=`xmmscurrent.sh`
 test "$NPLAY" || NPLAY="silence..."
 echo "xmms: $NPLAY" >~/Fido/.nowplaying
 echo -e "... now playing: $NPLAY\n`cat ~/.signature_orig`" >~/.signature
 -+- end of nowplaying
 --
 WBR, Sergey Sholokhov.       | ICQ : 72994428
  < GNU/Linux system inside > | mail: hun7er@sutd.ru
                H U N 7 E R   | http://www.livejournal.com/~hun7er/
 
 ... xmms: silence...
 --- GoldED+/LNX 1.1.5-CVS
  * Origin: LX7-STATION (2:5030/675.53)
 
 

Вернуться к списку тем, сортированных по: возрастание даты  уменьшение даты  тема  автор 

 Тема:    Автор:    Дата:  
 Re: GNU/Linux counter   Aleksei Gusev   04 Jan 2003 13:09:56 
 GNU/Linux counter   Michael Sachno   06 Jan 2003 01:28:38 
 GNU/Linux counter   Serge Petruschenko   07 Jan 2003 03:29:00 
 Re: GNU/Linux counter   Aleksei Gusev   07 Jan 2003 12:57:19 
 GNU/Linux counter   Roman Lagunov   08 Jan 2003 22:12:52 
 GNU/Linux counter   Ilia Chirkov   02 Feb 2003 20:06:54 
 GNU/Linux counter   Serge Petruschenko   03 Feb 2003 06:20:18 
 GNU/Linux counter   Ilia Chirkov   04 Feb 2003 08:31:46 
 Re: GNU/Linux counter   Aleksei Gusev   05 Feb 2003 21:48:59 
 GNU/Linux counter   Ilia Chirkov   20 Mar 2003 00:01:48 
 GNU/Linux counter   Sergey Sholokhov   22 Mar 2003 16:46:09 
 GNU/Linux counter   Alexander Goriachev   23 Mar 2003 10:14:47 
 Re: GNU/Linux counter   Alexander Ogol   23 Mar 2003 18:41:41 
 GNU/Linux counter   Alexander Goriachev   23 Mar 2003 21:21:01 
 Re: GNU/Linux counter   Mike Gusev   05 Feb 2003 23:09:09 
 GNU/Linux counter   Serge Petruschenko   05 Feb 2003 09:49:06 
 GNU/Linux counter   Postrekhin Yuri   07 Jan 2003 09:26:36 
Архивное /ru.linux/175253e7c613f.html, оценка 2 из 5, голосов 10
Яндекс.Метрика
Valid HTML 4.01 Transitional