From 93cf74b37c40ffa85f7920b3897e70699c949cc7 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 30 Jan 2020 10:08:22 +0100 Subject: Cleanup bin/ --- bin/lowbat | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 bin/lowbat (limited to 'bin/lowbat') diff --git a/bin/lowbat b/bin/lowbat deleted file mode 100755 index 90702a1..0000000 --- a/bin/lowbat +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh - -set -e - -acpi -b | awk -F'[,:%]' '{print $2, $3}' | { - read -r status capacity - - if [[ $status -eq "Discharging" ]]; then - if [[ $capacity -lt 10 ]]; then - echo "battery capacity: $capacity" - notify-send "battery low" "System will hibernate at 5%" - fi - if [[ $capacity -lt 5 ]]; then - echo "hibernating" - notify-send "battery low" "System will hibernate now" - systemctl hibernate - fi - fi -} -- cgit 1.4.1