From 2e33d77b156d071ae408c8d463d43d41ba7aa68b Mon Sep 17 00:00:00 2001 From: msinkec <44239392+msinkec@users.noreply.github.com> Date: Wed, 12 Jun 2019 21:08:38 +0200 Subject: Refreshing dwm status bar using signals. (#332) Refreshing the status bar is now done using signals. --- .local/bin/refbar | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to '.local/bin/refbar') diff --git a/.local/bin/refbar b/.local/bin/refbar index 671c450..78b5018 100755 --- a/.local/bin/refbar +++ b/.local/bin/refbar @@ -1,6 +1,5 @@ #!/bin/sh # 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/")" +# Send SIGTRAP signal to dwmbar script, which will handle it with a trap. +pkill -SIGTRAP dwmbar -- cgit v1.3.1