summaryrefslogtreecommitdiffstats
path: root/.local/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-04-23 19:43:14 -0400
committerLuke Smith <luke@lukesmith.xyz>2020-04-23 19:43:14 -0400
commit349668f423542119770d2deb5e815442e4b1fa0d (patch)
tree17de5368340afd65fa035d707335da229fcc4304 /.local/bin
parent745f12bd16983f9d1e7592ae1101c2f18f6b6c1b (diff)
parent18113aad1a0f50f8596486f64332eed859a79813 (diff)
downloadeibhear-349668f423542119770d2deb5e815442e4b1fa0d.tar.gz
eibhear-349668f423542119770d2deb5e815442e4b1fa0d.tar.zst
eibhear-349668f423542119770d2deb5e815442e4b1fa0d.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/compiler2
-rwxr-xr-x.local/bin/statusbar/music3
2 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/compiler b/.local/bin/compiler
index fd812b5..0f693d2 100755
--- a/.local/bin/compiler
+++ b/.local/bin/compiler
@@ -26,7 +26,7 @@ case "$file" in
*\.ms) refer -PS -e "$file" | groff -me -ms -kept -T pdf > "$base".pdf ;;
*\.mom) refer -PS -e "$file" | groff -mom -kept -T pdf > "$base".pdf ;;
*\.[0-9]) refer -PS -e "$file" | groff -mandoc -T pdf > "$base".pdf ;;
- *\.[rR]md) Rscript -e "require(rmarkdown); rmarkdown::render('$file', quiet=TRUE)" ;;
+ *\.[rR]md) Rscript -e "rmarkdown::render('$file', quiet=TRUE)" ;;
*\.tex) textype "$file" ;;
*\.md) pandoc "$file" --pdf-engine=xelatex -o "$base".pdf ;;
*config.h) sudo make install ;;
diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music
index 1412ae3..1b18776 100755
--- a/.local/bin/statusbar/music
+++ b/.local/bin/statusbar/music
@@ -1,7 +1,8 @@
#!/bin/sh
filter() {
- sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/<span color=\"gray\" font_style=\"italic\">/g;s/\\[playing\\].*/<span>/g" | tr -d '\n' | sed -e "s/$/<\\/span>\n/g"
+ [ "$(pidof dwmblocks)" ] && sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/g;s/\\[paused\\].*/\\[paused\\] /g;s/\\[playing\\].*//" | tr -d '\n' | sed -e "s/\..*$//g" \
+ || sed "/^volume:/d" | tac | sed -e "s/\\&/&amp;/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