now using correct method?
This commit is contained in:
parent
385d742676
commit
fb2c739465
@ -1,5 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
[[ "$(upower -i $(upower -e | grep 'BAT'))" == "" ]] && exit
|
||||
|
||||
current=$(upower -i $(upower -e | grep 'BAT') | grep -E "percentage" | sed 's/.*://' | sed 's/ *//')
|
||||
state=$(upower -i $(upower -e | grep 'BAT') | grep -E "state" | sed 's/.*://' | sed 's/ *//')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user