{"id":25030164,"url":"https://github.com/stone/i3blocks-bandwidth","last_synced_at":"2025-07-07T08:40:14.600Z","repository":{"id":274926245,"uuid":"924273237","full_name":"stone/i3blocks-bandwidth","owner":"stone","description":"Custom i3blocks bandwidth block","archived":false,"fork":false,"pushed_at":"2025-01-30T06:54:02.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T19:16:37.640Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/stone.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}},"created_at":"2025-01-29T18:02:51.000Z","updated_at":"2025-01-30T06:54:04.000Z","dependencies_parsed_at":"2025-01-30T07:26:19.766Z","dependency_job_id":"873a584e-86d3-4f66-91e6-dfd96df16f62","html_url":"https://github.com/stone/i3blocks-bandwidth","commit_stats":null,"previous_names":["stone/i3blocks-bandwidth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stone/i3blocks-bandwidth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone%2Fi3blocks-bandwidth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone%2Fi3blocks-bandwidth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone%2Fi3blocks-bandwidth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone%2Fi3blocks-bandwidth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stone","download_url":"https://codeload.github.com/stone/i3blocks-bandwidth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stone%2Fi3blocks-bandwidth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264044867,"owners_count":23548829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-02-05T21:46:35.297Z","updated_at":"2025-07-07T08:40:14.579Z","avatar_url":"https://github.com/stone.png","language":"Zig","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom i3blocks bandwidth block\n\n![demo](.demo.gif)\n\nA customizable bandwidth monitor for i3blocks written in Zig.\n\n## Features\n\n- Monitor network interface bandwidth (Rx/Tx)\n- Support for bits/s and bytes/s output\n- Configurable warning and critical thresholds with color output\n- SI units support\n- Multiple interface monitoring\n- Configurable refresh rate\n\n## Building\n\nRequires Zig 0.13 or later.\n\n```shell\nzig build\nzig-out/bin/bandwidth -h\n```\n\nThe binary is:\n\n```shell\nzig-out/bin/bandwidth\n```\n\nCopy it to a directory in your path for easy access:\n\n```shell\ncp zig-out/bin/bandwidth ~/.local/bin\n```\n\nOr if you prefer, let zig install it in your home directory (assuming `~/.local/bin` is in your `$PATH`):\n\n```shell\nzig build -Doptimize=ReleaseSafe --prefix ~/.local\n```\n\n`bandwidth` is a single statically linked binary. No further runtime files are required.\nYou may install it on another system by simply copying the binary.\nIt can be cross compiled to other platforms using zig's `-Dtarget`\n\n```shell\nzig build -Dtarget=x86_64-linux\nzig build -Dtarget=aarch64-linux\nzig build -Dtarget=arm-linux\n```\n\n## Installation\n\n1. Build the binary\n2. Copy it to your i3blocks scripts directory (typically `~/.config/i3blocks/scripts/`)\n3. Make it executable: `chmod +x ~/.config/i3blocks/scripts/bandwidth`\n\n## Configuration\n\nAdd to your i3blocks configuration:\n\n```ini\n[bandwidth]\ncommand=$SCRIPT_DIR/bandwidth\ninterval=persist\nmarkup=pango\nlabel=\nmin_width=20000.0 B/s 20000.0 B/s\ncolor=#000\n```\n\n## Flags\n\n```\n    -b, --bits\n            use bits/s\n\n    -B, --bytes\n            use bytes/s (default)\n\n    -t, --seconds \u003cusize\u003e\n            refresh time (default is 1)\n\n    -i, --interfaces \u003cstring\u003e\n            interfaces to monitor, comma separated (default all except lo)\n\n    -w, --warning \u003cstring\u003e\n            set warning (default orange) for Rx:Tx bandwidth\n\n    -W, --warningcolor \u003cstring\u003e\n            set warning color (#RRGGBB)\n\n    -c, --critical \u003cstring\u003e\n            set critical (default red) for Rx:Tx bandwidth\n\n    -C, --criticalcolor \u003cstring\u003e\n            set critical color (#RRGGBB)\n\n    -s, --si\n            use SI units (default is IEC)\n\n    -h, --help\n            print this help message\n```\n\n## Example Output\n\n```\n\u003cspan fallback='true' color='#FF7373'\u003e1.0KB/s\u003c/span\u003e \u003cspan fallback='true'\u003e5.0 B/s\u003c/span\u003e\n\u003cspan fallback='true' color='#FF7373'\u003e8.0MB/s\u003c/span\u003e \u003cspan fallback='true' color='#FF7373'\u003e2.7KB/s\u003c/span\u003e\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstone%2Fi3blocks-bandwidth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstone%2Fi3blocks-bandwidth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstone%2Fi3blocks-bandwidth/lists"}