diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-08-10 02:50:57 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-08-10 02:50:57 +0200 |
| commit | c9a38b22e7b5ea507352a170fd4cf3ea73acc2cd (patch) | |
| tree | 2e53a8a0c152018c31abd89f59afd2583e8d9d33 /bin/battery-low-check | |
| parent | b886c364aca56c684d91a2e6e9c823a50c8b692f (diff) | |
| download | dotfiles-c9a38b22e7b5ea507352a170fd4cf3ea73acc2cd.tar.gz dotfiles-c9a38b22e7b5ea507352a170fd4cf3ea73acc2cd.tar.bz2 dotfiles-c9a38b22e7b5ea507352a170fd4cf3ea73acc2cd.zip | |
Added repo clone in project-open, cleaning installation script
Diffstat (limited to 'bin/battery-low-check')
| -rwxr-xr-x | bin/battery-low-check | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/battery-low-check b/bin/battery-low-check new file mode 100755 index 0000000..dbbdc6b --- /dev/null +++ b/bin/battery-low-check @@ -0,0 +1,5 @@ +#!/bin/sh + +capacity=$(cat /sys/class/power_supply/BAT0/capacity) + +[ "$capacity" -lt 10 ] && notify-send -u critical "Battery low $capacity%" |
