From da493880f72716568b8e4a32120737387685f59f Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Tue, 12 Sep 2017 14:19:46 +0200 Subject: [PATCH] Added bash function (comment) --- zsh/functions.zsh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/zsh/functions.zsh b/zsh/functions.zsh index 0fa4c40..43a0754 100644 --- a/zsh/functions.zsh +++ b/zsh/functions.zsh @@ -82,3 +82,19 @@ resolv() { makelatex() { cp /home/thomas/.script/classgen/Makefile.latex ./Makefile } + +# Music things +# command -v music-server > /dev/null 2>&1 +# if [ $? -eq 0 ]; then +# mplayer() { +# ps -e | grep music-server > /dev/null 2>&1 +# if [ $? -ne 0 ]; then +# nohup music-server > /dev/null 2>&1 & +# disown +# sleep 0.2s +# fi +# filename=$(echo `realpath $1` | sed 's/ /\\\\ /g' | sed "s/'/\\\\\\\\'/g") +# awesome-client "require('music').execute_command('file ' .. \"$filename\")" +# } +# fi +