darcs patch: Add Stoppable layout for power saving
Changes: - Per Brandon Allbery's suggestion the module now checks WM_CLIENT_MACHINE, and thus no longer tries to stop remote clients. - Per Paul Fertser's suggestion improved documentation, and also implemented a delay to make X11 clipboard limitations less noticeable. 1 patch for repository http://code.haskell.org/XMonadContrib: Fri Aug 29 18:03:14 PDT 2014 Anton Vorontsov <anton@enomsg.org> * Add Stoppable layout for power saving This module implements a special kind of layout modifier, which when applied to a layout, causes xmonad to stop all non-visible processes. In a way, this is a sledge-hammer for applications that drain power. For example, given a web browser on a stoppable workspace, once the workspace is hidden the web browser will be stopped. Note that the stopped application won't be able to communicate with X11 clipboard. For this, the module actually stops applications after a certain delay, giving a chance for a user to complete copy-paste sequence. By default, the delay equals to 15 seconds, it is configurable via 'Stoppable' constructor. The stoppable modifier prepends a mark (by default equals to \"Stoppable\") to the layout description (alternatively, you can choose your own mark and use it with 'Stoppable' constructor). The stoppable layout (identified by a mark) spans to multiple workspaces, letting you to create groups of stoppable workspaces that only stop processes when none of the workspaces are visible, and conversely, unfreezing all processes even if one of the stoppable workspaces are visible. To stop the process we use signals, which works for most cases. For processes that tinker with signal handling (debuggers), another (Linux-centric) approach may be used. See https://www.kernel.org/doc/Documentation/cgroups/freezer-subsystem.txt
participants (1)
-
Anton Vorontsov