From 0035a69a9c46380052332133a6ddaa526129c53e Mon Sep 17 00:00:00 2001 From: Daniel Guldberg Aaes Date: Sun, 9 Jun 2019 14:05:27 +0200 Subject: [PATCH] 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. --- .local/bin/refbar | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/refbar b/.local/bin/refbar index 671c450e..c4cc0d85 100755 --- a/.local/bin/refbar +++ b/.local/bin/refbar @@ -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