Dotfiles for my tiling window manager + terminal workflow.
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.

12 lines
696 B

6 years ago
6 years ago
  1. #!/bin/bash
  2. case "$BLOCK_BUTTON" in
  3. 1) dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause ;;
  4. 2) dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous ;;
  5. 3) dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next ;;
  6. esac
  7. . "/home/kevin/.cache/wal/colors.sh"
  8. long_title=$(spotify-now -i '%artist - %title' -p '' -e '' | sed 's/&/&/g')
  9. short_title=$(spotify-now -i '%title' -p '' -e '' | sed 's/&/&/g')
  10. printf "$long_title\n$short_title\n%s\n" "$color7"