fix split bug on single windows and elide titles
This commit is contained in:
parent
7f71a6556b
commit
c555593ae2
8 changed files with 207 additions and 145 deletions
|
|
@ -930,7 +930,7 @@
|
|||
"required": []
|
||||
},
|
||||
"Config": {
|
||||
"description": "This is the top-level table.\n\n- Example:\n\n ```toml\n keymap = \"\"\"\n xkb_keymap {\n xkb_keycodes { include \"evdev+aliases(qwerty)\" };\n xkb_types { include \"complete\" };\n xkb_compat { include \"complete\" };\n xkb_symbols { include \"pc+us+inet(evdev)\" };\n };\n \"\"\"\n\n on-graphics-initialized = { type = \"exec\", exec = \"mako\" }\n\n [shortcuts]\n alt-h = \"focus-left\"\n alt-j = \"focus-down\"\n alt-k = \"focus-up\"\n alt-l = \"focus-right\"\n\n alt-shift-h = \"move-left\"\n alt-shift-j = \"move-down\"\n alt-shift-k = \"move-up\"\n alt-shift-l = \"move-right\"\n\n alt-d = \"split-horizontal\"\n alt-v = \"split-vertical\"\n\n alt-t = \"toggle-split\"\n alt-m = \"toggle-mono\"\n alt-u = \"toggle-fullscreen\"\n\n alt-f = \"focus-parent\"\n alt-shift-c = \"close\"\n alt-shift-f = \"toggle-floating\"\n Super_L = { type = \"exec\", exec = \"alacritty\" }\n alt-p = { type = \"exec\", exec = \"bemenu-run\" }\n alt-q = \"quit\"\n alt-shift-r = \"reload-config-toml\"\n\n ctrl-alt-F1 = { type = \"switch-to-vt\", num = 1 }\n ctrl-alt-F2 = { type = \"switch-to-vt\", num = 2 }\n # ...\n\n alt-F1 = { type = \"show-workspace\", name = \"1\" }\n alt-F2 = { type = \"show-workspace\", name = \"2\" }\n # ...\n\n alt-shift-F1 = { type = \"move-to-workspace\", name = \"1\" }\n alt-shift-F2 = { type = \"move-to-workspace\", name = \"2\" }\n # ...\n ```\n",
|
||||
"description": "This is the top-level table.\n\n- Example:\n\n ```toml\n keymap = \"\"\"\n xkb_keymap {\n xkb_keycodes { include \"evdev+aliases(qwerty)\" };\n xkb_types { include \"complete\" };\n xkb_compat { include \"complete\" };\n xkb_symbols { include \"pc+us+inet(evdev)\" };\n };\n \"\"\"\n\n on-graphics-initialized = { type = \"exec\", exec = \"mako\" }\n\n [shortcuts]\n alt-h = \"focus-left\"\n alt-j = \"focus-down\"\n alt-k = \"focus-up\"\n alt-l = \"focus-right\"\n\n alt-shift-h = \"move-left\"\n alt-shift-j = \"move-down\"\n alt-shift-k = \"move-up\"\n alt-shift-l = \"move-right\"\n\n alt-d = \"make-group-h\"\n alt-v = \"make-group-v\"\n\n alt-t = \"change-group-opposite\"\n alt-m = \"toggle-tab\"\n alt-u = \"toggle-fullscreen\"\n\n alt-f = \"focus-parent\"\n alt-shift-c = \"close\"\n alt-shift-f = \"toggle-floating\"\n Super_L = { type = \"exec\", exec = \"alacritty\" }\n alt-p = { type = \"exec\", exec = \"bemenu-run\" }\n alt-q = \"quit\"\n alt-shift-r = \"reload-config-toml\"\n\n ctrl-alt-F1 = { type = \"switch-to-vt\", num = 1 }\n ctrl-alt-F2 = { type = \"switch-to-vt\", num = 2 }\n # ...\n\n alt-F1 = { type = \"show-workspace\", name = \"1\" }\n alt-F2 = { type = \"show-workspace\", name = \"2\" }\n # ...\n\n alt-shift-F1 = { type = \"move-to-workspace\", name = \"1\" }\n alt-shift-F2 = { type = \"move-to-workspace\", name = \"2\" }\n # ...\n ```\n",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"keymap": {
|
||||
|
|
@ -1993,7 +1993,7 @@
|
|||
},
|
||||
"SimpleActionName": {
|
||||
"type": "string",
|
||||
"description": "The name of a `simple` Action.\n\nWhen used inside a window rule, the following actions apply to the matched window\ninstead fo the focused window:\n\n- `move-left`\n- `move-down`\n- `move-up`\n- `move-right`\n- `split-horizontal`\n- `split-vertical`\n- `toggle-split`\n- `tile-horizontal`\n- `tile-vertical`\n- `toggle-split`\n- `show-single`\n- `show-all`\n- `toggle-fullscreen`\n- `enter-fullscreen`\n- `exit-fullscreen`\n- `close`\n- `toggle-floating`\n- `float`\n- `tile`\n- `toggle-float-pinned`\n- `pin-float`\n- `unpin-float`\n\n\n- Example:\n\n ```toml\n [shortcuts]\n alt-q = \"quit\"\n ```\n",
|
||||
"description": "The name of a `simple` Action.\n\nWhen used inside a window rule, the following actions apply to the matched window\ninstead fo the focused window:\n\n- `move-left`\n- `move-down`\n- `move-up`\n- `move-right`\n- `toggle-fullscreen`\n- `enter-fullscreen`\n- `exit-fullscreen`\n- `close`\n- `toggle-floating`\n- `float`\n- `tile`\n- `toggle-float-pinned`\n- `pin-float`\n- `unpin-float`\n\n\n- Example:\n\n ```toml\n [shortcuts]\n alt-q = \"quit\"\n ```\n",
|
||||
"enum": [
|
||||
"focus-left",
|
||||
"focus-down",
|
||||
|
|
@ -2004,14 +2004,11 @@
|
|||
"move-up",
|
||||
"move-right",
|
||||
"move-right",
|
||||
"split-horizontal",
|
||||
"split-vertical",
|
||||
"toggle-split",
|
||||
"tile-horizontal",
|
||||
"tile-vertical",
|
||||
"toggle-mono",
|
||||
"show-single",
|
||||
"show-all",
|
||||
"make-group-h",
|
||||
"make-group-v",
|
||||
"make-group-tab",
|
||||
"change-group-opposite",
|
||||
"toggle-tab",
|
||||
"toggle-fullscreen",
|
||||
"enter-fullscreen",
|
||||
"exit-fullscreen",
|
||||
|
|
|
|||
|
|
@ -1659,11 +1659,11 @@ This is the top-level table.
|
|||
alt-shift-k = "move-up"
|
||||
alt-shift-l = "move-right"
|
||||
|
||||
alt-d = "split-horizontal"
|
||||
alt-v = "split-vertical"
|
||||
alt-d = "make-group-h"
|
||||
alt-v = "make-group-v"
|
||||
|
||||
alt-t = "toggle-split"
|
||||
alt-m = "toggle-mono"
|
||||
alt-t = "change-group-opposite"
|
||||
alt-m = "toggle-tab"
|
||||
alt-u = "toggle-fullscreen"
|
||||
|
||||
alt-f = "focus-parent"
|
||||
|
|
@ -4397,14 +4397,6 @@ instead fo the focused window:
|
|||
- `move-down`
|
||||
- `move-up`
|
||||
- `move-right`
|
||||
- `split-horizontal`
|
||||
- `split-vertical`
|
||||
- `toggle-split`
|
||||
- `tile-horizontal`
|
||||
- `tile-vertical`
|
||||
- `toggle-split`
|
||||
- `show-single`
|
||||
- `show-all`
|
||||
- `toggle-fullscreen`
|
||||
- `enter-fullscreen`
|
||||
- `exit-fullscreen`
|
||||
|
|
@ -4464,38 +4456,25 @@ The string should have one of the following values:
|
|||
|
||||
Move the currently focused window one to the right.
|
||||
|
||||
- `split-horizontal`:
|
||||
- `make-group-h`:
|
||||
|
||||
Split the currently focused window horizontally.
|
||||
Wraps the focused window in a horizontal group.
|
||||
|
||||
- `split-vertical`:
|
||||
- `make-group-v`:
|
||||
|
||||
Split the currently focused window vertically.
|
||||
Wraps the focused window in a vertical group.
|
||||
|
||||
- `toggle-split`:
|
||||
- `make-group-tab`:
|
||||
|
||||
Toggle the split of the currently focused container between vertical and
|
||||
horizontal.
|
||||
Wraps the focused window in a tabbed group.
|
||||
|
||||
- `tile-horizontal`:
|
||||
- `change-group-opposite`:
|
||||
|
||||
Sets the split of the currently focused container to horizontal.
|
||||
Toggles the current group's direction.
|
||||
|
||||
- `tile-vertical`:
|
||||
- `toggle-tab`:
|
||||
|
||||
Sets the split of the currently focused container to vertical.
|
||||
|
||||
- `toggle-mono`:
|
||||
|
||||
Toggle the currently focused container between showing a single and all children.
|
||||
|
||||
- `show-single`:
|
||||
|
||||
Makes the currently focused container show a single child.
|
||||
|
||||
- `show-all`:
|
||||
|
||||
Makes the currently focused container show all children.
|
||||
Toggles the current group between tabbed and split mode.
|
||||
|
||||
- `toggle-fullscreen`:
|
||||
|
||||
|
|
|
|||
|
|
@ -1016,14 +1016,6 @@ SimpleActionName:
|
|||
- `move-down`
|
||||
- `move-up`
|
||||
- `move-right`
|
||||
- `split-horizontal`
|
||||
- `split-vertical`
|
||||
- `toggle-split`
|
||||
- `tile-horizontal`
|
||||
- `tile-vertical`
|
||||
- `toggle-split`
|
||||
- `show-single`
|
||||
- `show-all`
|
||||
- `toggle-fullscreen`
|
||||
- `enter-fullscreen`
|
||||
- `exit-fullscreen`
|
||||
|
|
@ -1062,25 +1054,16 @@ SimpleActionName:
|
|||
description: Move the currently focused window one to the right.
|
||||
- value: move-right
|
||||
description: Move the currently focused window one to the right.
|
||||
- value: split-horizontal
|
||||
description: Split the currently focused window horizontally.
|
||||
- value: split-vertical
|
||||
description: Split the currently focused window vertically.
|
||||
- value: toggle-split
|
||||
description: |
|
||||
Toggle the split of the currently focused container between vertical and
|
||||
horizontal.
|
||||
- value: tile-horizontal
|
||||
description: Sets the split of the currently focused container to horizontal.
|
||||
- value: tile-vertical
|
||||
description: Sets the split of the currently focused container to vertical.
|
||||
- value: toggle-mono
|
||||
description: |
|
||||
Toggle the currently focused container between showing a single and all children.
|
||||
- value: show-single
|
||||
description: Makes the currently focused container show a single child.
|
||||
- value: show-all
|
||||
description: Makes the currently focused container show all children.
|
||||
- value: make-group-h
|
||||
description: Wraps the focused window in a horizontal group.
|
||||
- value: make-group-v
|
||||
description: Wraps the focused window in a vertical group.
|
||||
- value: make-group-tab
|
||||
description: Wraps the focused window in a tabbed group.
|
||||
- value: change-group-opposite
|
||||
description: Toggles the current group's direction.
|
||||
- value: toggle-tab
|
||||
description: Toggles the current group between tabbed and split mode.
|
||||
- value: toggle-fullscreen
|
||||
description: Toggle the currently focused window between fullscreen and windowed.
|
||||
- value: enter-fullscreen
|
||||
|
|
@ -2467,11 +2450,11 @@ Config:
|
|||
alt-shift-k = "move-up"
|
||||
alt-shift-l = "move-right"
|
||||
|
||||
alt-d = "split-horizontal"
|
||||
alt-v = "split-vertical"
|
||||
alt-d = "make-group-h"
|
||||
alt-v = "make-group-v"
|
||||
|
||||
alt-t = "toggle-split"
|
||||
alt-m = "toggle-mono"
|
||||
alt-t = "change-group-opposite"
|
||||
alt-m = "toggle-tab"
|
||||
alt-u = "toggle-fullscreen"
|
||||
|
||||
alt-f = "focus-parent"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue