Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/noocsharp/dwmblocks into …
Browse files Browse the repository at this point in the history
…noocsharp-master
  • Loading branch information
LukeSmithxyz committed Feb 19, 2021
2 parents 7e675aa + c9e45f9 commit 2569bdb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ but is faster. Just add 34 to your typical signal number.
My volume module *never* updates on its own, instead I have this command run
along side my volume shortcuts in dwm to only update it when relevant.

Note that if you signal an unexpected signal to dwmblocks, it will probably
crash. So if you disable a module, remember to also disable any cronjobs or
other scripts that might signal to that module.

Note also that all modules must have different signal numbers.
Note that all modules must have different signal numbers.

# Clickable modules

Expand Down
4 changes: 4 additions & 0 deletions dwmblocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ void getsigcmds(int signal)
void setupsignals()
{
struct sigaction sa;

for(int i = SIGRTMIN; i <= SIGRTMAX; i++)
signal(i, SIG_IGN);

for(int i = 0; i < LENGTH(blocks); i++)
{
if (blocks[i].signal > 0)
Expand Down

0 comments on commit 2569bdb

Please sign in to comment.