From 2e38a18413dd526112013757e1ff58185187100e Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:08 +0200 Subject: [PATCH] feat(dwm): fix restart opt --- files/dwm/dwm-start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/dwm/dwm-start.sh b/files/dwm/dwm-start.sh index ae7f36b..8bf86b8 100755 --- a/files/dwm/dwm-start.sh +++ b/files/dwm/dwm-start.sh @@ -6,7 +6,7 @@ xsetroot -solid black #while loop to update statusbar with some goodies while true; do #memfreak to get it in MB - memfreak2=$(grep MemFree /proc/meminfo | awk '{ print $2 }') + memfreak2=$(grep MemUsed /proc/meminfo | awk '{ print $2 }') memfreak=$(($memfreak2 / 1024)) #time CLK=$(date +'%a %b %d %R:%S %Z') @@ -31,6 +31,6 @@ feh -z -Z --bg-scale $HOME/Pictures/background.* touch /tmp/restart-dwm while [ -f /tmp/restart-dwm ]; do - exec dwm >/dev/null rm -rf /tmp/restart-dwm + exec dwm >/dev/null done