New backup 2025-01-22 09:59:02
This commit is contained in:
parent
3c088dff81
commit
3db174074d
2 changed files with 11 additions and 0 deletions
10
de/home/.local/bin/diskspace-check
Executable file
10
de/home/.local/bin/diskspace-check
Executable 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
|
|
@ -39,3 +39,4 @@
|
||||||
.config/qt5ct/qt5ct.conf
|
.config/qt5ct/qt5ct.conf
|
||||||
.config/nwg-look/config
|
.config/nwg-look/config
|
||||||
.local/bin/gocryptfs-wofi
|
.local/bin/gocryptfs-wofi
|
||||||
|
.local/bin/diskspace-check
|
||||||
|
|
Loading…
Add table
Reference in a new issue