summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorUtkarsh Verma <[email protected]>2021-10-15 10:11:50 +0530
committerUtkarsh Verma <[email protected]>2021-10-15 10:11:57 +0530
commite39062e543a80d08fb9b8777c8f57c8b9849f16d (patch)
tree7041dd957c59f5ecca58acea3c1c122787a31f58 /patch
parente68f434944dee17aa1654c2a2de59d67565cba64 (diff)
downloaddwm-flexipatch-e39062e543a80d08fb9b8777c8f57c8b9849f16d.tar.gz
dwm-flexipatch-e39062e543a80d08fb9b8777c8f57c8b9849f16d.zip
Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar
Diffstat (limited to 'patch')
-rw-r--r--patch/bar_dwmblocks.c2
1 files changed, 1 insertions, 1 deletions
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);