mirror of
https://github.com/LukeSmithxyz/voidrice.git
synced 2026-03-20 01:37:45 +01:00
making it dwm compliant
A simple display to print the current song playing (or paused) in simple style in dwm without any style. I guess this is the only way i could think of right now to make it usable in dwm.
This commit is contained in:
parent
1669b3c2b9
commit
dc74f2ae7c
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
filter() {
|
||||
sed "/^volume:/d" | tac | sed -e "s/\\&/&/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g"
|
||||
[ "$LARBSWM" = "dwm" ] && sed "/^volume:/d" | tac | sed -e "s/\\&/&/g;s/\\[paused\\].*/\\[paused\\] /g;s/\\[playing\\].*//" | tr -d '\n' | sed -e "s/\..*$//g" \
|
||||
|| sed "/^volume:/d" | tac | sed -e "s/\\&/&/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g"
|
||||
}
|
||||
|
||||
case $BLOCK_BUTTON in
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user