nwg-piotr / nwg-drawer

Application drawer for wlroots-based Wayland compositors
MIT License
233 stars 25 forks source link

Add -open and -close options #121

Closed bincat233 closed 2 months ago

bincat233 commented 2 months ago

Hi, I just added the -open and -close options to make sure that sometimes open and close need to be specified explicitly.

bincat233 commented 2 months ago

I also add two signals to specify close and open:

SIGUSR2 for open, and SIGRTMIN+3 for close, which is user defined real-time signals.

nwg-piotr commented 2 months ago

Could you also describe new flags and signals in README.md?

bincat233 commented 2 months ago

Done!

bincat233 commented 2 months ago

Sorry for the direct copy of --help, probably because I used kitty when I run it...

main.go:173

var term = flag.String("term", defaultTermIfBlank(os.Getenv("TERM"), "foot"), "Terminal emulator")