improve play pause script
This commit is contained in:
parent
4fcaf9899b
commit
47e8a80b17
Binary file not shown.
|
@ -10,14 +10,22 @@ def show_now_playing():
|
|||
stdout=subprocess.PIPE,
|
||||
)
|
||||
now_playing = subprocess.Popen(
|
||||
["playerctl", "metadata", "--format", "{{artist}} | {{title}}"],
|
||||
[
|
||||
"playerctl",
|
||||
"metadata",
|
||||
"--format",
|
||||
"{artist}\n\n{title}".format(
|
||||
artist="🧑🎨 {{artist}}",
|
||||
title="🎵 {{title}}",
|
||||
),
|
||||
],
|
||||
stdout=subprocess.PIPE,
|
||||
)
|
||||
|
||||
subprocess.run(
|
||||
[
|
||||
"dunstify",
|
||||
status.communicate()[0],
|
||||
"⏯ {}".format(status.communicate()[0].decode()),
|
||||
now_playing.communicate()[0],
|
||||
]
|
||||
+ id
|
||||
|
|
Loading…
Reference in New Issue