aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/Battery.sh
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-06-09 09:00:11 +0900
committerGitHub <noreply@github.com>2025-06-09 09:00:11 +0900
commitdd54b702a10af12a1ffe739adc8a80a50da8fa0d (patch)
tree445eb3681353ba04d3ee693e4fdda32ed6e07a4d /config/hypr/scripts/Battery.sh
parent3e2f835d233e23104eaa541ebbf32781ffc95b40 (diff)
parenta98349be873576d005af18cb16e0e0f56a71d27e (diff)
Merge branch 'development' into translations
Diffstat (limited to 'config/hypr/scripts/Battery.sh')
-rw-r--r--config/hypr/scripts/Battery.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/config/hypr/scripts/Battery.sh b/config/hypr/scripts/Battery.sh
new file mode 100644
index 00000000..d7830058
--- /dev/null
+++ b/config/hypr/scripts/Battery.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+for i in {0..3}; do
+ if [ -f /sys/class/power_supply/BAT$i/capacity ]; then
+ battery_level=$(cat /sys/class/power_supply/BAT$i/status)
+ battery_capacity=$(cat /sys/class/power_supply/BAT$i/capacity)
+ echo "Battery: $battery_capacity% ($battery_level)"
+ fi
+done
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage