summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorStein Gunnar Bakkeby <[email protected]>2021-10-15 18:34:41 +0200
committerGitHub <[email protected]>2021-10-15 18:34:41 +0200
commitce270a320e1a5ca1eeda858d475b9d85784f3f42 (patch)
tree7041dd957c59f5ecca58acea3c1c122787a31f58 /patch
parente68f434944dee17aa1654c2a2de59d67565cba64 (diff)
parente39062e543a80d08fb9b8777c8f57c8b9849f16d (diff)
downloaddwm-flexipatch-ce270a320e1a5ca1eeda858d475b9d85784f3f42.tar.gz
dwm-flexipatch-ce270a320e1a5ca1eeda858d475b9d85784f3f42.zip
Merge pull request #190 from UtkarshVerma/dwmblocks
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);