[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Antiright-devel] antiright/src ACE
From: |
Jeffrey Bedard |
Subject: |
[Antiright-devel] antiright/src ACE |
Date: |
Sat, 29 Jan 2005 06:44:50 -0500 |
CVSROOT: /cvsroot/antiright
Module name: antiright
Branch:
Changes by: Jeffrey Bedard <address@hidden> 05/01/29 11:44:50
Modified files:
src : ACE
Log message:
Updated formatting of Juke_Song() to be more presentable. Added
Next_Song() to provide an indication of the current song after a track advance.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/antiright/antiright/src/ACE.diff?tr1=1.38&tr2=1.39&r1=text&r2=text
Patches:
Index: antiright/src/ACE
diff -u antiright/src/ACE:1.38 antiright/src/ACE:1.39
--- antiright/src/ACE:1.38 Fri Jan 21 22:36:35 2005
+++ antiright/src/ACE Sat Jan 29 11:44:50 2005
@@ -289,13 +289,21 @@
}
Juke_Song()
{
- echo Playing $(grep Playing ~/.antiright_mp3s | tail -n 1\
- | cut -d ' ' -f 5-)
+ echo Playing '-{' $(grep Playing ~/.antiright_mp3s | tail -n 1\
+ | cut -d ' ' -f 5- | tr ' ' '\n' | fgrep -v '...' | tr '\n' ' ')\
+ '}-'
+}
+Next_Song()
+{
+ killall -SIGINT mpg123
+ usleep 500000
+ Juke_Song
}
Install_BitchX()
{
echo '^alias amp {exec -o ACE -A Juke_Song}' >> ~/.bitchxrc
- echo '^alias amn {exec -o killall -SIGINT mpg123}' >> ~/.bitchxrc
+ echo '^alias amn {exec ACE -A Next_Song}' >> ~/.bitchxrc
+ echo '^alias amt {exec ACE -A Juke_Song}' >> ~/.bitchxrc
}
create_fake_song_file()
{