dreamncn / SleepWithoutBluetoothAndWifi

睡眠关闭WIFI和蓝牙

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

简介

这是MAC下一个睡眠自动关闭蓝牙WIFI,睡醒自动开启蓝牙WIFI的脚本

只需执行一次该脚本即可实现睡眠关闭蓝牙WIFI功能

可能需要关闭SIP才能正常使用

安装

你可以选择使用brew和没有brew的安装方法,两者选其一即可。

brew(推荐

git clone https://github.com/dreamncn/SleepWithoutBluetoothAndWifi
cd SleepWithoutBluetoothAndWifi
chmod +x ./install.sh
./install.sh

没有brew

 git clone https://github.com/dreamncn/SleepWithoutBluetoothAndWifi
 cd SleepWithoutBluetoothAndWifi
 chmod +x ./install-without-brew.sh
 ./install-without-brew.sh

授权蓝牙控制器

安装完成后您可能需要手动授权才能使用

请解锁后手动勾上sleepwatcher

image-20220422213555172

卸载

 cd SleepWithoutBluetoothAndWifi
 chmod +x ./uninstall.sh
 ./uninstall.sh

其他

安装完成后你可以直接删除 SleepWithoutBluetoothAndWifi这个文件夹,卸载的时候再下载这个uninstall.sh这个文件来卸载。

授权

GPL3.0

About

睡眠关闭WIFI和蓝牙

License:GNU General Public License v3.0


Languages

Language:Ruby 33.6%Language:Rich Text Format 26.1%Language:Shell 20.2%Language:Roff 20.1%