6 lines
No EOL
132 B
Bash
Executable file
6 lines
No EOL
132 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
status=$(playerctl status)
|
|
name=$(playerctl metadata title)
|
|
|
|
echo '{"status":"'"$status"'","name":"'"$name"'"}' |