Skip to content

Commit

Permalink
Merge pull request #190 from UtkarshVerma/dwmblocks
Browse files Browse the repository at this point in the history
Use 'pgrep -o' instead of 'pidof -s' to get the PID of status bar
  • Loading branch information
bakkeby committed Oct 15, 2021
2 parents e68f434 + e39062e commit ce270a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patch/bar_dwmblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ce270a3

Please sign in to comment.