Use mpd song title if available
[khatus.git] / bin / khatus_show
index 50c6c97..69024fd 100755 (executable)
@@ -393,6 +393,8 @@ mpd_current=$(
         END {
             if (data["Name:"]) {
                 out = data["Name:"]
+            } else if (data["Title:"]) {
+                out = data["Title:"]
             } else {
                 file = data["file:"]
                 last = split(file, parts, "/")
@@ -422,31 +424,22 @@ echo \
 "\
  E$energy\
  \
- \
  G=$graphics_card\
  \
- \
  M$memory\
  \
- \
  C=[$cpu  ${temp}°C ${fan}rpm]\
  \
- \
  L=$load\
  \
- \
  D$disk\
  \
- \
  N:[$network]\
  \
- \
  B:$bluetooth_power\
  \
- \
  S=$screen_brightness\
  \
- \
  V=$volume\
  \
  [$mpd_state $mpd_current]\
This page took 0.037139 seconds and 4 git commands to generate.