Our great sponsors
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
It is perfect and glorious, but for one small problem. I'd very much like for both programs to also CLOSE at the same time, or at least sequentially. Is there a way to have one programs' termination trigger another? Specifically, if I have cmus and glava open, I'd like to be able to close cmus (say, by simply pressing 'q' and quitting cmus or by closing the terminal, or killing the program, etc.) and have glava immediately close/terminate as well. As it stands, I have a separate key binding to pkill glava after I've closed cmus, which works fine, I suppose, but is certainly a little clunkier than I'd like. Maybe there's a way for glava to only get triggered if cmus is running, a sort of whitelist maybe? A simple shell that closes both programs that I can bind? Or another thought perhaps? I'm open to any suggestions & any help is much appreciated.
It is perfect and glorious, but for one small problem. I'd very much like for both programs to also CLOSE at the same time, or at least sequentially. Is there a way to have one programs' termination trigger another? Specifically, if I have cmus and glava open, I'd like to be able to close cmus (say, by simply pressing 'q' and quitting cmus or by closing the terminal, or killing the program, etc.) and have glava immediately close/terminate as well. As it stands, I have a separate key binding to pkill glava after I've closed cmus, which works fine, I suppose, but is certainly a little clunkier than I'd like. Maybe there's a way for glava to only get triggered if cmus is running, a sort of whitelist maybe? A simple shell that closes both programs that I can bind? Or another thought perhaps? I'm open to any suggestions & any help is much appreciated.