ncmpc
authorOwen Smith <owen@omsmith.ca>
Wed, 15 May 2013 06:33:28 +0000 (02:33 -0400)
committerOwen Smith <owen@omsmith.ca>
Wed, 15 May 2013 06:33:28 +0000 (02:33 -0400)
bootstrap.sh
templates/ncmpc [new file with mode: 0755]

index b892064..756739e 100755 (executable)
@@ -80,5 +80,8 @@ if [[ $REPLY =~ ^[Yy]$ ]]
 then
     # xscreensaver kills machines, redirect to gnome-screensaver
     cp ./templates/xscreensaver-command /usr/local/bin/xscreensaver-command
+
+    # ncmpc -> nullsleep
+    cp ./templates/ncmpc /usr/local/bin/ncmpc
 fi
 
diff --git a/templates/ncmpc b/templates/ncmpc
new file mode 100755 (executable)
index 0000000..a3194db
--- /dev/null
@@ -0,0 +1,8 @@
+#!/usr/bin/env bash
+
+if [[ `hostname -f` = nullsleep.csclub.uwaterloo.ca ]]; then
+    /usr/bin/ncmpc "$@"
+else
+    ssh nullsleep.csclub.uwaterloo.ca -t ncmpc "$@"
+fi
+