diff options
Diffstat (limited to 'sway.5.txt')
-rw-r--r-- | sway.5.txt | 30 |
1 files changed, 22 insertions, 8 deletions
@@ -22,11 +22,11 @@ Commands | |||
22 | -------- | 22 | -------- |
23 | 23 | ||
24 | **bindsym** <key combo> <command>:: | 24 | **bindsym** <key combo> <command>:: |
25 | Binds _key combo_ to execute _command_ when pressed. You may use XKB key names | 25 | Binds _key combo_ to execute _command_ when pressed. You may use XKB key |
26 | here (**xev**(1) is a good tool for discovering them). An example bindsym | 26 | names here (**xev**(1) is a good tool for discovering them). An example |
27 | command would be _bindsym Mod1+Shift+f exec firefox_, which would execute | 27 | bindsym command would be _bindsym Mod1+Shift+f exec firefox_, which would |
28 | Firefox if the alt, shift, and F keys are pressed together. Any valid sway | 28 | execute Firefox if the alt, shift, and F keys are pressed together. Any |
29 | command is eligible to be bound to a key combo. | 29 | valid sway command is eligible to be bound to a key combo. |
30 | 30 | ||
31 | **exec** <shell command>:: | 31 | **exec** <shell command>:: |
32 | Executes _shell command_ with sh. | 32 | Executes _shell command_ with sh. |
@@ -48,6 +48,9 @@ Commands | |||
48 | container, which is useful, for example, to open a sibling of the parent | 48 | container, which is useful, for example, to open a sibling of the parent |
49 | container, or to move the entire container around. | 49 | container, or to move the entire container around. |
50 | 50 | ||
51 | **focus** mode_toggle:: | ||
52 | Toggles focus between floating view and tiled view. | ||
53 | |||
51 | **focus_follows_mouse** <yes|no>:: | 54 | **focus_follows_mouse** <yes|no>:: |
52 | If set to _yes_, the currently focused view will change as you move your | 55 | If set to _yes_, the currently focused view will change as you move your |
53 | mouse around the screen to the view that ends up underneath your mouse. | 56 | mouse around the screen to the view that ends up underneath your mouse. |
@@ -76,13 +79,24 @@ Commands | |||
76 | **splitv**:: | 79 | **splitv**:: |
77 | Equivalent to **split vertical**. | 80 | Equivalent to **split vertical**. |
78 | 81 | ||
79 | **fullscreen**: | 82 | **floating_modifier** <modifier>:: |
83 | When the _modifier_ key is held down, you may use left click to drag floating | ||
84 | windows, and right click to resize them. | ||
85 | |||
86 | **fullscreen**:: | ||
80 | Toggles fullscreen status for the focused view. | 87 | Toggles fullscreen status for the focused view. |
81 | 88 | ||
82 | **workspace** <name>: | 89 | **gaps** <amount>:: |
90 | Adds _amount_ pixels between each view, and around each output. | ||
91 | |||
92 | **gaps** <inner|outer> <amount>:: | ||
93 | Adds _amount_ pixels as an _inner_ or _outer_ gap, where the former affects | ||
94 | spacing between views and the latter affects the space around each output. | ||
95 | |||
96 | **workspace** <name>:: | ||
83 | Switches to the specified workspace. | 97 | Switches to the specified workspace. |
84 | 98 | ||
85 | **workspace** <prev_on_output|next_on_output>: | 99 | **workspace** <prev_on_output|next_on_output>:: |
86 | Switches to the next workspace on the current output. | 100 | Switches to the next workspace on the current output. |
87 | 101 | ||
88 | **workspace** <name> output <output>:: | 102 | **workspace** <name> output <output>:: |