summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAbhinav Prasai <abhinav.prsai@gmail.com>2025-10-11 21:25:23 +0100
committerAbhinav Prasai <abhinav.prsai@gmail.com>2025-10-11 21:25:23 +0100
commit47111ce5137aeb14419037323269765f7a639d9c (patch)
treea9e54e01974ca895705631bfa4659a5a7693cbaa /docs
parent86d89c3ac2ff1fe9d9cda02dd5f5ee9453f96f15 (diff)
add monocle layout
Diffstat (limited to 'docs')
-rw-r--r--docs/CHANGELOG.md5
-rw-r--r--docs/sxwm-dev.md12
-rw-r--r--docs/sxwm.11
-rw-r--r--docs/sxwm.md1
4 files changed, 18 insertions, 1 deletions
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index 4d35a93..201f9e5 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -3,12 +3,17 @@
All notable changes to this project will be documented in this file.
#### v1.7 (git)
+- **ADD**: Monocle layout
+- **ADD**: Developer documentation
- **ADD**: `_NET_FRAME_EXTENTS` support
- **ADD**: `start_fullscreen` which opens specified windows in fullscreen mode
- **ADD**: Proper EWMH fullscreening
- **ADD**: Switching to previous workspace
- **ADD**: Keeping floating windows on top
- **ADD**: Keyboard driven moving/resizing of windows
+- **CHANGE**: Move externs from `defs.h`->`extern.h`
+- **CHANGE**: Remove unused macros and headers
+- **CHANGE**: Logo
- **CHANGE**: Use `compile_flags.txt` instead of `.clangd`
- **CHANGE**: Remove backup binds
- **CHANGE**: General refactoring of code. Much better now
diff --git a/docs/sxwm-dev.md b/docs/sxwm-dev.md
index c5ae662..cd7e0f5 100644
--- a/docs/sxwm-dev.md
+++ b/docs/sxwm-dev.md
@@ -113,6 +113,7 @@
| [toggle_floating](#toggle_floating) | (void) | void | Toggle focused floating state. |
| [toggle_floating_global](#toggle_floating_global) | (void) | void | Toggle all clients floating on/off. |
| [toggle_fullscreen](#toggle_fullscreen) | (void) | void | Toggle fullscreen on focused. |
+| [toggle_monocle](#toggle_monocle) | (void) | void | Toggle monocle layout. |
| [toggle_scratchpad](#toggle_scratchpad) | (int n) | void | Map/unmap scratchpad n and focus. |
| [unswallow_window](#unswallow_window) | (Client *c) | void | Restore swallower and unlink relation. |
| [update_borders](#update_borders) | (void) | void | Paint borders and publish active window. |
@@ -878,7 +879,8 @@ Call change_workspace(previous_workspace).
```
Recompute struts, then for each monitor: build list of visible, non-
-floating, non-fullscreen clients on that monitor. Place master at left
+floating, non-fullscreen clients on that monitor. If monocle layout enabled, configure
+every window to take all the space then leave. Otherwise, places master at left
with width master_width[m], stack on right with gaps. Compute stack
heights using per-client custom_stack_height or auto-split; enforce
minimums and absorb rounding remainder at bottom. Configure windows,
@@ -913,6 +915,14 @@ current geometry) and raise them; otherwise leave state. Retile and repaint.
Toggle fullscreen on focused via apply_fullscreen.
+#### toggle_monocle
+
+```c
+(void) -> void
+```
+
+Enable/disable the monocle layout. Most of the logic is near the top of [tile](#tile)
+
#### toggle_scratchpad
```c
diff --git a/docs/sxwm.1 b/docs/sxwm.1
index 6604a0e..50cdfb7 100644
--- a/docs/sxwm.1
+++ b/docs/sxwm.1
@@ -138,6 +138,7 @@ stack_increase Increase the height of the focused stack window.
stack_decrease Decrease the height of the focused stack window.
switch_previous_workspace Switch to the previous workspace.
toggle_floating Toggles floating state of current window.
+toggle_monocle Toggles monocle layout.
.TE
.SS Example Bindings
diff --git a/docs/sxwm.md b/docs/sxwm.md
index 9b844d6..6dcdde2 100644
--- a/docs/sxwm.md
+++ b/docs/sxwm.md
@@ -104,6 +104,7 @@ workspace : modifier + ... + key : swap n
| `stack_decrease` | Decrease the height of the focused stack window. |
| `switch_previous_workspace` | Switch to the previous workspace. |
| `toggle_floating` | Toggles floating state of current window. |
+| `toggle_monocle` | Toggles the monocle layout. |
### Example Bindings