Merge pull request #1638 from hwangcc23/fix-1489

Add a timeout: delay_exit_on_zero_displays
This commit is contained in:
Michael Stapelberg
2015-05-05 00:43:43 -07:00
9 changed files with 124 additions and 9 deletions

View File

@ -1010,6 +1010,31 @@ force_display_urgency_hint <timeout> ms
force_display_urgency_hint 500 ms
---------------------------------
=== Delaying exiting on zero displays
Outputs may disappear momentarily and come back later. For example,
using a docking station that does not announce the undock (e.g. ACPI Undock
event triggered through manually pushing a button before actually ejecting
the notebook). During the removal of the notebook from the docking station,
all outputs disappear momentarily.
To prevent i3 from exiting when no output is available momentarily, you can
tell i3 to delay a certain time first and check available outputs again using
the +delay_exit_on_zero_displays+ directive. Setting the value to 0 disables
this feature.
The default is 500ms.
*Syntax*:
----------------------------------------
delay_exit_on_zero_displays <timeout> ms
----------------------------------------
*Example*:
----------------------------------
delay_exit_on_zero_displays 500 ms
----------------------------------
=== Focus on window activation
[[focus_on_window_activation]]