Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for other signals to support FreeBSD #448

Open
distefam opened this issue Jun 2, 2021 · 1 comment
Open

Add support for other signals to support FreeBSD #448

distefam opened this issue Jun 2, 2021 · 1 comment

Comments

@distefam
Copy link

distefam commented Jun 2, 2021

FreeBSD does not have SIGRTMIN or SIGRTMAX support. Suggestion is to use SIGUSR{1,2}. While this is more limited than the current solution of using SIRRTMIN+n as it does not support 32 signals but only two it would be nice to be able to refresh i3blocks via a signal on FreeBSD. c.f. #23

@jacobsebek
Copy link

FreeBSD does have SIGRTMIN support, it is just not very well documented.

$ fgrep -r SIGRTMIN /usr/include
/usr/include/sys/signal.h:#define       SIGRTMIN        65

Therefore you can use realtime signals like

pkill -$((65 + 10)) i3blocks

To send a signal to the block with signal=10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants