Plan 9 from Bell Labs’s /usr/web/sources/contrib/maht/rc/dfm

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#!/bin/rc

# script for playing dfm mp3 radio, it keeps a window minimized so you can bring it to the front and kill it

if (~ $1 -p) {
	echo bottom > /dev/wctl
	echo -n dfm > /dev/label
	usb/audio
	while() { hget `{hget http://dfm.nu/dfm_1.m3u | grep http} | madplay - }
}
if not {
	exec w 10 10 150 140 -scroll dfm -p
}

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.