cdown / clipmenu

Clipboard management using dmenu
MIT License
1.11k stars 90 forks source link

clipctl: add start and stop clipmenud daemon options #173

Closed mehw closed 2 years ago

mehw commented 2 years ago

Hello,

This is to propose to add start/stop clipmenud daemon functionality to clipctl.

Let me know what you think.

Thanks.

cdown commented 2 years ago

Hmm, what's the use case? Ideally clipmenud should be managed by a service manager anyway, so unless there's some compelling reason I'd rather leave that to do it.

mehw commented 2 years ago

This is to have manual control. Not everyone uses a service manager like systemd...

For instance, this is an universal way to start/stop the service. The daemon clipmenud is efficient, starting and stopping it should be practical too, without any overhead, and clipctl already presents itself as a way to control the daemon.

cdown commented 2 years ago

If that's the only reason then I don't think it's particularly compelling, one might as well just run pkill clipmenud or start clipmenud. The only reason USR1 and USR2 are mapped to disable/enable is because the signal used is an implementation detail, but SIGTERM/SIGINT aren't.

cdown commented 2 years ago

Closing this out without prejudice based on the above comment.

mehw commented 2 years ago

If that's the only reason then I don't think it's particularly compelling, one might as well just run pkill clipmenud or start clipmenud. The only reason USR1 and USR2 are mapped to disable/enable is because the signal used is an implementation detail, but SIGTERM/SIGINT aren't.

I agree. Thanks for the explanation.