Skip to content

Commit

Permalink
docs(readme): fix docs for window.single.border_size
Browse files Browse the repository at this point in the history
  • Loading branch information
aravinda0 committed Aug 12, 2024
1 parent f584031 commit 2872ae9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ Click on the image to open a web view with the full guide.
|`window.margin` | 0 | Size of the margin space around windows.<br>Can be an int or a list of ints in [top,<br>right, bottom, left] ordering. |
|`window.single.margin` | (unset) | Size of the margin space around a window<br>when it is the single window remaining<br>under a top-level tab.<br>Can be an int or a list of ints in [top,<br>right, bottom, left] ordering.<br>If not specified, will fall back to<br>reading from `window.margin`. |
|`window.border_size` | 1 | Width of the border around windows. Must<br>be a single integer value since that's<br>what qtile allows for window borders. |
|`window.single.border_size` | (unset) | Size of the border around a window when<br>it is the single window remaining under<br>a top-level tab.<br>Can be an int or a list of ints in [top,<br>right, bottom, left] ordering.<br>If not specified, will fall back to<br>reading from `window.border_size`. |
|`window.single.border_size` | (unset) | Size of the border around a window when<br>it is the single window remaining under<br>a top-level tab.<br>Must be a single integer value since<br>that's what qtile allows for window<br>borders.<br>If not specified, will fall back to<br>reading from `window.border_size`. |
|`window.border_color` | Gruvbox.dull_yellow | Color of the border around windows |
|`window.active.border_color` | Gruvbox.vivid_yellow | Color of the border around an active<br>window |
|`window.normalize_on_remove` | True | Whether or not to normalize the<br>remaining windows after a window is<br>removed.<br>If `True`, the remaining sibling windows<br>will all become of equal size.<br>If `False`, the next (right/down) window<br>will take up the free space. |
Expand Down
5 changes: 4 additions & 1 deletion src/qtile_bonsai/layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class InteractionMode(enum.Enum):
"""
Size of the border around a window when it is the single window remaining
under a top-level tab.
Can be an int or a list of ints in [top, right, bottom, left] ordering.
Must be a single integer value since that's what qtile allows for window
borders.
If not specified, will fall back to reading from `window.border_size`.
""",
default_value_label="(unset)",
Expand Down Expand Up @@ -428,6 +429,7 @@ def add_client(self, window: Window):
qtile calls `Layout.add_client()`. We keep this up until all existing windows
are processed, after which we switch from 'restoration' to 'normal' mode.
"""
print("addy waddy")
if self._add_client_mode == Bonsai.AddClientMode.restoration_in_progress:
pane = self._handle_add_client__restoration_in_progress(window)
else:
Expand All @@ -440,6 +442,7 @@ def add_client(self, window: Window):
self.interaction_mode = Bonsai.InteractionMode.normal

def remove(self, window: Window) -> Window | None:
print("removio")
pane = self._windows_to_panes[window]
normalize_on_remove = self._tree.get_config(
"window.normalize_on_remove", level=pane.tab_level
Expand Down

0 comments on commit 2872ae9

Please sign in to comment.