Another copy of my dotfiles. Because I don't completely trust GitHub.
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.
 
 
 
 
 
 

19 lines
449 B

#!/bin/bash
online=$(mpc 2> /dev/null)
title=$(mpc -f "%title%" 2> /dev/null | head -n 1)
artist=$(mpc -f "%artist%" 2> /dev/null | head -n 1)
if [ ! "$online" = "" ]; then
if [ "$(echo "$online" | wc -l)" -le 1 ]; then
echo -n "^c#a48ead^ ^d^"
else
echo -n "^c#a48ead^ ^d^ ${title:0:10} - ${artist:0:10}"
fi
else
echo -n "^c#a48ead^ﳌ ^d^"
fi
case $BLOCK_BUTTON in
1) setsid -f st -c htop -n htop -e htop;;
esac