New backup 2025-01-22 09:59:02

This commit is contained in:
Penelope Gwen 2025-01-22 09:59:02 -08:00
parent 3c088dff81
commit 3db174074d
2 changed files with 11 additions and 0 deletions

View file

@ -0,0 +1,10 @@
#!/bin/bash
root_use_pct=`df -h | grep '\s/$' | awk '{print $5}' | tr -d '%'`
home_use_pct=`df -h | grep '\s/home$' | awk '{print $5}' | tr -d '%'`
if [[ "${root_use_pct}" -gt 80 ]];then
notify-send "/ is nearly full!" "${root_use_pct}% disk space usage on /"
fi
if [[ "${home_use_pct}" -gt 80 ]];then
notify-send "/home is nearly full!" "${home_use_pct}% disk space usage on /home"
fi

View file

@ -39,3 +39,4 @@
.config/qt5ct/qt5ct.conf
.config/nwg-look/config
.local/bin/gocryptfs-wofi
.local/bin/diskspace-check