Updated polybar with my own music script

This commit is contained in:
Michał Gdula 2022-08-25 13:36:36 +01:00
parent ea4e3a6be9
commit d8be95b8d2
8 changed files with 31 additions and 32 deletions

View file

@ -40,22 +40,17 @@ exec = ~/.config/polybar/scripts/server_status.sh
;;_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
;; SPOTIFY
;; MUSIC
;;_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
[module/spotify]
[module/music]
type = custom/script
interval = 1
format = <label>
format-background = ${colors.modback}
format-foreground = ${colors.foreground}
exec = python ~/.config/polybar/scripts -f "{song} | {artist}" -t 69
click-left = playerctl --player=spotify play-pause
scroll-up = playerctl --player=spotify next
scroll-down = playerctl --player=spotify previous
exec = bash ~/.config/polybar/scripts/music.sh
click-left = playerctl play-pause -i firefox
scroll-up = playerctl next -i firefox
scroll-down = playerctl previous -i firefox
;;_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
;; DND