Added rust modes to emacs, changed theme to one-theme, changed scripts

This commit is contained in:
TuDatTr
2021-03-02 12:23:16 +01:00
parent a56233db18
commit 4732690351
16 changed files with 105 additions and 61 deletions

View File

@@ -25,13 +25,13 @@ function kb_routine {
function battery_routine {
capacity=$(< /sys/class/power_supply/BAT0/capacity)
if [[ $capacity -lt lower_battery_threshold ]]; then
acpi | grep -q 'Discharging' && dunstify "$capacity";
acpi | grep -q '0: Discharging' && dunstify "Battery at $capacity%";
fi
}
while :
do
kb_routine
# kb_routine
battery_routine
sleep 1;
done