aboutsummaryrefslogtreecommitdiffstats
path: root/.config/herbstluftwm/mpc-status.sh
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2018-10-05 08:14:03 -0700
committerkatherine <shmibs@shmibbles.me>2018-10-05 08:14:03 -0700
commitb2c2ec02f4bf781216fe526c1985fc9338d46a1d (patch)
tree789ce06cae971a20e3584f655330d3df6baa505e /.config/herbstluftwm/mpc-status.sh
parent63f30fb2220d20ce25f6b182e062a6101bcf3895 (diff)
downloaddotfiles-b2c2ec02f4bf781216fe526c1985fc9338d46a1d.tar.gz
fix dunst (finally!)
Diffstat (limited to '.config/herbstluftwm/mpc-status.sh')
-rwxr-xr-x.config/herbstluftwm/mpc-status.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/.config/herbstluftwm/mpc-status.sh b/.config/herbstluftwm/mpc-status.sh
index a9a1fd9..58b530f 100755
--- a/.config/herbstluftwm/mpc-status.sh
+++ b/.config/herbstluftwm/mpc-status.sh
@@ -1,9 +1,5 @@
#!/bin/bash
-# i patched dunst to clear all on SIGUSR1
-killall -SIGUSR1 dunst
-# race condition, obvs, but this should be plenty time
-
case "$1" in
next)
mpc next
@@ -36,4 +32,4 @@ message="$(mpc current -f '##%track% %title% (%date%)\n%artist% - %album%')
$(mpc status | tail -n -2 | sed -re 's/volume.*repeat/\nrepeat/' -e 's/( ){3,4}/\n/g' -e '/volume: /d')"
-notify-send --icon=/tmp/mpd-icon.png "$message"
+notify-send -t 4000 -a closeme --icon=/tmp/mpd-icon.png "$message"