Properly call the storage commands, using more functions!

This commit is contained in:
2025-11-10 16:56:50 -07:00
parent 5c3d5dd41e
commit dff1560f6f

View File

@@ -39,20 +39,24 @@ source "`which volume.function`"
source "`which battery.function`" source "`which battery.function`"
source "`which storage.function`" source "`which storage.function`"
if [[ "`storage-root`" == "`storage-home`" ]]; then if [[ "`storage-root`" == "`storage-home`" ]]; then
storage_cmd=echo 'Storage: `storage-root-dwm`)"' function dwm-storage {
echo "`storage-root-dwm`)"
}
else else
storage_cmd=echo '"Storage(Root:`storage-root-dwm` Home:`storage-home-dwm`)' function dwm-storage {
echo "(Root#`storage-root-dwm`, Home#`storage-home-dwm`)"
}
fi fi
while true; do while true; do
readout="$readout Battery: `battery-display`" readout="$readout Battery: `battery-display`"
readout="$readout | `storage_cmd`" readout="$readout | Storage: `dwm-storage`"
readout="$readout | `volume-display`" readout="$readout | Volume: `volume-display`"
readout="$readout | `whoami`@`hostname`" readout="$readout | `whoami`@`hostname`"
readout="$readout `date +"%Y-%m-%d %H:%M:%S"`" readout="$readout `date +"%Y-%m-%d %H:%M:%S"`"
xsetroot -name "$readout" xsetroot -name "$readout"
readout="" readout=""
sleep 0.75 sleep 0.75
done & done
## Start ## ## Start ##