+bin/psu
authorJan Kratochvil <lace@host1.jankratochvil.net>
Tue, 22 Aug 2023 13:00:00 +0000 (15:00 +0200)
committerJan Kratochvil <lace@host1.jankratochvil.net>
Tue, 22 Aug 2023 13:00:00 +0000 (15:00 +0200)
bin/psu [new file with mode: 0755]

diff --git a/bin/psu b/bin/psu
new file mode 100755 (executable)
index 0000000..f5dc004
--- /dev/null
+++ b/bin/psu
@@ -0,0 +1,2 @@
+#! /bin/bash
+acpi|&grep -Eq 'Battery 0: Not charging|Battery 0: Charging|No support for device type: power_supply'