summaryrefslogtreecommitdiff
path: root/desktop/.local/bin/barstatus
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/.local/bin/barstatus')
-rwxr-xr-xdesktop/.local/bin/barstatus15
1 files changed, 15 insertions, 0 deletions
diff --git a/desktop/.local/bin/barstatus b/desktop/.local/bin/barstatus
new file mode 100755
index 0000000..3275533
--- /dev/null
+++ b/desktop/.local/bin/barstatus
@@ -0,0 +1,15 @@
+#!/bin/sh
+echo -n "SPKR: $(wpctl get-volume @DEFAULT_AUDIO_SINK@ 2> /dev/null ) ; MIC: $(wpctl get-volume @DEFAULT_AUDIO_SOURCE@ 2> /dev/null) "
+echo -n " | "
+echo -n "$(date)"
+pidof qmmp 2> /dev/null > /dev/null
+if [ $? -eq 0 ]; then
+ echo -n " | "
+ nowplaying=$(qmmp --nowplaying '%p - %a: %t')
+ if [ ${#nowplaying} -gt 80 ]; then
+ echo -n "${nowplaying:0:77}... "
+ else
+ echo -n "$nowplaying"
+ fi
+ echo -n "$(qmmp --status | head -1)"
+fi