An open API service indexing awesome lists of open source software.

https://github.com/honwen/mac-auto-xlan-switch

Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac
https://github.com/honwen/mac-auto-xlan-switch

Last synced: 3 months ago
JSON representation

Automatically disable Wifi when an Ethernet connection (cable) is plugged in on a Mac

Awesome Lists containing this project

README

        

### Thanks (embeds)

- https://gist.github.com/albertbori/1798d88a93175b9da00b

#### Function

- When Ethernet connected, WiFi will be closed automatically.
- When Ethernet disconnected, WiFi will be open automatically.

### Install

```shell
go install github.com/honwen/mac-auto-xlan-switch@latest
```

### Use

```shell
sudo mac-auto-xlan-switch start
sudo mac-auto-xlan-switch stop
```

### Help

```shell
$ mac-auto-xlan-switch -h
NNAME:
switcher - mac-auto-xlan-switch

USAGE:
mac-auto-xlan-switch [global options] command [command options] [arguments...]

VERSION:
Git:[MISSING BUILD VERSION [GIT HASH]] (go1.20.4)

COMMANDS:
start Start Auto xLan Switcher
stop Stop Auto xLan Switcher
help, h Shows a list of commands or help for one command

GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```