You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 912aae1
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/instantwmctl.md
+32-22Lines changed: 32 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,14 @@
6
6
7
7
```bash
8
8
instantwmctl [command]
9
+
10
+
# Get JSON output for machine-readable results
11
+
instantwmctl --json [command]
12
+
instantwmctl -j [command]
9
13
```
10
14
15
+
The `--json` flag can be used with most commands to get machine-readable JSON output instead of human-readable text. Place the flag **before** the subcommand.
16
+
11
17
## General Commands
12
18
13
19
| Command | Description |
@@ -34,6 +40,7 @@ instantwmctl [command]
34
40
|---------|-------------|
35
41
|`instantwmctl tag`| Switch to tag 2 (default) |
36
42
|`instantwmctl tag <number>`| Switch to tag number (1-8) |
43
+
|`instantwmctl tag view <number>`| Explicitly switch to tag number |
37
44
|`instantwmctl tag name <name>`| Rename current tag |
38
45
|`instantwmctl tag reset`| Reset all tag names to defaults |
39
46
@@ -42,18 +49,18 @@ instantwmctl [command]
42
49
| Command | Description |
43
50
|---------|-------------|
44
51
|`instantwmctl layout`| Switch to tile layout |
45
-
|`instantwmctl layout <number>`| Switch to layout by index|
46
-
47
-
Layout indices:
48
-
-0 = Tile
49
-
-1 = Grid
50
-
-2 = Floating
51
-
-3 = Monocle
52
-
-4 = Vert
53
-
-5 = Deck
54
-
-6 = Overview
55
-
-7 = Bstack
56
-
-8 = Horiz
52
+
|`instantwmctl layout <name>`| Switch to layout by name|
53
+
54
+
Layout names:
55
+
-tile = Tile
56
+
-grid = Grid
57
+
-floating = Floating
58
+
-monocle = Monocle
59
+
-vert = Vert
60
+
-deck = Deck
61
+
-overview = Overview
62
+
-bstack = Bstack
63
+
-horiz = Horiz
57
64
58
65
## Monitor Management
59
66
@@ -62,7 +69,9 @@ Layout indices:
62
69
|`instantwmctl monitor list`| List all monitors |
63
70
|`instantwmctl monitor switch <index>`| Switch to monitor by index |
64
71
|`instantwmctl monitor next`| Switch to next monitor |
72
+
|`instantwmctl monitor next <count>`| Switch to monitor N steps ahead |
65
73
|`instantwmctl monitor prev`| Switch to previous monitor |
74
+
|`instantwmctl monitor prev <count>`| Switch to monitor N steps back |
66
75
|`instantwmctl monitor set -r 1920x1080 -f 144`| Configure monitor |
67
76
|`instantwmctl monitor set --enable`| Enable monitor |
68
77
|`instantwmctl monitor set --disable`| Disable monitor |
Modes in instantWM work similarly to Sway/i3 modes, allowing you to define sets of keybindings that are only active in certain contexts. This is useful for defining specialized keybindings for tasks like resizing windows, navigating scratchpads, or running specific commands.
4
+
5
+
## Basic Usage
6
+
7
+
Define modes in your [`config.toml`](wmsettings#configuration-file-location):
# Toggle a mode (enter if not active, exit if already active)
173
+
instantwmctl mode toggle resize
174
+
```
175
+
176
+
The `mode list` command shows all configured modes with an asterisk (*) next to the currently active mode.
177
+
178
+
## Built-in Modes
179
+
180
+
instantWM has built-in handling for move and resize modes that are triggered automatically when dragging windows with the mouse. These are separate from the user-defined modes configured via TOML.
0 commit comments