71633575375d

RIP
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 23 Jan 2016 18:22:17 +0000
parents cfcf9932226d
children e5daabe9025c
branches/tags (none)
files bin/rdio-current-track-tmux

Changes

--- a/bin/rdio-current-track-tmux	Sat Jan 23 18:22:07 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,24 +0,0 @@
-#!/usr/bin/env bash
-RDIO_TRACK=$(osascript <<EOF
-if appIsRunning("Rdio") then
-    tell app "Rdio" to get the name of the current track
-end if
-
-on appIsRunning(appName)
-    tell app "System Events" to (name of processes) contains appName
-end appIsRunning
-EOF)
-
-if test "x$RDIO_TRACK" != "x"; then
-RDIO_ARTIST=$(osascript <<EOF
-if appIsRunning("Rdio") then
-    tell app "Rdio" to get the artist of the current track
-end if
-
-on appIsRunning(appName)
-    tell app "System Events" to (name of processes) contains appName
-end appIsRunning
-EOF)
-
-    echo '#[fg=colour137,bg=colour234]⮂#[bg=colour137,fg=colour16,bold] ♫' $RDIO_TRACK '#[nobold]-#[bold]' $RDIO_ARTIST '#[fg=colour254,bg=colour137,nobold]'
-fi