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:
@@ -6,7 +6,7 @@ package power
|
||||
// "AC Power" or "Battery Power"
|
||||
func powerSource() string {
|
||||
switch batteryState {
|
||||
case "charging":
|
||||
case "charging", "fully-charged":
|
||||
return "AC Power"
|
||||
case "discharging":
|
||||
return "Battery Power"
|
||||
|
||||
Reference in New Issue
Block a user