From 91a5f9790cfd4a98ee940633694fb512ecf24942 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Thu, 6 Aug 2026 00:29:36 +0530 Subject: i3 > hyprland & x11 > wayland --- quickshell/scripts/battery-info.sh | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100755 quickshell/scripts/battery-info.sh (limited to 'quickshell/scripts/battery-info.sh') 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 -}' -- cgit v1.2.3