{"id":48083899,"url":"https://github.com/sondalex/swindings","last_synced_at":"2026-06-16T22:01:01.442Z","repository":{"id":348894637,"uuid":"1193117924","full_name":"sondalex/swindings","owner":"sondalex","description":"View sway keybindings","archived":false,"fork":false,"pushed_at":"2026-05-25T10:17:52.000Z","size":1333,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-25T11:25:23.226Z","etag":null,"topics":["keybindings","linux","sway","swaywm","tiling-wm","utility","wayland"],"latest_commit_sha":null,"homepage":"https://sondalex.github.io/swindings/","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sondalex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-26T22:27:44.000Z","updated_at":"2026-05-25T10:17:57.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/sondalex/swindings","commit_stats":null,"previous_names":["sondalex/swindings"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/sondalex/swindings","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondalex%2Fswindings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondalex%2Fswindings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondalex%2Fswindings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondalex%2Fswindings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sondalex","download_url":"https://codeload.github.com/sondalex/swindings/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sondalex%2Fswindings/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34425024,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["keybindings","linux","sway","swaywm","tiling-wm","utility","wayland"],"created_at":"2026-04-04T15:03:52.096Z","updated_at":"2026-06-16T22:01:01.436Z","avatar_url":"https://github.com/sondalex.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Swindings\n\n**View sway keybindings**\n\n[demo](https://github.com/user-attachments/assets/59e61c5b-6ac7-4639-ac81-7b8dfb67eabc)\n\n\n## Installation\n\n### Prerequisites\n\n- Sway window manager (Wayland)\n\n### One line install (recommended)\n\n```\ncurl -sSfL https://sondalex.github.io/swindings/install.sh | sh\n```\n\n\n## Usage\n\nRun:\n\n```\nswindings\n```\n\n### Options\n\n\n| Flag | Description |\n|------|-------------|\n| `-i`, `--follow-includes` | Resolve `include` directives in the sway config file. Glob patterns are supported (e.g. `include conf.d/*.conf`). Disabled by default. |\n\n\n**Example** — read keybindings from a config that uses `include`:\n\n```bash\nswindings --follow-includes\n```\n\n\n## Theming\n\nThose themes are available:\n\n**Default**\n\n![Default](assets/default.png)\n\n---\n\n**Tokyo-Night**\n\n![Tokyo-Night](assets/tokyo-night.png)\n\n---\n**Solarized Dark**\n\n![Solarized Dark](assets/solarized-dark.png)\n\n---\n**Catppuccin Mocha**\n\n![Catppuccin Mocha](assets/catppuccin-mocha.png)\n\n---\n**Catppuccin Latte**\n\n![Catppuccin Latte](assets/catppuccin-latte.png)\n\n---\n**Dracula**\n\n![Dracula](assets/dracula.png)\n\n---\n**Gruvbox Dark**\n\n![Gruvbox Dark](assets/gruvbox-dark.png)\n\n---\n**Nord**\n\n![Nord](assets/nord.png)\n\n---\n\n\nIf you want to switch for Tokyo-Night:\n\n```bash\ncp config/tokyo-night.toml ~/.config/swindings/config.toml\n```\n\n\n## Recommendation\n\nAdd keymap to your `~/.config/sway/config`:\n\n```ini\nbindsym $mod+k+m exec swindings\n```\n\n## Building from source\n\n```bash\ngit clone https://github.com/sondalex/swindings.git\ngit submodule update --init --recursive\n```\n\n## Development\n\n### Testing\n\n```bash\nzig build test\n```\n\n### Memory checking\n\n`WITH_VALGRIND` is injected by passing `-Dvalgrind=true` to the build system.\n\nBuild the binary with `-Dvalgrind=true`:\n\n```bash\nzig build -j1 -Dvalgrind=true\n```\n\nThen run valgrind against it:\n\n**On unit tests**\n\n```bash\nvalgrind --leak-check=full \\\n    --show-leak-kinds=all \\\n    --track-origins=yes \\\n    --error-exitcode=1 \\\n    --suppressions=valgrind/swindings.supp \\\n    zig-out/bin/unit_tests\n```\n\n**On executable**\n\nRequires a live Wayland compositor (cannot run in CI). Build with `-Dvalgrind=true`:\n\n```bash\nvalgrind --leak-check=full \\\n    --show-leak-kinds=all \\\n    --track-origins=yes \\\n    --error-exitcode=1 \\\n    --suppressions=valgrind/swindings.supp \\\n    --log-file=raw.log \\\n    zig-out/bin/swindings\n```\n\n\n### Generating compile_commands.json\n\n```bash\nzig build cdb\n```\n\n### Static analysis (clang-tidy)\n\nRequires `clang-tidy` and a `compile_commands.json`. Generate the compilation\ndatabase first:\n\n```bash\nzig build cdb\n```\n\nThen run clang-tidy against the project sources:\n\n```bash\nclang-tidy \\\n    src/cli.c src/config.c src/display.c src/keyicon.c \\\n    src/main.c src/search.c src/structures.c src/theme.c \\\n    -p compile_commands.json\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsondalex%2Fswindings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsondalex%2Fswindings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsondalex%2Fswindings/lists"}