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