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

@ -4,8 +4,7 @@
[[ "$BLOCK_BUTTON" == 1 ]] && LONG=true
[[ "$BLOCK_BUTTON" == 2 ]] && amixer set $DEV toggle &> /dev/null
[[ "$BLOCK_BUTTON" == 3 ]] && amixer set $DEV toggle &> /dev/null
amixer get $DEV | gawk -v LONG="$LONG" '
match($0, /\[([0-9]+)\%\] \[(on|off)\]/, matches) {
@ -39,7 +38,7 @@ amixer get $DEV | gawk -v LONG="$LONG" '
printf("▇\n▇\n")
} else {
printf("█\n█\n")
}
}
}
if (load < 75) {
print("#04B431\n")