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

Implemented 'stop_hidden' configuration option for applications. #34

Open
wants to merge 1 commit into
base: master
from

Conversation

@vminko
Copy link

commented Oct 3, 2019

This option lets user to stop application processes automatically when all the application windows are hidden from the user. A window is considered hidden when it's iconified or shaded or does not belong to the current desktop.

This option in intended for minimization of CPU usage and power consumption. Some modern applications (like Web browsers) tend to consume significant amount of CPU resources even when hidden.

There are three possible values of the option:

  • no - do not stop application when it hides (default value);
  • process - stop just the process the hidden window belongs to;
  • group - stop whole process group the application belongs to; some complex applications (like Web browsers) emerge multiple child processed, so in order to stop such applications it's not enough just to stop one process.

Example:
<application class="Firefox"> <stop_hidden>group</stop_hidden> </application>

Please note that Firefox does not create a new group for its child processes. You need to run it via setsid firefox in order to have a separate group for all Firefox processes.

This option lets user to stop application processes automatically when all
the application windows are hidden from the user. A window is considered hidden
when it's iconified or shaded or does not belong to the current desktop.

This option in intended for minimization of CPU usage and power consumption.
Some modern applications (like Web browsers) tend to consume significant amount
of CPU resources even when hidden.

There are three possible values of the option:
   'no'      - do not stop application when it hides (default value)
   'process' - stop just the process the hidden window belongs to
   'group'   - stop whole process group the application belongs to; some complex
               applications (like web browsers) emerge multiple child processed,
               so in order to stop such applications it's not enough just to
               stop one process.

Example:

  <application class="Firefox">
    <stop_hidden>group</stop_hidden>
  </application>

Please note that Firefox does not create a new group for its child
processes. You need to run it via `setsid firefox` in order to have a separate
group for all Firefox processes.
@roomcays

This comment has been minimized.

Copy link

commented Oct 3, 2019

Although I am not an Openbox developer I must say that this feature/idea is very interesting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.