dotfiles

Luke's GNU/Linux dotfiles for i3, vim, ranger, bash, mpd, etc.
git clone git@git.lukesmith.xyz:dotfiles
Log | Files | Refs | README | LICENSE

commit 74d169974ab2c777189727e5fc41e84916dba878
parent 39c41211dc95d75d53c43a7e42ee405c89e723b7
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Thu, 16 Aug 2018 13:23:38 -0400

i3mpdupdate fix

Diffstat:
M.config/i3/config | 2+-
M.scripts/i3mpdupdate | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.config/i3/config b/.config/i3/config @@ -44,7 +44,7 @@ exec --no-startup-id ~/.scripts/remaps # Unclutter makes the mouse invisible after a brief period exec --no-startup-id unclutter # 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. exec --no-startup-id rm -f ~/.larbs/.recording # Network manager applet diff --git 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 ;