feat(dwm): fix restart opt

This commit is contained in:
Didier Slof 2023-02-20 16:48:44 +01:00
parent 529e149d22
commit 46c84486a3
Signed by: didier
GPG key ID: 01E71F18AA4398E5

View file

@ -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