Piping to awesome-client is better...

This commit is contained in:
Thomas Forgione 2017-10-20 11:39:35 +02:00
parent f082d6c5a5
commit 780f92ff39
No known key found for this signature in database
GPG Key ID: C75CD416BD1FFCE1
1 changed files with 1 additions and 1 deletions

View File

@ -128,7 +128,7 @@ if [ $? -eq 0 ]; then
music-client() { music-client() {
command=$1 command=$1
if [ $# -eq 1 ]; then if [ $# -eq 1 ]; then
echo "require('music').execute_command(\"$command\")" echo "require('music').execute_command(\"$command\")" | awesome-client
else else
library_path=$(realpath $2 | rev | cut -d '/' -f -3 | rev) library_path=$(realpath $2 | rev | cut -d '/' -f -3 | rev)
awesome_command="require('music').execute_command(\"$command\",\"$library_path\")" awesome_command="require('music').execute_command(\"$command\",\"$library_path\")"