Browse Source

Update dwm status bar on automatic mpd song change

Frans Bergman 2 months ago
parent
commit
fbdf52f34d
2 changed files with 8 additions and 0 deletions
  1. 6 0
      .scripts/mpc_status.sh
  2. 2 0
      .xinitrc

+ 6 - 0
.scripts/mpc_status.sh

@@ -0,0 +1,6 @@
+#!/bin/bash
+
+while true; do
+    mpc idle player
+    pkill --signal=USR1 dwm_status.sh
+done

+ 2 - 0
.xinitrc

@@ -31,4 +31,6 @@ picom &
 sxhkd &
 dunst &
 ~/.scripts/dwm_status.sh &
+~/.scripts/mpc_status.sh &
+
 exec dwm