summaryrefslogtreecommitdiff
path: root/desktop/Local/share/barmodules/mpv.sh
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/Local/share/barmodules/mpv.sh')
-rwxr-xr-xdesktop/Local/share/barmodules/mpv.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/desktop/Local/share/barmodules/mpv.sh b/desktop/Local/share/barmodules/mpv.sh
new file mode 100755
index 0000000..a3fe2ec
--- /dev/null
+++ b/desktop/Local/share/barmodules/mpv.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ -f /tmp/mpvout ]; then
+ echo -n "mpv: "
+ tail -1 /tmp/mpvout | tr -d '\n'
+else
+ echo -n "mpv: stopped"
+fi