wiki: Update default hotkeys
Browse files at this commit6998b17f9e73917bfdcd604dd2bb29b3563a34acParent: ed9932d1 changed file +7 -8
- wiki/Getting-Started.md +7 -8
wiki/Getting-Started.mdmodified+7 -8
| @@ -70,7 +70,7 @@ Also, on Intel graphics, you may need a workaround described [here](https://nixo | |||
| 70 | 70 | ||
| 71 | To run niri in a VM, make sure to enable 3D acceleration. | 71 | To run niri in a VM, make sure to enable 3D acceleration. |
| 72 | 72 | ||
| 73 | -## Default Hotkeys | 73 | +## Main Default Hotkeys |
| 74 | 74 | ||
| 75 | When running on a TTY, the Mod key is <kbd>Super</kbd>. | 75 | When running on a TTY, the Mod key is <kbd>Super</kbd>. |
| 76 | When running in a window, the Mod key is <kbd>Alt</kbd>. | 76 | When running in a window, the Mod key is <kbd>Alt</kbd>. |
| @@ -92,23 +92,20 @@ The general system is: if a hotkey switches somewhere, then adding <kbd>Ctrl</kb | |||
| 92 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>→</kbd> | Move the focused column to the right | | 92 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>→</kbd> | Move the focused column to the right | |
| 93 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>J</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>↓</kbd> | Move the focused window below in a column | | 93 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>J</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>↓</kbd> | Move the focused window below in a column | |
| 94 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>K</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>↑</kbd> | Move the focused window above in a column | | 94 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>K</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>↑</kbd> | Move the focused window above in a column | |
| 95 | -| <kbd>Mod</kbd><kbd>Home</kbd> and <kbd>Mod</kbd><kbd>End</kbd> | Focus the first or the last column | | ||
| 96 | -| <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>Home</kbd> and <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>End</kbd> | Move the focused column to the very start or to the very end | | ||
| 97 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>H</kbd><kbd>J</kbd><kbd>K</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>Shift</kbd><kbd>←</kbd><kbd>↓</kbd><kbd>↑</kbd><kbd>→</kbd> | Focus the monitor to the side | | 95 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>H</kbd><kbd>J</kbd><kbd>K</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>Shift</kbd><kbd>←</kbd><kbd>↓</kbd><kbd>↑</kbd><kbd>→</kbd> | Focus the monitor to the side | |
| 98 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>H</kbd><kbd>J</kbd><kbd>K</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>←</kbd><kbd>↓</kbd><kbd>↑</kbd><kbd>→</kbd> | Move the focused column to the monitor to the side | | 96 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>H</kbd><kbd>J</kbd><kbd>K</kbd><kbd>L</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>Shift</kbd><kbd>←</kbd><kbd>↓</kbd><kbd>↑</kbd><kbd>→</kbd> | Move the focused column to the monitor to the side | |
| 99 | | <kbd>Mod</kbd><kbd>U</kbd> or <kbd>Mod</kbd><kbd>PageDown</kbd> | Switch to the workspace below | | 97 | | <kbd>Mod</kbd><kbd>U</kbd> or <kbd>Mod</kbd><kbd>PageDown</kbd> | Switch to the workspace below | |
| 100 | | <kbd>Mod</kbd><kbd>I</kbd> or <kbd>Mod</kbd><kbd>PageUp</kbd> | Switch to the workspace above | | 98 | | <kbd>Mod</kbd><kbd>I</kbd> or <kbd>Mod</kbd><kbd>PageUp</kbd> | Switch to the workspace above | |
| 101 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>U</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>PageDown</kbd> | Move the focused column to the workspace below | | 99 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>U</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>PageDown</kbd> | Move the focused column to the workspace below | |
| 102 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>I</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>PageUp</kbd> | Move the focused column to the workspace above | | 100 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>I</kbd> or <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>PageUp</kbd> | Move the focused column to the workspace above | |
| 103 | -| <kbd>Mod</kbd><kbd>1</kbd>–<kbd>9</kbd> | Switch to a workspace by index | | ||
| 104 | -| <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>1</kbd>–<kbd>9</kbd> | Move the focused column to a workspace by index | | ||
| 105 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>U</kbd> or <kbd>Mod</kbd><kbd>Shift</kbd><kbd>PageDown</kbd> | Move the focused workspace down | | 101 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>U</kbd> or <kbd>Mod</kbd><kbd>Shift</kbd><kbd>PageDown</kbd> | Move the focused workspace down | |
| 106 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>I</kbd> or <kbd>Mod</kbd><kbd>Shift</kbd><kbd>PageUp</kbd> | Move the focused workspace up | | 102 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>I</kbd> or <kbd>Mod</kbd><kbd>Shift</kbd><kbd>PageUp</kbd> | Move the focused workspace up | |
| 107 | | <kbd>Mod</kbd><kbd>,</kbd> | Consume the window to the right into the focused column | | 103 | | <kbd>Mod</kbd><kbd>,</kbd> | Consume the window to the right into the focused column | |
| 108 | -| <kbd>Mod</kbd><kbd>.</kbd> | Expel the focused window into its own column | | 104 | +| <kbd>Mod</kbd><kbd>.</kbd> | Expel the bottom window in the focused column into its own column | |
| 109 | | <kbd>Mod</kbd><kbd>[</kbd> | Consume or expel the focused window to the left | | 105 | | <kbd>Mod</kbd><kbd>[</kbd> | Consume or expel the focused window to the left | |
| 110 | | <kbd>Mod</kbd><kbd>]</kbd> | Consume or expel the focused window to the right | | 106 | | <kbd>Mod</kbd><kbd>]</kbd> | Consume or expel the focused window to the right | |
| 111 | | <kbd>Mod</kbd><kbd>R</kbd> | Toggle between preset column widths | | 107 | | <kbd>Mod</kbd><kbd>R</kbd> | Toggle between preset column widths | |
| 108 | +| <kbd>Mod</kbd><kbd>Shift</kbd><kbd>R</kbd> | Toggle between preset column heights | | ||
| 112 | | <kbd>Mod</kbd><kbd>F</kbd> | Maximize column | | 109 | | <kbd>Mod</kbd><kbd>F</kbd> | Maximize column | |
| 113 | | <kbd>Mod</kbd><kbd>C</kbd> | Center column within view | | 110 | | <kbd>Mod</kbd><kbd>C</kbd> | Center column within view | |
| 114 | | <kbd>Mod</kbd><kbd>-</kbd> | Decrease column width by 10% | | 111 | | <kbd>Mod</kbd><kbd>-</kbd> | Decrease column width by 10% | |
| @@ -117,16 +114,18 @@ The general system is: if a hotkey switches somewhere, then adding <kbd>Ctrl</kb | |||
| 117 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>=</kbd> | Increase window height by 10% | | 114 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>=</kbd> | Increase window height by 10% | |
| 118 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>R</kbd> | Reset window height back to automatic | | 115 | | <kbd>Mod</kbd><kbd>Ctrl</kbd><kbd>R</kbd> | Reset window height back to automatic | |
| 119 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>F</kbd> | Toggle full-screen on the focused window | | 116 | | <kbd>Mod</kbd><kbd>Shift</kbd><kbd>F</kbd> | Toggle full-screen on the focused window | |
| 117 | +| <kbd>Mod</kbd><kbd>V</kbd> | Move the focused window between the floating and the tiling layout | | ||
| 118 | +| <kbd>Mod</kbd><kbd>Shift</kbd><kbd>V</kbd> | Switch focus between the floating and the tiling layout | | ||
| 120 | | <kbd>PrtSc</kbd> | Take an area screenshot. Select the area to screenshot with mouse, then press Space to save the screenshot, or Escape to cancel | | 119 | | <kbd>PrtSc</kbd> | Take an area screenshot. Select the area to screenshot with mouse, then press Space to save the screenshot, or Escape to cancel | |
| 121 | | <kbd>Alt</kbd><kbd>PrtSc</kbd> | Take a screenshot of the focused window to clipboard and to `~/Pictures/Screenshots/` | | 120 | | <kbd>Alt</kbd><kbd>PrtSc</kbd> | Take a screenshot of the focused window to clipboard and to `~/Pictures/Screenshots/` | |
| 122 | | <kbd>Ctrl</kbd><kbd>PrtSc</kbd> | Take a screenshot of the focused monitor to clipboard and to `~/Pictures/Screenshots/` | | 121 | | <kbd>Ctrl</kbd><kbd>PrtSc</kbd> | Take a screenshot of the focused monitor to clipboard and to `~/Pictures/Screenshots/` | |
| 123 | -| <kbd>Mod</kbd><kbd>Shift</kbd><kbd>E</kbd> | Exit niri | | 122 | +| <kbd>Mod</kbd><kbd>Shift</kbd><kbd>E</kbd> or <kbd>Ctrl</kbd><kbd>Alt</kbd><kbd>Delete</kbd> | Exit niri | |
| 124 | 123 | ||
| 125 | ## Building | 124 | ## Building |
| 126 | 125 | ||
| 127 | First, install the dependencies for your distribution. | 126 | First, install the dependencies for your distribution. |
| 128 | 127 | ||
| 129 | -- Ubuntu 23.10: | 128 | +- Ubuntu 24.04: |
| 130 | 129 | ||
| 131 | ```sh | 130 | ```sh |
| 132 | sudo apt-get install -y gcc clang libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev libpipewire-0.3-dev libpango1.0-dev libdisplay-info-dev | 131 | sudo apt-get install -y gcc clang libudev-dev libgbm-dev libxkbcommon-dev libegl1-mesa-dev libwayland-dev libinput-dev libdbus-1-dev libsystemd-dev libseat-dev libpipewire-0.3-dev libpango1.0-dev libdisplay-info-dev |