swaywm/sway has 46,189 source lines of code out of 57,602 total lines across 355 files, counted with tokei from the master ref at commit 1652c54b73f6 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-05 (commit 1652c54b73f6), swaywm/sway contains 57,602 total lines: 46,189 code, 3,914 comments, 7,499 blank, across 355 files in 9 languages (top language: C 89.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving swaywm/sway to commit 1652c54b73f6, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a medium-sized codebase by counted code lines. Code represents 80.2% of all lines, comments represent 6.8%, and the repository averages 130 code lines per file. C accounts for 89.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 242 | 48406 | 41091 | 1605 | 5710 |
| C Header | 61 | 5267 | 3446 | 733 | 1088 |
| Meson | 11 | 717 | 655 | 2 | 60 |
| XML | 2 | 535 | 485 | 3 | 47 |
| SVG | 5 | 340 | 335 | 5 | 0 |
| Autoconf | 1 | 241 | 96 | 118 | 27 |
| Fish | 3 | 66 | 57 | 4 | 5 |
| Shell | 1 | 32 | 24 | 1 | 7 |
| Markdown | 29 | 1998 | 0 | 1443 | 555 |
Top language: C 89.0%. Generated on .
swaywm/sway: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
swaywm/sway has 46,189 lines of code, plus 3,914 comment lines and 7,499 blank lines, for 57,602 total lines at commit 1652c54b73f6 on November 5, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 1652c54b73f6, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit 1652c54b73f6 on November 5, 2026.
Play the growth animation for swaywm/sway on this page — 46,189 code lines across 9 languages, counted by tokei.