feat(dwm): fix restart opt

This commit is contained in:
Strix 2023-10-14 22:38:08 +02:00
parent c9a3d852f5
commit 2e38a18413
No known key found for this signature in database
GPG key ID: 49B2E37B8915B774

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