cleanup
This commit is contained in:
parent
d92bd73428
commit
39320cf1ea
1 changed files with 8 additions and 14 deletions
|
@ -1,20 +1,14 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
transmission-remote -l | grep % |
|
transmission-remote -l | grep % |
|
||||||
sed " # This first sed command is to ensure a desirable order with sort
|
sed " # The letters are for sorting and will not appear.
|
||||||
s/.*Stopped.*/A/g;
|
s/.*Stopped.*/A 🛑/;
|
||||||
s/.*Seeding.*/Z/g;
|
s/.*Seeding.*/Z 🌱/;
|
||||||
s/.*100%.*/N/g;
|
s/.*100%.*/N ✅/;
|
||||||
s/.*Idle.*/B/g;
|
s/.*Idle.*/B 🕰️/;
|
||||||
s/.*Uploading.*/L/g;
|
s/.*Uploading.*/L ⬆️/;
|
||||||
s/.*%.*/M/g" |
|
s/.*%.*/M ⬇️/" |
|
||||||
sort -h | uniq -c | sed " # Now we replace the standin letters with icons.
|
sort -h | uniq -c | awk '{print $3 $1}' | paste -sd ' '
|
||||||
s/A/🛑/g;
|
|
||||||
s/B/🕰/g;
|
|
||||||
s/L/🔼/g;
|
|
||||||
s/M/🔽/g;
|
|
||||||
s/N/✅/g;
|
|
||||||
s/Z/🌱/g" | awk '{print $2 $1}' | paste -sd ' '
|
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) setsid -f "$TERMINAL" -e tremc ;;
|
1) setsid -f "$TERMINAL" -e tremc ;;
|
||||||
|
|
Loading…
Reference in a new issue