{"id":31165294,"url":"https://github.com/mgalgs/tmux-wireguard","last_synced_at":"2026-03-18T00:36:23.403Z","repository":{"id":299150941,"uuid":"1002202984","full_name":"mgalgs/tmux-wireguard","owner":"mgalgs","description":"WireGuard connection indicator for tmux status line","archived":false,"fork":false,"pushed_at":"2025-06-17T20:44:51.000Z","size":6,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-13T15:42:47.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mgalgs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2025-06-15T00:02:46.000Z","updated_at":"2025-06-17T20:44:54.000Z","dependencies_parsed_at":"2025-06-15T01:21:19.415Z","dependency_job_id":"82fb1055-89e1-4e24-ab1a-b43790140e1d","html_url":"https://github.com/mgalgs/tmux-wireguard","commit_stats":null,"previous_names":["mgalgs/tmux-wireguard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mgalgs/tmux-wireguard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Ftmux-wireguard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Ftmux-wireguard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Ftmux-wireguard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Ftmux-wireguard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mgalgs","download_url":"https://codeload.github.com/mgalgs/tmux-wireguard/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mgalgs%2Ftmux-wireguard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30637221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-18T00:09:27.587Z","status":"ssl_error","status_checked_at":"2026-03-18T00:09:26.123Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-09-19T08:05:38.859Z","updated_at":"2026-03-18T00:36:23.139Z","avatar_url":"https://github.com/mgalgs.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tmux WireGuard status\n\ntmux plugin to add active WireGuard interfaces to your status bar.\n\n## Pre-requisites\n\n- `wg` (from `wireguard-tools`)\n- `numfmt` (from `coreutils`)\n- For verbose mode (to show network transfer, etc), the ability to run `sudo wg show`\n  without a password (example sudoers config below)\n\n## Installation\n\n### Via TPM (recommended)\n\n```\nset -g @plugin 'mgalgs/tmux-wireguard'\n```\n\nHit `prefix + I` to fetch the plugin and source it.\n\nNow you can add `#{@active_wg_ifs}` or `#{@active_wg_ifs_verbose}` to your\n`status-left` and `status-right` options, as described in the Usage section\nbelow.\n\n### Manual\n\nClone the repo:\n\n```\ngit clone https://github.com/mgalgs/tmux-wireguard\n```\n\nAdd this to the bottom of your `.tmux.conf`:\n\n```\nrun-shell /path/to/tmux-wireguard/main.tmux\n```\n\nAnd reload your tmux environment:\n\n```\ntmux source-file ~/.tmux.conf\n```\n\n## Usage\n\nThis plugin adds the following variables for use in your `status-left` or\n`status-right` strings:\n\n  - `#{@active_wg_ifs}` :: Space-separated list of WireGuard interface names\n  - `#{@active_wg_ifs_verbose}` :: Verbose list of interfaces, including data\n    transfer (summed across all peers) and last handshake (from most recent peer)\n\n### Example\n\n```\nset -g status-right '#[fg=colour226,bg=colour017,bright]#{@active_wg_ifs_verbose}#[fg=green,bg=black,nobright] #[default]'\n```\n\n## Screenshots\n\nThese were taken with the colors from the above `status-right` example.\n\nNormal mode:\n\n![Normal mode](./screenshot-normal-mode.png)\n\nVerbose mode:\n\n![Verbose mode](./screenshot-verbose-mode.png)\n\n## Password-less sudo Configuration\n\nSince `wg show` requires root access and this script is called non-interactively by\ntmux, you need to enable password-less `sudo` access for the `wg show` command.\n\nFor example, to allow any user in the `sudo` group to run `wg show` without a\npassword you can add the following entry to your sudoers file (which you can edit by\nrunning `sudo visudo`):\n\n```\n%sudo ALL=(ALL) NOPASSWD: /usr/bin/wg show\n```\n\n(replace `%sudo` with `username` to target a specific user, or `%othergroup` to\ntarget a different group).\n\nTo keep things organized and separate from your distro's sudo configuration you can\ndrop that in a dedicated file by running `sudo visudo -f /etc/sudoers.d/wg` and\nadding the line there.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgalgs%2Ftmux-wireguard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmgalgs%2Ftmux-wireguard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmgalgs%2Ftmux-wireguard/lists"}