summaryrefslogtreecommitdiffstats
path: root/.local/bin/statusbar
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-12-02 10:53:50 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-12-02 10:53:50 -0500
commitbfd7ef110c3a205dc13ddb6c63d4c0d19f13ceaa (patch)
tree3a6d9cc0f26156f4f8af713862b155757b4b46fa /.local/bin/statusbar
parent4b508301489da44757bee5db64e2cd0b9f29591e (diff)
parent7c96bd081ac25faea8144aaa8c770aaf31bd558a (diff)
downloadeibhear-bfd7ef110c3a205dc13ddb6c63d4c0d19f13ceaa.tar.gz
eibhear-bfd7ef110c3a205dc13ddb6c63d4c0d19f13ceaa.tar.zst
eibhear-bfd7ef110c3a205dc13ddb6c63d4c0d19f13ceaa.zip
Merge branch 'master' of github.com:LukeSmithxyz/voidrice
Diffstat (limited to '.local/bin/statusbar')
-rwxr-xr-x.local/bin/statusbar/music2
-rwxr-xr-x.local/bin/statusbar/torrent2
2 files changed, 2 insertions, 2 deletions
diff --git a/.local/bin/statusbar/music b/.local/bin/statusbar/music
index 8de3e6a..4b7c115 100755
--- a/.local/bin/statusbar/music
+++ b/.local/bin/statusbar/music
@@ -1,6 +1,6 @@
#!/bin/sh
-filter() { mpc | sed "/^volume:/d;s/\\&/&amp;/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ';}
+filter() { mpc | sed "/^volume:/d;s/\\&/&amp;/g;s/\\[paused\\].*/⏸/g;/\\[playing\\].*/d" | paste -sd ' ' -;}
pidof -x mpdup >/dev/null 2>&1 || mpdup >/dev/null 2>&1 &
diff --git a/.local/bin/statusbar/torrent b/.local/bin/statusbar/torrent
index d2e0885..6527005 100755
--- a/.local/bin/statusbar/torrent
+++ b/.local/bin/statusbar/torrent
@@ -8,7 +8,7 @@ transmission-remote -l | grep % |
s/.*Idle.*/B 🕰️/;
s/.*Uploading.*/L ⬆️/;
s/.*%.*/M ⬇️/" |
- sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' '
+ sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' ' -
case $BLOCK_BUTTON in
1) setsid -f "$TERMINAL" -e tremc ;;