swaywm/sway

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.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C242484064109116055710
C Header61526734467331088
Meson11717655260
XML2535485347
SVG534033550
Autoconf12419611827
Fish3665745
Shell1322417
Markdown29199801443555

Top language: C 89.0%. Generated on .

Counting rules and retention

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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

How many lines of code does swaywm/sway have?

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.

How was the swaywm/sway line count measured?

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.

What commit was counted for swaywm/sway?

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.