refractor plus additional click and long string functions
This commit is contained in:
@ -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")
|
||||
|
Reference in New Issue
Block a user