From dff1560f6f677ce932a9437592c591af6b688c11 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 10 Nov 2025 16:56:50 -0700 Subject: [PATCH] Properly call the storage commands, using more functions! --- files/dwm/dwm.sh | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/files/dwm/dwm.sh b/files/dwm/dwm.sh index a4be275..75fad2b 100644 --- a/files/dwm/dwm.sh +++ b/files/dwm/dwm.sh @@ -39,20 +39,24 @@ source "`which volume.function`" source "`which battery.function`" source "`which storage.function`" if [[ "`storage-root`" == "`storage-home`" ]]; then - storage_cmd=echo 'Storage: `storage-root-dwm`)"' + function dwm-storage { + echo "`storage-root-dwm`)" + } 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 while true; do readout="$readout Battery: `battery-display`" - readout="$readout | `storage_cmd`" - readout="$readout | `volume-display`" + readout="$readout | Storage: `dwm-storage`" + readout="$readout | Volume: `volume-display`" readout="$readout | `whoami`@`hostname`" readout="$readout `date +"%Y-%m-%d %H:%M:%S"`" xsetroot -name "$readout" readout="" sleep 0.75 -done & +done ## Start ##