commit ed45c7bd3f18d1e9236d0bcc3d94b56c57f76128 parent 24c4f622a4f5311abcc5c76c234173be8d56b680 Author: parazyd <parazyd@dyne.org> Date: Sat, 23 Sep 2017 14:09:47 +0200 update radio and extmon Diffstat:
M | extmon | | | 8 | ++++++-- |
M | radio | | | 46 | ++++++++++++++++++++++++---------------------- |
2 files changed, 30 insertions(+), 24 deletions(-)
diff --git a/extmon b/extmon @@ -1,14 +1,15 @@ #!/bin/sh # -# parazyd - (c) wtfpl 2016 +# parazyd - (c) wtfpl 2017 # skreenz - IN="${IN:-LVDS1}" + IN="${IN:-DP3}" EXT="${EXT:-HDMI1}" setmon() { pos="$1" + xrandr --output LVDS1 --off xrandr --output $IN --auto --primary --output $EXT --auto --${pos} $IN setwall } @@ -18,16 +19,19 @@ case "$1" in right|r) setmon right-of ;; above|a) setmon above ;; dup|d) + xrandr --output LVDS1 --off xrandr --output $EXT --same-as $IN --output $IN --primary feh --no-fehbg --bg-fill "$WALL" ;; tv) + xrandr --output LVDS1 --off xrandr --output $IN --auto --primary --output $EXT --mode 1920x1080 --above $IN xrandr --output $EXT --set "Broadcast RGB" "Full" setwall ;; off|o) xrandr --output $IN --auto --output $EXT --off --output HDMI1 --off + xrandr --output LVDS1 --auto #xrandr --output HDMI1 --off setwall ;; diff --git a/radio b/radio @@ -1,37 +1,39 @@ #!/bin/sh usage() { - cat <<EOM + cat <<EOM usage: $(basename $0) play [number|name] list of radios: - 1. Radio Ondarossa - 2. Radio Mercadosul - 3. BlurFM02 - 4. Auroville - 5. 2f30 - 6. YAMMAT - 7. KLFM - 8. NOPE - 9. Radio Paradise + 1. Radio Ondarossa + 2. Radio Mercadosul + 3. BlurFM02 + 4. Auroville + 5. 2f30 + 6. YAMMAT + 7. KLFM + 8. NOPE + 9. Radio Paradise + 10. Bitreich radio EOM - exit 1 + exit 1 } play() { - /usr/bin/mpv --no-video "$@" + /usr/bin/mpv --no-video "$@" } case "$1" in - 1|ondarossa) play "http://radio.dyne.org/ondarossa.mp3.m3u" ;; - 2|mercadosul) play "http://radio.dyne.org/mercadosul.ogg.m3u" ;; - 3|blurfm) play "http://radio.dyne.org/blurfm02.m3u" ;; - 4|auroville) play "http://radio.dyne.org/auroville.mp3.m3u" ;; - 5|2f30) play "http://radio.2f30.org:8000/live.mp3" ;; - 6|yammat) play "http://192.240.102.133:12430/" ;; - 7|klfm) play "http://klfm.streamradio.com.hr:2199/tunein/klfm1.pls" ;; - 8|nope) play "http://radionope.streamguys1.com/listen.pls" ;; - 9|paradise) play "http://stream-eu1.radioparadise.com:80/mp3-128" ;; + 1|ondarossa) play "http://radio.dyne.org/ondarossa.mp3.m3u" ;; + 2|mercadosul) play "http://radio.dyne.org/mercadosul.ogg.m3u" ;; + 3|blurfm) play "http://radio.dyne.org/blurfm02.m3u" ;; + 4|auroville) play "http://radio.dyne.org/auroville.mp3.m3u" ;; + 5|2f30) play "http://radio.2f30.org:8000/live.mp3" ;; + 6|yammat) play "http://192.240.102.133:12430/" ;; + 7|klfm) play "http://klfm.streamradio.com.hr:2199/tunein/klfm1.pls" ;; + 8|nope) play "http://radionope.streamguys1.com/listen.pls" ;; + 9|paradise) play "http://stream-eu1.radioparadise.com:80/mp3-128" ;; + 10|bitreich) play "http://bitreich.org:3232/live.m3u" ;; - *) usage ;; + *) usage ;; esac