server-desktop-01/docs/window-manager/cheatsheet.md

106 lines
3.2 KiB
Markdown
Raw Permalink Normal View History

# Hyprland Cheat Sheet
> **Mod key = SUPER** (Windows key). Bindings from DMS defaults + user additions in `~/.config/hypr/hyprland.conf`.
## Launch / Quit
| Keys | Action |
|---|---|
| `SUPER + Return` | Open terminal (kitty) |
| `SUPER + T` | Open terminal (kitty — DMS default) |
| `SUPER + Space` | DMS spotlight launcher |
| `SUPER + D` | Fuzzel launcher (fallback) |
| `SUPER + E` | File manager (`kitty -e yazi`) |
| `SUPER + Q` | Close focused window |
| `SUPER + SHIFT + E` | Exit Hyprland |
| `SUPER + X` | Power menu (DMS) |
| `SUPER + ALT + L` | Lock screen (DMS) |
## Window Control
| Keys | Action |
|---|---|
| `SUPER + F` | Maximize window |
| `SUPER + SHIFT + F` | True fullscreen |
| `SUPER + SHIFT + T` | Toggle floating |
| `SUPER + R` | Toggle split direction |
| `SUPER + drag` (left btn) | Move floating window |
| `SUPER + drag` (right btn) | Resize window |
| `SUPER + SHIFT + P` | Toggle monitor DPMS (display power) |
## Focus and Movement
| Keys | Action |
|---|---|
| `SUPER + H / J / K / L` | Focus left / down / up / right |
| `SUPER + ← / → / ↑ / ↓` | Focus (arrow key variant) |
| `SUPER + SHIFT + H/J/K/L` | Move window in that direction |
| `SUPER + SHIFT + ←/→/↑/↓` | Move window (arrow key variant) |
| `SUPER + CTRL + H/J/K/L` | Focus monitor in that direction |
| `SUPER + SHIFT + CTRL + H/J/K/L` | Move window to that monitor |
## Workspaces
| Keys | Action |
|---|---|
| `SUPER + 19, 0` | Switch to workspace 110 |
| `SUPER + SHIFT + 19, 0` | Move window to workspace 110 |
| `SUPER + U` | Previous workspace |
| `SUPER + I` | Next workspace |
| `SUPER + scroll wheel` | Cycle workspaces |
| `SUPER + TAB` | Workspace overview (DMS) |
| `SUPER + S` | Toggle scratchpad (magic) |
| `SUPER + SHIFT + S` | Send window to scratchpad |
## Screenshots
Saved to `~/Pictures/Screenshots/`.
| Keys | Action |
|---|---|
| `Print` | Whole output |
| `CTRL + Print` | Region select |
| `ALT + Print` | Active window |
## DMS Panels / Widgets
| Keys | Action |
|---|---|
| `SUPER + V` | Clipboard history panel |
| `SUPER + M` | Process list |
| `SUPER + ,` | Settings |
| `SUPER + N` | Notepad |
| `SUPER + Y` | Wallpaper picker |
| `SUPER + SHIFT + /` | Keybind cheat sheet (built-in DMS overlay) |
## Media / Brightness
All `XF86` laptop keys work — volume, mute, mic mute, brightness up/down, play/pause/next/prev — routed through DMS IPC. No extra config needed.
## Clipboard History (Manual)
```
cliphist list | fuzzel -d | cliphist decode | wl-copy
```
## Recovery
| Situation | Action |
|---|---|
| Stuck session | `Ctrl+Alt+F3` → TTY → `loginctl terminate-user $USER` |
| View logs | `~/.cache/hyprland/hyprland.log` · `journalctl --user -b` |
| Fallback session | GDM gear icon → pick **GNOME** or **Sway** |
| Reload config | `hyprctl reload` |
| Inspect state | `hyprctl clients` · `hyprctl monitors` · `hyprctl workspaces` |
## DMS
- Config: `~/.config/hypr/dms/` — binds, colors, layout, cursor, outputs, windowrules
- `dms setup` — re-run to regenerate baseline config
- `dms run` — start the shell (already in autostart)
- Bar right-click → quick settings, theme, widgets
## Cheatsheet Upkeep
Edit this file whenever you change a binding. Commit alongside the config change.