View sway keybindings
demo.mp4
- Sway window manager (Wayland)
curl -sSfL https://sondalex.github.io/swindings/install.sh | sh
Run:
swindings
| Flag | Description |
|---|---|
-i, --follow-includes |
Resolve include directives in the sway config file. Glob patterns are supported (e.g. include conf.d/*.conf). Disabled by default. |
Example — read keybindings from a config that uses include:
swindings --follow-includesThose themes are available:
Default
Tokyo-Night
Solarized Dark
Catppuccin Mocha
Catppuccin Latte
Dracula
Gruvbox Dark
Nord
If you want to switch for Tokyo-Night:
cp config/tokyo-night.toml ~/.config/swindings/config.tomlAdd keymap to your ~/.config/sway/config:
bindsym $mod+k+m exec swindingsgit clone https://github.com/sondalex/swindings.git
git submodule update --init --recursivezig build testWITH_VALGRIND is injected by passing -Dvalgrind=true to the build system.
Build the binary with -Dvalgrind=true:
zig build -j1 -Dvalgrind=trueThen run valgrind against it:
On unit tests
valgrind --leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--error-exitcode=1 \
--suppressions=valgrind/swindings.supp \
zig-out/bin/unit_testsOn executable
Requires a live Wayland compositor (cannot run in CI). Build with -Dvalgrind=true:
valgrind --leak-check=full \
--show-leak-kinds=all \
--track-origins=yes \
--error-exitcode=1 \
--suppressions=valgrind/swindings.supp \
--log-file=raw.log \
zig-out/bin/swindingszig build cdbRequires clang-tidy and a compile_commands.json. Generate the compilation
database first:
zig build cdbThen run clang-tidy against the project sources:
clang-tidy \
src/cli.c src/config.c src/display.c src/keyicon.c \
src/main.c src/search.c src/structures.c src/theme.c \
-p compile_commands.json






