Spotify: Difference between revisions

improve formatting
Norude (talk | contribs)
Spotifyd: updated stale information about spotifyd
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Unfree}}
{{tip/unfree}}
 
[https://spotify.com Spotify] is a commercial music streaming service.
[https://spotify.com Spotify] is a commercial music streaming service.


Line 22: Line 23:
The alternative client [https://github.com/Spotifyd/spotifyd spotifyd] is available as a package, [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/spotifyd.nix nixos module], and [https://github.com/nix-community/home-manager/blob/master/modules/services/spotifyd.nix home-manager module].
The alternative client [https://github.com/Spotifyd/spotifyd spotifyd] is available as a package, [https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/audio/spotifyd.nix nixos module], and [https://github.com/nix-community/home-manager/blob/master/modules/services/spotifyd.nix home-manager module].


spotifyd must have your credentials when it starts, otherwise it will not be able to authenticate with Spotify, and will not show up as a device. If installing spotifyd as a package, give it credentials when starting, e.g.:
spotifyd can either act as a spotify-connect device and the local LAN without the need to authenticate.<ref>https://docs.spotifyd.rs/configuration/auth.html#discovery-on-lan</ref> It can also run through a manual login using oauth<ref>https://docs.spotifyd.rs/configuration/auth.html#discovery-on-lan</ref> If installing spotifyd as a package or as a systemd service via home-manager, give it oauth credentials using:  
 
spotifyd --username <USER> --password <PASS>


If installing spotifyd as a systemd service via home-manager, you can supply your credentials via options. Example home-manager config:
spotifyd auth


  services.spotifyd = {
The authentication codes are stored in the cache directory for spotifyd.
    enable = true;
    settings =
      {
        global = {
          username = "Alex";
          password = "foo";
        };
      }
    ;
  }


spotifyd connects to spotify as a spotify-connect device. It offers no controls of its own, but can be controlled via [https://github.com/altdesktop/playerctl playerctl]  or [https://github.com/Rigellute/spotify-tui spotify-tui].
spotifyd connects to spotify as a spotify-connect device. It offers no controls of its own, but can be controlled via [https://github.com/altdesktop/playerctl playerctl]  or [https://github.com/LargeModGames/spotatui spotatui].


=== Troubleshooting ===
=== Troubleshooting ===