!/bin/bash # a simple wrapper for inserting xmobar stuff status=$(status-bat) parts=($status) echo "${parts[0]} ${parts[1]}"