i3mpdupdate fix

This commit is contained in:
Luke Smith 2018-08-16 13:23:38 -04:00
parent 39c41211dc
commit 74d169974a
2 changed files with 5 additions and 2 deletions

View file

@ -44,7 +44,7 @@ exec --no-startup-id ~/.scripts/remaps
# Unclutter makes the mouse invisible after a brief period # Unclutter makes the mouse invisible after a brief period
exec --no-startup-id unclutter exec --no-startup-id unclutter
# Run the script to update the mpd i3block on change. # Run the script to update the mpd i3block on change.
exec --no-startup-id "pgrep -x i3mpdupdate || i3mpdupdate" exec --no-startup-id i3mpdupdate
# Remove recording icon if not properly closed on last shutdown. # Remove recording icon if not properly closed on last shutdown.
exec --no-startup-id rm -f ~/.larbs/.recording exec --no-startup-id rm -f ~/.larbs/.recording
# Network manager applet # Network manager applet

View file

@ -1,4 +1,7 @@
#!/bin/bash #!/bin/sh
[ "$(pgrep -x i3mpdupdate | wc -l)" -gt 2 ] && exit
while : ; do while : ; do
mpc idle > /dev/null mpc idle > /dev/null
pkill -RTMIN+11 i3blocks ; pkill -RTMIN+11 i3blocks ;