From ba1f63c6c5137dc9a7c8550ff2f1f052377a0091 Mon Sep 17 00:00:00 2001 From: spl3g Date: Tue, 15 Apr 2025 22:44:04 +0300 Subject: feat(hyprland): cleanup scripts --- .../attachments/hypr-scripts/battery-level.sh | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100755 home-manager/homeModules/attachments/hypr-scripts/battery-level.sh (limited to 'home-manager/homeModules/attachments/hypr-scripts/battery-level.sh') diff --git a/home-manager/homeModules/attachments/hypr-scripts/battery-level.sh b/home-manager/homeModules/attachments/hypr-scripts/battery-level.sh deleted file mode 100755 index cc2d5cd..0000000 --- a/home-manager/homeModules/attachments/hypr-scripts/battery-level.sh +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh -while true; do - # Check the battery level and charging status - battery_info=$(acpi -b) - - # Extract the battery level from the output of `acpi` - battery_level=$(echo $battery_info | grep -o "[0-9]*%" | sed "s/%//") - - # Check if the laptop is charging - if [[ $battery_info == *"Charging"* ]]; then - # If the laptop is charging, do nothing - : - else - # If the battery level is less than 15%, send a notification - if [ "$battery_level" -lt 15 ]; then - notify-send "Battery Low" "Battery level is at $battery_level%. Charge your laptop." - fi - fi - - # Sleep for 5 minutes before checking the battery level again - sleep 300 -done -- cgit v1.2.3