There's already two other scripts for this, but third time's the charm so here's my version^^
Usage:
Inside the file there's some things you can configure just look for 'Config vars'
The script will by default output the currently playing song into a file named nowPlaying in the same directory of the script. You can change that by editing the script.
I tested the script under Arch Linux but the way it's working, there should be no issues on other distros.
Also mind that the scripts requires sed to format strings, so make sure it's installed.
Usage:
- run sh grabNowPlaying.sh [player]
- Replace [Player] with either VLC or SpotifyWeb
- Click inside the window of VLC or your webbrowser
Inside the file there's some things you can configure just look for 'Config vars'
The script will by default output the currently playing song into a file named nowPlaying in the same directory of the script. You can change that by editing the script.
I tested the script under Arch Linux but the way it's working, there should be no issues on other distros.
Also mind that the scripts requires sed to format strings, so make sure it's installed.