added more media information
This commit is contained in:
parent
544718757c
commit
3a76fd59df
2 changed files with 6 additions and 4 deletions
|
@ -100,8 +100,8 @@
|
||||||
:space-evenly false
|
:space-evenly false
|
||||||
(space)
|
(space)
|
||||||
(label
|
(label
|
||||||
:text {media.name}
|
:text "${media.title} - ${media.artist}"
|
||||||
:tooltip {media.name}
|
:tooltip "${media.title} - ${media.artist} | ${media.album}"
|
||||||
:truncate true)
|
:truncate true)
|
||||||
(space)))
|
(space)))
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
status=$(playerctl status)
|
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
Reference in a new issue