ye
This commit is contained in:
9
scripts/st-dbus-mon
Executable file
9
scripts/st-dbus-mon
Executable file
@ -0,0 +1,9 @@
|
||||
#!/bin/sh
|
||||
dbus-monitor --session "member='PropertiesChanged'" |
|
||||
while read X; do
|
||||
if [[ $X == *"Metadata"* ]]; then
|
||||
TITLE=$(playerctl metadata title)
|
||||
ARTIST=$(playerctl metadata artist)
|
||||
notify-send "Now playing" "$TITLE - $ARTIST" -i :
|
||||
fi
|
||||
done
|
||||
Reference in New Issue
Block a user