| 1 |
# 5. Keybindings |
| 2 |
|
| 3 |
**Mod** is the Super key. These are the shipped defaults, from |
| 4 |
`~/.config/sway/config`. Edit that file and press `Mod+Shift+C` to reload. |
| 5 |
|
| 6 |
## Session |
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
| `Mod+Return` | Open a terminal | |
| 11 |
| `Mod+D` | Launcher: fuzzy picker over installed apps | |
| 12 |
| `Mod+Shift+V` | Clipboard history picker | |
| 13 |
| `Mod+Ctrl+L` | Lock the screen | |
| 14 |
| `Mod+Shift+C` | Reload the sway config | |
| 15 |
| `Mod+Shift+E` | Exit the session | |
| 16 |
| `Mod+F1` | Put the keybinding panel on the desktop away, or bring it back | |
| 17 |
|
| 18 |
## Windows |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
| `Mod+Q` | Close the focused window | |
| 23 |
| `Mod+F` | Fullscreen | |
| 24 |
| `Mod+Shift+F` | Fullscreen across all outputs | |
| 25 |
| `Mod+H` `Mod+J` `Mod+K` `Mod+L` | Focus left, down, up, right | |
| 26 |
| `Mod+Shift+H/J/K/L` | Move the window left, down, up, right | |
| 27 |
| `Mod+Shift+Space` | Toggle floating | |
| 28 |
| `Mod+Space` | Move focus between tiled and floating | |
| 29 |
|
| 30 |
## Layout |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
| `Mod+B` | Split horizontally | |
| 35 |
| `Mod+V` | Split vertically | |
| 36 |
| `Mod+W` | Tabbed layout | |
| 37 |
| `Mod+S` | Stacking layout | |
| 38 |
| `Mod+E` | Toggle split direction | |
| 39 |
| `Mod+R` | Resize mode: `h/j/k/l` resize, Enter or Esc leaves | |
| 40 |
| `Mod+-` | Shrink width by 10% | |
| 41 |
| `Mod+=` | Grow width by 10% | |
| 42 |
|
| 43 |
## Workspaces |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
| `Mod+1` .. `Mod+4` | Switch to workspace 1 through 4 | |
| 48 |
| `Mod+Shift+1` .. `Mod+Shift+4` | Move the window to that workspace | |
| 49 |
| `Mod+N` | Switch to the `notes` workspace | |
| 50 |
| `Mod+M` | Switch to the `main` workspace | |
| 51 |
|
| 52 |
## Screenshots |
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
| `Print` | Capture the whole output | |
| 57 |
| `Shift+Print` | Select a region (Esc cancels) | |
| 58 |
| `Ctrl+Print` | Capture the active window | |
| 59 |
| `Mod+Print` | Annotate the most recent capture in satty | |
| 60 |
|
| 61 |
Every capture goes to `~/Pictures/Screenshots` and raises a notification. |
| 62 |
|
| 63 |
## Media and hardware keys |
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
| Volume up / down / mute | Output volume, with an on-screen indicator | |
| 68 |
| Mic mute | Input mute | |
| 69 |
| Brightness up / down | Backlight | |
| 70 |
| Play / pause / next / previous | Whatever is playing, over MPRIS | |
| 71 |
| Caps Lock | Shows a caps indicator | |
| 72 |
|
| 73 |
## Inside the console |
| 74 |
|
| 75 |
Every `alloy` view shares one keymap. |
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
| `Tab` / `Shift+Tab` | Move between panes | |
| 80 |
| `j` / `k` or arrows | Move within a list | |
| 81 |
| `Enter` | Activate the selection | |
| 82 |
| `Space` | Toggle a switch, or fold a section in a form | |
| 83 |
| `Esc` | Cancel. In a view with nothing to cancel, leave | |
| 84 |
| `Ctrl+S` | Save, in a file-backed form | |
| 85 |
| `?` | Help | |
| 86 |
| `q` | Quit | |
| 87 |
|
| 88 |
Views with tabs switch between them with `h` and `l`. A field being edited owns |
| 89 |
every key while it is open, so `q` types a `q` there rather than quitting. |
| 90 |
|
| 91 |
## Inside the other tools |
| 92 |
|
| 93 |
Alloy does not rebind the applications it adopts. helix, yazi, zathura, imv, |
| 94 |
mpv and bottom keep their own upstream keys, all of them vim-shaped. Their own |
| 95 |
help (`?` in yazi and bottom, `:tutor` in helix) is the reference. |
| 96 |
|
| 97 |
## The desktop background |
| 98 |
|
| 99 |
The desktop shows this page. Not a copy of it: the panel behind your windows |
| 100 |
derives its two lists from the machine itself, the verbs from `alloy --help` |
| 101 |
and the keys from your own `~/.config/sway/config`, so a bind you add appears |
| 102 |
there the next time you log in. |
| 103 |
|
| 104 |
`Mod+F1` puts it away and brings it back. Behind it is a cellular automaton, |
| 105 |
which changes every fifteen minutes and repeats never: |
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
| Rule 30 | Wolfram's elementary cellular automaton, from one live cell | |
| 110 |
| 10 PRINT | `10 PRINT CHR$(205.5+RND(1)); : GOTO 10`, the Commodore 64 one-liner | |
| 111 |
| Langton's ant | Two rules, ten thousand steps of scribble, then a highway | |
| 112 |
| Life | Conway's B3/S23, reseeded whenever it settles | |
| 113 |
|
| 114 |
Nothing there is a picture. Each is a rule short enough to state in a sentence, |
| 115 |
and what you see is what the rule does. |
| 116 |
|
| 117 |
Run `alloy-backdrop --once | less` for the panel in a window, or |
| 118 |
`alloy-drift --pattern life --no-legend` for one of the automata in a terminal. |
| 119 |
`alloy-drift --help` lists the rest. |
| 120 |
|