#!/usr/bin/env sh

repo=$(checkupdates | wc -l)
aur=$(pacaur -k | wc -l)

if [ $aur -ne 0 ]; then
	auru=" (+$aur)"
fi

herbstclient emit_hook updates "$repo$auru"

#!/usr/bin/env sh

repo=$(checkupdates | wc -l)
aur=$(pacaur -k | wc -l)

if [ $aur -ne 0 ]; then
	auru=" (+$aur)"
fi

printf "%s%s" "$repo" "$auru" > "${XDG_RUNTIME_DIR:-/tmp}/checkup-status"
herbstclient emit_hook updates

Update script now writes info to a status file
Update script now writes info to a status file
