#!/bin/bash . "$HOME/.wmii/include.sh" priority=$1 set -e while true; do acpi -b |a "$WMII_DIR/rbar/${priority}_battery" sleep 1 done