Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions spotify-panel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ if pidof spotify &> /dev/null; then
readonly ARTIST=$(bash "${DIR}/spotify.sh" artist | sed 's/&/&/g')
readonly TITLE=$(bash "${DIR}/spotify.sh" title | sed 's/&/&/g')
readonly ALBUM=$(bash "${DIR}/spotify.sh" album | sed 's/&/&/g')
readonly WINDOW_ID=$(wmctrl -l | grep "${ARTIST_TITLE}" | awk '{print $1}')
ARTIST_TITLE=$(echo "${ARTIST} - ${TITLE}")

# Proper length handling
Expand All @@ -36,7 +35,7 @@ if pidof spotify &> /dev/null; then
INFO+="</txt>"
fi

INFO+="<click>xdotool windowactivate ${WINDOW_ID}</click>"
INFO+="<click>xdotool search --desktop 0 Spotify windowactivate</click>"

# Tooltip
MORE_INFO="<tool>"
Expand Down