diff options
| author | Utkarsh Verma <[email protected]> | 2021-10-15 10:11:50 +0530 |
|---|---|---|
| committer | Utkarsh Verma <[email protected]> | 2021-10-15 10:11:57 +0530 |
| commit | e39062e543a80d08fb9b8777c8f57c8b9849f16d (patch) | |
| tree | 7041dd957c59f5ecca58acea3c1c122787a31f58 | |
| parent | e68f434944dee17aa1654c2a2de59d67565cba64 (diff) | |
| download | dwm-flexipatch-e39062e543a80d08fb9b8777c8f57c8b9849f16d.tar.gz dwm-flexipatch-e39062e543a80d08fb9b8777c8f57c8b9849f16d.zip | |
Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar
| -rw-r--r-- | patch/bar_dwmblocks.c | 2 |
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); |
