summaryrefslogtreecommitdiff
path: root/scripts/desktop/xbox-controller-battery
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/desktop/xbox-controller-battery')
-rwxr-xr-xscripts/desktop/xbox-controller-battery2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/desktop/xbox-controller-battery b/scripts/desktop/xbox-controller-battery
new file mode 100755
index 0000000..84913cc
--- /dev/null
+++ b/scripts/desktop/xbox-controller-battery
@@ -0,0 +1,2 @@
+#! /usr/bin/env sh
+cat /sys/class/power_supply/gip0.0/capacity_level