Updated refbar

This is a super idea for updating the bar instead of having an insane whileloop there is running ever 0.5s!!!!

But I do believe that this is a cleaner solution, and better than parsing the whole `pstree` when we can simply kill the sleep function this way.
This commit is contained in:
Daniel Guldberg Aaes 2019-06-09 14:05:27 +02:00 committed by GitHub
parent b5925045a3
commit 0035a69a9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,4 +3,4 @@
# Refresh the dwmbar.
# Right now, now this is done is by killing the sleep in the bar script.
kill "$(pstree -lp | grep -- -dwmbar\([0-9] | sed "s/.*sleep(\([0-9]\+\)).*/\1/")"
pkill -P "$(pgrep -ox dwmbar)" sleep