#!/usr/bin/env fish set volume (mpc status "%volume%" | string trim --chars " %") if test $volume = "-1" set volume "0" end notify-send -c 'status' -h int:value:$volume "MPD Volume" "$volume%"