Refreshing dwm status bar using signals. (#332)

Refreshing the status bar is now done using signals.
This commit is contained in:
msinkec authored and Luke Smith committed 2019-06-12 15:08:38 -04:00
1 parent b5925045a3
commit 2e33d77b15
2 files changed
+18 -8

No files matched your search

+2 -3
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