# 5. Keybindings **Mod** is the Super key. These are the shipped defaults, from `~/.config/sway/config`. Edit that file and press `Mod+Shift+C` to reload. ## Session | Keys | Action | |---|---| | `Mod+Return` | Open a terminal | | `Mod+D` | Launcher: fuzzy picker over installed apps | | `Mod+Shift+V` | Clipboard history picker | | `Mod+Ctrl+L` | Lock the screen | | `Mod+Shift+C` | Reload the sway config | | `Mod+Shift+E` | Exit the session | | `Mod+F1` | Put the keybinding panel on the desktop away, or bring it back | ## Windows | Keys | Action | |---|---| | `Mod+Q` | Close the focused window | | `Mod+F` | Fullscreen | | `Mod+Shift+F` | Fullscreen across all outputs | | `Mod+H` `Mod+J` `Mod+K` `Mod+L` | Focus left, down, up, right | | `Mod+Shift+H/J/K/L` | Move the window left, down, up, right | | `Mod+Shift+Space` | Toggle floating | | `Mod+Space` | Move focus between tiled and floating | ## Layout | Keys | Action | |---|---| | `Mod+B` | Split horizontally | | `Mod+V` | Split vertically | | `Mod+W` | Tabbed layout | | `Mod+S` | Stacking layout | | `Mod+E` | Toggle split direction | | `Mod+R` | Resize mode: `h/j/k/l` resize, Enter or Esc leaves | | `Mod+-` | Shrink width by 10% | | `Mod+=` | Grow width by 10% | ## Workspaces | Keys | Action | |---|---| | `Mod+1` .. `Mod+4` | Switch to workspace 1 through 4 | | `Mod+Shift+1` .. `Mod+Shift+4` | Move the window to that workspace | | `Mod+N` | Switch to the `notes` workspace | | `Mod+M` | Switch to the `main` workspace | ## Screenshots | Keys | Action | |---|---| | `Print` | Capture the whole output | | `Shift+Print` | Select a region (Esc cancels) | | `Ctrl+Print` | Capture the active window | | `Mod+Print` | Annotate the most recent capture in satty | Every capture goes to `~/Pictures/Screenshots` and raises a notification. ## Media and hardware keys | Keys | Action | |---|---| | Volume up / down / mute | Output volume, with an on-screen indicator | | Mic mute | Input mute | | Brightness up / down | Backlight | | Play / pause / next / previous | Whatever is playing, over MPRIS | | Caps Lock | Shows a caps indicator | ## Inside the console Every `alloy` view shares one keymap. | Keys | Action | |---|---| | `Tab` / `Shift+Tab` | Move between panes | | `j` / `k` or arrows | Move within a list | | `Enter` | Activate the selection | | `Space` | Toggle a switch, or fold a section in a form | | `Esc` | Cancel. In a view with nothing to cancel, leave | | `Ctrl+S` | Save, in a file-backed form | | `?` | Help | | `q` | Quit | Views with tabs switch between them with `h` and `l`. A field being edited owns every key while it is open, so `q` types a `q` there rather than quitting. ## Inside the other tools Alloy does not rebind the applications it adopts. helix, yazi, zathura, imv, mpv and bottom keep their own upstream keys, all of them vim-shaped. Their own help (`?` in yazi and bottom, `:tutor` in helix) is the reference. ## The desktop background The desktop shows this page. Not a copy of it: the panel behind your windows derives its two lists from the machine itself, the verbs from `alloy --help` and the keys from your own `~/.config/sway/config`, so a bind you add appears there the next time you log in. `Mod+F1` puts it away and brings it back. Behind it is a cellular automaton, which changes every fifteen minutes and repeats never: | Pattern | What it is | |---|---| | Rule 30 | Wolfram's elementary cellular automaton, from one live cell | | 10 PRINT | `10 PRINT CHR$(205.5+RND(1)); : GOTO 10`, the Commodore 64 one-liner | | Langton's ant | Two rules, ten thousand steps of scribble, then a highway | | Life | Conway's B3/S23, reseeded whenever it settles | Nothing there is a picture. Each is a rule short enough to state in a sentence, and what you see is what the rule does. Run `alloy-backdrop --once | less` for the panel in a window, or `alloy-drift --pattern life --no-legend` for one of the automata in a terminal. `alloy-drift --help` lists the rest.