dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dc464e5bbbc38c4691294b0fd015a4256bb90ec2
parent c7d5707e1eab3199986a7d9031d5b6e10ea40e5a
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Tue, 24 Sep 2019 07:12:43 -0400

mpd-module-update with break

Diffstat:
A.local/bin/mpd-module-update | 7+++++++
M.xprofile | 7+------
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/.local/bin/mpd-module-update b/.local/bin/mpd-module-update @@ -0,0 +1,7 @@ +#!/bin/sh + +# This loop will update the mpd statusbar module whenever a command changes the +# music player's status. mpd must be running on X's start for this to work. +while : ; do + mpc idle >/dev/null && pkill -RTMIN+11 dwmblocks || break +done diff --git a/.xprofile b/.xprofile @@ -15,9 +15,4 @@ dunst & # dunst for notifications sxhkd & # Bind keys with sxhkd xset r rate 300 50 & # Speed xrate up unclutter & # Remove mouse when idle - -# This loop will update the mpd statusbar module whenever a command changes the -# music player's status. mpd must be running on X's start for this to work. -while pgrep -x mpd >/dev/null; do - mpc idle >/dev/null; pkill -RTMIN+11 dwmblocks -done +mpd-module-update & # Check for when to update the mpd module