#!/bin/bash case $1 in "toggle") mpc toggle ;; "next") mpc next & pkill -RTMIN+2 i3blocks ;; "prev") mpc prev & pkill -RTMIN+2 i3blocks ;; esac