waybar: add backup disk module

This commit is contained in:
thomasabishop 2024-03-11 14:29:59 +00:00
parent f140e4aa2c
commit 932046387c
2 changed files with 13 additions and 2 deletions

View file

@ -15,6 +15,7 @@
"cpu",
"memory",
"disk",
"custom/diskBackup",
"temperature",
"backlight",
"battery",
@ -233,5 +234,13 @@
"on-click": "sleep 0.1 && swaync-client -t -sw",
"on-click-right": "swaync-client -d -sw",
"escape": true
}
},
"custom/diskBackup": {
"format": "bak {}",
"exec": "df -h /run/media/thomas/archbish_backups | awk 'NR==2{print $5}'",
"interval": 60,
}
}

View file

@ -74,6 +74,7 @@ button {
#cpu,
#memory,
#disk,
#custom-diskBackup,
#temperature,
#backlight,
#network,
@ -184,7 +185,8 @@ button {
/* color: #282828; */
}
#disk {
#disk,
#custom-diskBackup {
color: #d79921;
/* color: #282828; */
}