mirror of
https://github.com/dewomser/Toot_music_is_playing.git
synced 2026-03-13 16:37:17 +01:00
t your music
This commit is contained in:
parent
3ced7e2c9e
commit
6e2d263dc8
1 changed files with 4 additions and 0 deletions
4
toot_music
Executable file
4
toot_music
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
readarray a <<< "$(qdbus org.mpris.MediaPlayer2.clementine /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Metadata | grep -E 'artUrl|genre|artist|album:|title:'| sed -e 's/xesam://g'| sed -e 's/mpris:artUrl: file:\/\///g')"
|
||||
toot post "${a[1]} ${a[2]} ${a[3]} ${a[4]}" --media ${a[0]} --debug
|
||||
Loading…
Add table
Add a link
Reference in a new issue