From e39062e543a80d08fb9b8777c8f57c8b9849f16d Mon Sep 17 00:00:00 2001 From: Utkarsh Verma Date: Fri, 15 Oct 2021 10:11:50 +0530 Subject: [PATCH] Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar --- patch/bar_dwmblocks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patch/bar_dwmblocks.c b/patch/bar_dwmblocks.c index 25268c5..fe7880b 100644 --- a/patch/bar_dwmblocks.c +++ b/patch/bar_dwmblocks.c @@ -18,7 +18,7 @@ getstatusbarpid() return statuspid; } } - if (!(fp = popen("pidof -s "STATUSBAR, "r"))) + if (!(fp = popen("pgrep -o "STATUSBAR, "r"))) return -1; fgets(buf, sizeof(buf), fp); pclose(fp);