merger of bin

This commit is contained in:
Luke Smith
2019-11-23 16:16:30 -05:00
parent 85d353d796
commit a5e66ac4f4
14 changed files with 160 additions and 96 deletions

8
.local/bin/cron/cronbat Executable file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env sh
# Notify me with notify-send if my battery is below 25%.
# You can set this to run via cron.
[ "$(cat /sys/class/power_supply/BAT0/status)" = "Charging" ] && exit
[ "$(cat /sys/class/power_supply/BAT0/capacity)" -lt 25 ] &&
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1001/bus &&
notify-send -u critical "Battery critically low."