summaryrefslogtreecommitdiffstats
path: root/.scripts
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2018-08-16 13:23:38 -0400
committerLuke Smith <luke@lukesmith.xyz>2018-08-16 13:23:38 -0400
commit74d169974ab2c777189727e5fc41e84916dba878 (patch)
tree3154c50e252d285549f5fcf04cd91e44a68863c0 /.scripts
parent39c41211dc95d75d53c43a7e42ee405c89e723b7 (diff)
downloadeibhear-74d169974ab2c777189727e5fc41e84916dba878.tar.gz
eibhear-74d169974ab2c777189727e5fc41e84916dba878.tar.zst
eibhear-74d169974ab2c777189727e5fc41e84916dba878.zip
i3mpdupdate fix
Diffstat (limited to '.scripts')
-rwxr-xr-x.scripts/i3mpdupdate5
1 files changed, 4 insertions, 1 deletions
diff --git a/.scripts/i3mpdupdate b/.scripts/i3mpdupdate
index 9aa871f..95f16f6 100755
--- a/.scripts/i3mpdupdate
+++ b/.scripts/i3mpdupdate
@@ -1,4 +1,7 @@
-#!/bin/bash
+#!/bin/sh
+
+[ "$(pgrep -x i3mpdupdate | wc -l)" -gt 2 ] && exit
+
while : ; do
mpc idle > /dev/null
pkill -RTMIN+11 i3blocks ;