refractor plus additional click and long string functions

This commit is contained in:
koksnuss
2018-05-31 00:29:13 +02:00
parent 4b9d064b32
commit 492abcf744
6 changed files with 52 additions and 24 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
[[ "$BLOCK_INSTANCE" =~ "long" ]] && LONG=true
[[ "$BLOCK_INSTANCE" =~ "long" || "$BLOCK_BUTTON" == 1 ]] && LONG=true
[[ "$BLOCK_BUTTON" == 1 ]] && i3-sensible-terminal -e htop
[[ "$BLOCK_BUTTON" == 2 ]] && i3-sensible-terminal -e htop
top -bn1 | gawk -v LONG="$LONG" '
/^\%CPU/ {
@ -30,7 +30,7 @@ top -bn1 | gawk -v LONG="$LONG" '
printf("▇\n▇\n")
} else {
printf("█\n█\n")
}
}
}
if (load < 50) {
print("#04B431\n")