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 +