dotfiles

Cross platform dotfiles for linux, mac and windows
git clone git@getsh.org:dotfiles.git
Log | Files | Refs

tmux-now-playing (244B)


      1 #!/bin/sh
      2 
      3 #TODO figure out how th this is working in the first place
      4 status=$(mpc)
      5 
      6 song_status="$(mpc | sed 2q | tac | head -n1)"
      7 song_title="$(printf $status | head -n2 | tac | head -n1)"
      8 
      9 printf "%s - %s\n" "${song_status}" "${song_title}"