added more media information
This commit is contained in:
parent
544718757c
commit
3a76fd59df
2 changed files with 6 additions and 4 deletions
|
@ -1,6 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
status=$(playerctl status)
|
||||
name=$(playerctl metadata title)
|
||||
title=$(playerctl metadata title)
|
||||
artist=$(playerctl metadata artist)
|
||||
album=$(playerctl metadata album)
|
||||
|
||||
echo '{"status":"'"$status"'","name":"'"$name"'"}'
|
||||
echo '{"status":"'"$status"'","title":"'"$title"'","artist":"'"$artist"'","album":"'"$album"'"}'
|
Loading…
Add table
Add a link
Reference in a new issue