Bloc notes | Spotify & scale factor

Posted on May 12, 2018 by Alex comments [nixos spotify]

With screens that have high resolution, Spotify may not be usable because the window is not automatically scaled. For that, there is an argument to give to Spotify: –force-device-scale-factor=2

Here's how to automate it with Nix

spotify.overrideDerivation (old: {
  postInstall = ''
    wrapProgram $out/share/spotify/spotify --add-flags ${lib.escapeShellArg "--force-device-scale-factor=2"}