Files
dotfiles/bin/myi3

14 lines
177 B
Bash
Executable File

#!/bin/bash
i3status | while :
do
read line
MPC=`mpc current`
if [[ -z $MPC ]]
then
echo "$line" || exit 1
else
echo "Playing: $MPC | $line" || exit 1
fi
done