migration to openBSD
[dotfiles_afify.git] / .scripts / notify_disks.sh
blobaf509ec3ac0c3246f9576a2702cd12a8fe4d49c6
1 #!/usr/bin/env bash
3 mounted_disks=$(lsblk --noheadings --raw -o NAME,SIZE,MOUNTPOINT | awk '$1~/[[:digit:]]/ && $3~/\/mnt/' | awk '{print $3}')
5 df_command=$(df -h --output=target,size,pcent,avail / $mounted_disks)
6 notify-send "Disks Usage" "$df_command"