We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
This plugin shows the battery level of a connected Android phone.
Requires ruby and adb. Check with adb devices that your phone is connected properly.
adb devices
#!/usr/bin/env ruby output = `adb shell dumpsys battery | grep level` if output.empty? print "--\n" exit 0 end matches = output.match(/.*: (\d+)\s*/) charge = matches[1] full_notice = charge.to_i > 85 ? " 🔋" : "" print "📱 #{charge}%#{full_notice}\n"