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