{"id":16861896,"url":"https://github.com/maelvls/switch_interfaces","last_synced_at":"2025-07-19T04:05:07.667Z","repository":{"id":79938184,"uuid":"156958768","full_name":"maelvls/switch_interfaces","owner":"maelvls","description":"Switch network interface and proxy simultaneously (Gnome + NetworkManager). Useful for switching networks when working behind a corporate firewall 😁","archived":false,"fork":false,"pushed_at":"2020-05-30T14:40:00.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T02:39:31.701Z","etag":null,"topics":["gnome","networking","networkmanager","nmcli","proxy"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/maelvls.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":"2018-11-10T07:36:00.000Z","updated_at":"2020-05-30T14:41:18.000Z","dependencies_parsed_at":null,"dependency_job_id":"e2050421-f636-43ed-a341-a3e2428b640e","html_url":"https://github.com/maelvls/switch_interfaces","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/maelvls/switch_interfaces","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maelvls%2Fswitch_interfaces","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maelvls%2Fswitch_interfaces/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maelvls%2Fswitch_interfaces/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maelvls%2Fswitch_interfaces/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maelvls","download_url":"https://codeload.github.com/maelvls/switch_interfaces/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maelvls%2Fswitch_interfaces/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265887504,"owners_count":23844416,"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":["gnome","networking","networkmanager","nmcli","proxy"],"created_at":"2024-10-13T14:33:50.056Z","updated_at":"2025-07-19T04:05:07.632Z","avatar_url":"https://github.com/maelvls.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Switch interfaces and proxy server easily\n\n```shell\n\u003e ./switch_interfaces --help\nA small script for helping me switch interfaces + local proxies.\n\nUsage: switch_interfaces (primary | secondary)\n       switch_interfaces --status\n       switch_interfaces --help\n\nWith:\n    (primary, secondary) are configured in /home/mvalais/.switch_interfaces.conf,\n    which should look like something like (in brackets = optionnal service\n    name that should be launched when this interface goes up):\n\n    primary=eth1[,cntlm]\n    secondary=enp0s3[,squid]\n\nEnvironement variables:\n  COLOR = (auto | always) [value: auto]\n    In auto mode, colors will be removed when launched from a tty instead of\n    an interactive shell.\n  TIMEOUT = 1s, 2s, 1m... [value: ]\n    During connexion or deconnexion using nmcli, the tool may get stuck/stall.\n\nExample of /home/mvalais/.switch_interfaces.conf:\n\n# Set the primary and secondary interfaces you want to switch back and forth.\n# After the comma ',\u003cservice\u003e' means that a service (here, cntlm and squid) can\n# be associated so that when the interface is up, the service is launched. You\n# can skip this though (and remove the comma). Uncomment to enable\n\n# Example 1:\n# primary=eth1,cntlm\n# secondary=enp0s3,squid\n\n# Example 2:\n# primary=eth1\n# secondary=enp0s3\n\nMaël Valais, 2018\n```\n\nWritten using [shellcheck] and [shfmt] as well as the [shellcheck-vscode]\nand [shell-format-vscode]\\ (using vscode).\n\n[shellcheck]: https://www.shellcheck.net\n[shfmt]: https://github.com/mvdan/sh\n[shell-format-vscode]: https://marketplace.visualstudio.com/items?itemName=foxundermoon.shell-format\n[shellcheck-vscode]: https://marketplace.visualstudio.com/items?itemName=timonwong.shellcheck\n\n## Install\n\n    git clone \u003cthis project\u003e\n    cd \u003cthis project\u003e\n    make install\n\nMaël Valais, 2018","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaelvls%2Fswitch_interfaces","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaelvls%2Fswitch_interfaces","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaelvls%2Fswitch_interfaces/lists"}