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

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