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)
|
||||
(label
|
||||
:text {media.name}
|
||||
:tooltip {media.name}
|
||||
:text "${media.title} - ${media.artist}"
|
||||
:tooltip "${media.title} - ${media.artist} | ${media.album}"
|
||||
:truncate true)
|
||||
(space)))
|
||||
|
||||
|
|
|
@ -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
Reference in a new issue