Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

polybar-mpris module #1

Open
raven2cz opened this issue May 30, 2021 · 0 comments
Open

polybar-mpris module #1

raven2cz opened this issue May 30, 2021 · 0 comments

Comments

@raven2cz
Copy link

Hi,
very nice modification of previous spotify module to mpris module. I had very similar modifications. The usage of parameter -U in zscroll, nice ;-)
I have just small improvements for your module. I cannot write this issue to the mpris fork, because there is forbidden to write issues in actual case.
Modif 1)
rename scripts from get_status.sh and scroll_status.sh to get_mpris_status.sh and scroll_mpris_status.sh, because the scripts are copied to the scripts folder where can be several scroll and status scripts, not just mpris.

Modif 2)
I found cool way for better control of your module. You can include it to your configuration, and decrease space and controls, or improve look and feel of it.

[module/mpris-play-pause]
type = custom/ipc
hook-0 = echo "%{F#0f0}<STOP_ICON_OR_MPRIS_ACTUAL_ICON>%{F-}"
hook-1 = echo "%{F${foreground}}<PLAY_ICON_OR_MPRIS_ACTUAL_ICON>%{F-}"
initial = 1
click-left = playerctl play-pause
scroll-up = playerctl previous
scroll-down = playerctl next

[module/mpris]
type = custom/script
tail = true
format = <label>
exec = ~/.config/polybar/forest/scripts/scroll_mpris_status.sh
click-left = playerctl play-pause
scroll-up = playerctl previous
scroll-down = playerctl next

modules-center = mpris-play-pause mpris
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant