Skip to content

Conversation

senorprogrammer
Copy link
Collaborator

If the MacOS computer has battery-driven devices that can be found via ioreg, this attempts to read and display the battery charge level of those devices.

Tested with an Apple Magic Keyboard and Apple Magic Trackpad.

Closes #1108.

Signed-off-by: Chris Cummer chriscummer@me.com

@github-actions
Copy link
Contributor

⚠ goimports Failed

utils/text.go
 			break
 		}
 
-		chunk := input[i:e+1]
+		chunk := input[i : e+1]
 		input = input[i+e+1:]
 
 		out = append(out, chunk)

@senorprogrammer senorprogrammer force-pushed the WTF-1108-device-battery-percentages branch 3 times, most recently from 33d4adf to 60a51e6 Compare October 10, 2021 23:27
Signed-off-by: Chris Cummer <chriscummer@me.com>
@senorprogrammer senorprogrammer force-pushed the WTF-1108-device-battery-percentages branch from 60a51e6 to ff2d809 Compare October 10, 2021 23:28
@wtfutil wtfutil deleted a comment from github-actions bot Oct 10, 2021
@wtfutil wtfutil deleted a comment from github-actions bot Oct 10, 2021
@wtfutil wtfutil deleted a comment from github-actions bot Oct 10, 2021
@wtfutil wtfutil deleted a comment from github-actions bot Oct 10, 2021
@wtfutil wtfutil deleted a comment from github-actions bot Oct 10, 2021
@wtfutil wtfutil deleted a comment from github-actions bot Oct 10, 2021
Signed-off-by: Chris Cummer <chriscummer@me.com>
Signed-off-by: Chris Cummer <chriscummer@me.com>
Signed-off-by: Chris Cummer <chriscummer@me.com>
@senorprogrammer senorprogrammer merged commit 88b13a7 into master Oct 11, 2021
@Seanstoppable Seanstoppable deleted the WTF-1108-device-battery-percentages branch February 24, 2023 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

New module: display the battery percentage of attached devices
1 participant