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

  1. #!/bin/bash
  2. online=$(mpc 2> /dev/null)
  3. title=$(mpc -f "%title%" 2> /dev/null | head -n 1)
  4. artist=$(mpc -f "%artist%" 2> /dev/null | head -n 1)
  5. if [ ! "$online" = "" ]; then
  6. if [ "$(echo "$online" | wc -l)" -le 1 ]; then
  7. echo -n "^c#a48ead^ ^d^"
  8. else
  9. echo -n "^c#a48ead^ ^d^ ${title:0:10} - ${artist:0:10}"
  10. fi
  11. else
  12. echo -n "^c#a48ead^ﳌ ^d^"
  13. fi
  14. case $BLOCK_BUTTON in
  15. 1) setsid -f st -c htop -n htop -e htop;;
  16. esac