Media Playing Module with Buttons

- Replace clicks and scroll actions with dedicated buttons
  for media playing module
- Add media-playing-change module to display current media
  source and left-click to change
- Add media-playing-prev/next to play previous or next
  track
- Add media-playing-play-pause to display pause button
  when media is playing and play button when media is
  paused
- Update media-playing to use Zscroll to scroll through
  artist and title text when over limit
- Add some extra helper scripts
This commit is contained in:
Sravan Balaji
2022-07-31 17:30:50 -04:00
parent 6e15a7f4ea
commit 60a43475a9
8 changed files with 253 additions and 112 deletions

View File

@ -0,0 +1,11 @@
#!/bin/bash
zscroll \
--length $(xrdb -get polybar.maxlen) \
--delay 0.2 \
--scroll-padding " | " \
--match-command "`dirname $0`/get-media-status.sh" \
--match-text "Playing" "--scroll 1" \
--match-text "Paused" "--scroll 0" \
--update-check true "`dirname $0`/get-media-playing.sh" &
wait