https://github.com/friday/spotify-fixer
Spotify launch wrapper to fix scaling and forcing single window app in X11
https://github.com/friday/spotify-fixer
Last synced: 3 months ago
JSON representation
Spotify launch wrapper to fix scaling and forcing single window app in X11
- Host: GitHub
- URL: https://github.com/friday/spotify-fixer
- Owner: friday
- License: mit
- Created: 2022-08-14T20:33:08.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-07T19:28:33.000Z (over 2 years ago)
- Last Synced: 2025-01-23T16:38:30.764Z (4 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# spotify-fixer
This small scripts does two things:
1. On X11 it attempts to activate (raise) Spotify if it's already running,
instead of trying to open a new Window (Spotify should be a single window app)
The fix only works for X11 (but the issue happens on Wayland too).
2. It checks for and tries to use your HiDPI settings from _your_ gsettings (dconf),
including both screen and font scaling. This uses the GTK/Gnome stadard way to check for scaling.## Dependencies
* spotify
* python-gobject (aka python3-gi or pygobject)
* libwnck3 (aka gir1.2-wnck-3.0) - Optional, but required to have Spotify run as a single window app in X11## Usage
* It should be placed in `$PATH`, in a location that overrules /usr/bin/ (preferably `/usr/local/bin/` and not anywhere in $HOME unless you are sure all the app launchers you use runs as your user.
* It expects spotify to be located in `/usr/bin/spotify` (so if it's not, you'll have to chanfge the script)# Arch install
```sh
yay -S spotify-fixer
```# Others Distros
Install the dependencies manually and run:
```
sudo wget -P /usr/local/bin/ https://raw.githubusercontent.com/friday/spotify-fixer/main/spotify
sudo chmod +x /usr/local/bin/spotify
```## License
The code is licensed as MIT.