Lemur Pro nixos dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
513 B

#!/bin/bash
case "$1" in
[Ss]tatus)
OT="$(mpc status -f "%file%" | head -n 1)"
if echo "$OT" | grep "volume:" > /dev/null ; then
echo "MPD Inactive";
else
echo "$OT";
fi
;;
[Pp]aused)
OT="$(mpc status 2> /dev/null)"
if echo "$OT" | head -n 1 | grep "volume:" > /dev/null; then
echo "⏹"
exit;
fi
if echo "$OT" | grep "paused" > /dev/null; then
echo "⏵"
else
echo "⏸"
fi
;;
*)
echo "No arg exists for $1";
;;
esac