This commit is contained in:
abs3nt 2024-02-18 23:54:18 -08:00
parent bb5e93090e
commit a8251648e5
Signed by: abs3nt
GPG Key ID: A7BD96A8BAB04C09
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
# Tmux gospt plugin
# Tmux gspot plugin
Plugin that shows current playing song with [gospt](https://git.asdf.cafe/abs3nt/gospt).
Plugin that shows current playing song with [gspot](https://git.asdf.cafe/abs3nt/gspot).
![Screenshot](https://user-images.githubusercontent.com/86447830/213586650-1a1d67c6-c029-4724-b8c2-f027deb16bb4.png)
@ -16,7 +16,7 @@ set -g status-right '#{now_playing}'
Add plugin to the list of TPM plugins:
```tmux.conf
set -g @plugin 'abs3ntdev/tmux-gospt'
set -g @plugin 'abs3ntdev/tmux-gspot'
```
Press prefix + I to install it.
@ -26,7 +26,7 @@ Press prefix + I to install it.
Clone the repo:
```bash
$ git clone https://git.asdf.cafe/abs3nt/tmux-gospt ~/clone/path
$ git clone https://git.asdf.cafe/abs3nt/tmux-gspot ~/clone/path
```
Add this line to your .tmux.conf:

View File

@ -1,7 +1,7 @@
#!/bin/bash
set -euo pipefail
song="$(gospt nowplaying)"
song="$(gspot nowplaying)"
if [[ $song =~ ['⏸'] ]]; then