diff options
| author | spl3g <spleefer6@yandex.ru> | 2024-04-20 20:19:52 +0300 |
|---|---|---|
| committer | spl3g <spleefer6@yandex.ru> | 2025-05-01 14:56:39 +0300 |
| commit | ec0e9896dcc0c88ef49d2b2bf8126498d3c2acec (patch) | |
| tree | 4c5663196f4db68d371d2dbeba86c0e801d69044 /home-manager/laptop/hyprland/scripts/battery-level.sh | |
| parent | bdb5ed429a6ee54fea4e32181b89e301a5e6b96e (diff) | |
delete old hm configuration
Diffstat (limited to 'home-manager/laptop/hyprland/scripts/battery-level.sh')
| -rwxr-xr-x | home-manager/laptop/hyprland/scripts/battery-level.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/home-manager/laptop/hyprland/scripts/battery-level.sh b/home-manager/laptop/hyprland/scripts/battery-level.sh deleted file mode 100755 index cc2d5cd..0000000 --- a/home-manager/laptop/hyprland/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 |
