mirror of
https://github.com/ksyasuda/dotfiles.git
synced 2025-12-05 02:53:38 -08:00
add scripts
This commit is contained in:
11
projects/scripts/waybar/scroll-mpd.sh
Executable file
11
projects/scripts/waybar/scroll-mpd.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
zscroll -p ' | ' --delay 0.2 \
|
||||
--length 30 \
|
||||
--match-command "$HOME/.config/waybar/scripts/escape-pango.sh 'mpc status'" \
|
||||
--match-text "playing" "--before-text ' '" \
|
||||
--match-text "paused" "--before-text ' ' --scroll 0" \
|
||||
--match-text "^volume:" "--before-text '' --scroll 0 --after-text ''" \
|
||||
--update-interval 1 \
|
||||
--update-check true "$HOME/.config/waybar/scripts/escape-pango.sh 'mpc current'" &
|
||||
wait
|
||||
Reference in New Issue
Block a user