Skip to content

Applications: Music Player

SwiftyChicken edited this page Dec 1, 2021 · 1 revision

Music Player (Spotify)

About

Currently I'm only listening to music on Spotify. I don't really use music player at the moment other than the Spotify client. Although Spotify client is terrible with a window manager but other alternatives aren't that great either.
Best option would be owning my music locally instead of streaming them and using a much better music player.

Packages

required:

optional:

  • Notifications with Dunst

Installation

main setup:

<++>

Notifications with Dunst:

<++>

Troubleshoot

Spotify won't respect the window manger rules (bspwm)...

This is an annoying problem that used to be solvable with the spotifywm-git but isn't anymore.
On bspwm you could solve this by adding the following in the external_rules.sh script.

#!/usr/bin/env sh

id="${1?}"
class=$2
instance=$3

# Fix Spotify
case "$class" in
    (foo)
        bar;;
    ("")
        unset -v _NET_WM_PID;
        . /dev/fd/0 2>/dev/null <<IN
        : \"\${$(
            xprop \
                -id "$id" \
                -notype \
                -f _NET_WM_PID 32c '=$0' \
                _NET_WM_PID;
        )}\";
IN
        case "$(ps -p "${_NET_WM_PID:?}" -o comm= 2>/dev/null)" in
            (spotify)
                echo <bspwm node rule>;;
        esac;;
esac;

And replace <bspwm node rule> with the rule you wish to apply on Spotify. For example desktop=^10 state=pseudo_tiled rectangle=1650x900+200+80.
Source: https://github.com/baskerville/bspwm/issues/291#issuecomment-265999167