Skip to content

d3b0o/spotify-polybar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Polybar

El módulo de Spotify para Polybar es una extensión altamente personalizable que permite a los usuarios tener un control completo sobre su experiencia musical en Spotify directamente desde su barra de tareas. Diseñado para integrarse sin problemas con Polybar, un gestor de barras de tareas para entornos de escritorio, este módulo brinda una forma eficiente y elegante de gestionar la reproducción de música sin necesidad de cambiar de ventana o aplicación.

Song.sh

alt text

Song.sh + Previous.sh + Play.sh + Next.sh

alt text alt text

Animated.sh

alt text

Modulos Para Controlar spotify desde la polybar (Cada modulo es independiente)

git clone https://github.com/d3b0o/spotify-polybar

cd spotify-polybar

mkdir ~/.config/bin

chmod +x song.sh play.sh next.sh previous.sh animated.sh

mv play.sh next.sh previous.sh song.sh animated.sh ~/.config/bin/

touch ~/.config/bin/progress.txt

echo "1" > ~/.config/bin/progress.txt


Module Play/Pause

[module/play]
type = custom/script
exec = ~/.config/bin/play.sh
interval = 1
;format-prefix = "  "
format = <label>
click-left = dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.PlayPause

Module Previous

[module/previous]
type = custom/script
exec = ~/.config/bin/previous.sh
interval = 1
;format-prefix = "  "
format = <label>
click-left = dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Previous

Module Next

[module/next]
type = custom/script
exec = ~/.config/bin/next.sh
interval = 1
;format-prefix = "  "
format = <label>
click-left = dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.Next

Module Song

[module/song]
type = custom/script
exec = ~/.config/bin/song.sh
interval = 1
format-prefix = "  "
format = <label>

Module Animated - Song

[module/animated-song]
type = custom/script
exec = ~/.config/bin/animated.sh
interval = 1
format = <label>

Pon en interval la velocidad que quieres que tenga el texto

Pon en la variable lenght del archivo animated.sh el limite de caracteres

Releases

No releases published

Packages

No packages published

Languages