aboutsummaryrefslogtreecommitdiff
path: root/source/notes/2017-02-03-cmus.md
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2017-06-20 19:03:17 +0200
committerneodarz <neodarz@neodarz.net>2017-06-20 19:03:17 +0200
commit6dbdf013628321f9996efe4a90eaa03b8a8875a4 (patch)
tree0d48ee911685c9170ee7750b5cc21e117918a5d5 /source/notes/2017-02-03-cmus.md
parente11b17c3265cca97b244fa368391cdfe8dd182f0 (diff)
downloadmy_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.tar.xz
my_new_personal_website-6dbdf013628321f9996efe4a90eaa03b8a8875a4.zip
Fork of wiki.neodarz.net
Diffstat (limited to 'source/notes/2017-02-03-cmus.md')
-rw-r--r--source/notes/2017-02-03-cmus.md52
1 files changed, 52 insertions, 0 deletions
diff --git a/source/notes/2017-02-03-cmus.md b/source/notes/2017-02-03-cmus.md
new file mode 100644
index 00000000..01276ee7
--- /dev/null
+++ b/source/notes/2017-02-03-cmus.md
@@ -0,0 +1,52 @@
+---
+title: "cmus"
+date: 2017-02-03T09:14:00
+date_display: Feb 02, 2017
+---
+
+RTFM : [https://github.com/cmus/cmus/wiki/status-display-programs#usage--installation
+](https://github.com/cmus/cmus/wiki/status-display-programs#usage--installation
+)
+
+Mettre les droit correct :
+```sh
+chmod a+x script.sh
+```
+
+Le code :
+
+```sh
+echo $@ >> script.log
+```
+
+
+Configuration de cmus :
+
+```sh
+ :set status_display_program=script.sh
+```
+
+## cmus-sender
+
+For use this script you must set the variable `status_display_program` in cmus, for example :
+
+```sh
+:set status_display_program=/home/user/.cmus/status_display_program.sh
+```
+
+```sh
+#!/bin/bash
+#echo $@ >> /home/neodarz/test.log
+echo "$2ø$6ø$8ø"${10}"ø"${12}"ø"${14}"ø"${16}"ø×" >> /home/neodarz/test.log
+#echo "Status: $2" >> /home/neodarz/test.log
+#echo "Paths: $4" >> /home/neodarz/test.log
+#echo "Artist: $6" >> /home/neodarz/test.log
+#echo "Album: $8" >> /home/neodarz/test.log
+#echo "Track Number: "${10} >> /home/neodarz/test.log
+#echo "Title: "${12} >> /home/neodarz/test.log
+#echo "Date:"${14} >> /home/neodarz/test.log
+#echo "Duration: "${16} >> /home/neodarz/test.log
+PID=$(pidof node server.js)
+kill -USR2 $PID
+```
+