Is it possible to trigger the closure of one program with the closure of another?

This page summarizes the projects mentioned and recommended in the original post on /r/linuxquestions

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • glava

    GLava - OpenGL audio spectrum visualizer

  • 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.

  • cmus

    Small, fast and powerful console music player for Unix-like operating systems.

  • 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.

  • 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.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts