Piping to awesome-client is better...
This commit is contained in:
parent
f082d6c5a5
commit
780f92ff39
|
@ -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\")"
|
||||||
|
|
Loading…
Reference in New Issue