#!/bin/bash # List physical disk usage via dysk (a df-like tool). # -a: show all mounts; -f 'disk=ssd | disk=hdd' filters to real physical disks only, # excluding tmpfs, loop devices, etc. rawdiskstr=$(dysk -a -f 'disk=ssd | disk=hdd') # dysk always appends a blank summary/footer line — `sed '$d'` deletes the last line # so the output is clean for Eww's label widget. echo "$rawdiskstr" | sed '$d'