On my Ubuntu 18.04 laptop, I realized that there is no timer option for closing Spotify after a certain amount of time. Therefore, I decided to create a python script that will do it for me. The process is quite simple👍. I find the current process ID of Spotify. Then I kill it after a certain amount of time has passed.
Just run
python main.py
Then you will get prompted for a countdown. Enter it then you are set.💫
None. subprocess and sys should already be on your machine.
Use it with a tiling window manager. Ex: Tilix, i3, etc...
- Make a barebone version of it.
- Better error handling.
- Add GUI.
- Get it integrated into Spotify?.
- Timer ⏰
I don't use spotify no more :'(, so to the archive you go.