mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Improvement: Battery state on Linux
This commit is contained in:
parent
c3111c20fc
commit
fc445cf2e7
@ -6,7 +6,7 @@ package power
|
|||||||
// "AC Power" or "Battery Power"
|
// "AC Power" or "Battery Power"
|
||||||
func powerSource() string {
|
func powerSource() string {
|
||||||
switch batteryState {
|
switch batteryState {
|
||||||
case "charging":
|
case "charging", "fully-charged":
|
||||||
return "AC Power"
|
return "AC Power"
|
||||||
case "discharging":
|
case "discharging":
|
||||||
return "Battery Power"
|
return "Battery Power"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user