Refreshing dwm status bar using signals. (#332)

Refreshing the status bar is now done using signals.
This commit is contained in:
msinkec
2019-06-12 21:08:38 +02:00
committed by Luke Smith
parent b5925045a3
commit 2e33d77b15
2 changed files with 18 additions and 8 deletions

View File

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