aboutsummaryrefslogtreecommitdiff
path: root/hypr/hyprlock/status.sh
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
commit91a5f9790cfd4a98ee940633694fb512ecf24942 (patch)
treeb20bdd22e304234b6893e20d0ca5fbfd042f2184 /hypr/hyprlock/status.sh
parentced774e19c36fb3b0b33a3846e7c9cf874b0c206 (diff)
i3 > hyprland & x11 > wayland
Diffstat (limited to 'hypr/hyprlock/status.sh')
-rwxr-xr-xhypr/hyprlock/status.sh29
1 files changed, 0 insertions, 29 deletions
diff --git a/hypr/hyprlock/status.sh b/hypr/hyprlock/status.sh
deleted file mode 100755
index 0d4ec2d..0000000
--- a/hypr/hyprlock/status.sh
+++ /dev/null
@@ -1,29 +0,0 @@
-#!/usr/bin/env bash
-
-############ Variables ############
-enable_battery=false
-battery_charging=false
-
-####### Check availability ########
-for battery in /sys/class/power_supply/*BAT*; do
- if [[ -f "$battery/uevent" ]]; then
- enable_battery=true
- if [[ $(cat /sys/class/power_supply/*/status | head -1) == "Charging" ]]; then
- battery_charging=true
- fi
- break
- fi
-done
-
-############# Output #############
-if [[ $enable_battery == true ]]; then
- if [[ $battery_charging == true ]]; then
- echo -n "(+) "
- fi
- echo -n "$(cat /sys/class/power_supply/*/capacity | head -1)"%
- if [[ $battery_charging == false ]]; then
- echo -n " remaining"
- fi
-fi
-
-echo ''