diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2026-08-06 00:29:36 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2026-08-06 00:29:36 +0530 |
| commit | 91a5f9790cfd4a98ee940633694fb512ecf24942 (patch) | |
| tree | b20bdd22e304234b6893e20d0ca5fbfd042f2184 /quickshell/scripts/battery-info.sh | |
| parent | ced774e19c36fb3b0b33a3846e7c9cf874b0c206 (diff) | |
i3 > hyprland & x11 > wayland
Diffstat (limited to 'quickshell/scripts/battery-info.sh')
| -rwxr-xr-x | quickshell/scripts/battery-info.sh | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/quickshell/scripts/battery-info.sh b/quickshell/scripts/battery-info.sh deleted file mode 100755 index 414d168..0000000 --- a/quickshell/scripts/battery-info.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env bash - -target=$(upower --enumerate | awk '/BAT/ { print; exit }') - -upower -i "$target" | awk -F: ' -/energy:/ && !e { e=$2 } -/voltage:/ && !v { v=$2 } -/capacity:/ && !c { c=$2 } -END { - gsub(/^[ \t]+/, "", e) - gsub(/^[ \t]+/, "", v) - gsub(/^[ \t]+/, "", c) - - print "energy:", e - print "voltage:", v - print "capacity:", c -}' |
