From f22f1723c01b56da14ae1de3491a78af1bc4c464 Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 11 Dec 2024 20:46:32 +0100 Subject: Dot files with `chezmoi` --- .config/i3blocks/i3_battery.sh | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 .config/i3blocks/i3_battery.sh (limited to '.config/i3blocks/i3_battery.sh') diff --git a/.config/i3blocks/i3_battery.sh b/.config/i3blocks/i3_battery.sh deleted file mode 100755 index 97ea493..0000000 --- a/.config/i3blocks/i3_battery.sh +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash - -BAT=$(acpi -b | grep -E -o '[0-9][0-9]?%') -CHECK_CHARGING=$(acpi -b | grep -E -o 'Charging') - -# Full and short texts -echo "Battery: $BAT" -echo "BAT: $BAT" - -if [ "$CHECK_CHARGING" != "" ]; then - echo "#1abc9c" - exit 0 -fi -# Set urgent flag below 5% or use orange below 20% -[ ${BAT%?} -le 5 ] && exit 33 -[ ${BAT%?} -le 35 ] && echo "#d35400" - -exit 0 -- cgit v1.2.3-18-g5258