gspot
This commit is contained in:
parent
bb5e93090e
commit
a8251648e5
@ -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)
|
![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:
|
Add plugin to the list of TPM plugins:
|
||||||
|
|
||||||
```tmux.conf
|
```tmux.conf
|
||||||
set -g @plugin 'abs3ntdev/tmux-gospt'
|
set -g @plugin 'abs3ntdev/tmux-gspot'
|
||||||
```
|
```
|
||||||
|
|
||||||
Press prefix + I to install it.
|
Press prefix + I to install it.
|
||||||
@ -26,7 +26,7 @@ Press prefix + I to install it.
|
|||||||
Clone the repo:
|
Clone the repo:
|
||||||
|
|
||||||
```bash
|
```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:
|
Add this line to your .tmux.conf:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
song="$(gospt nowplaying)"
|
song="$(gspot nowplaying)"
|
||||||
|
|
||||||
if [[ $song =~ ['⏸'] ]]; then
|
if [[ $song =~ ['⏸'] ]]; then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user