commit 2d1a66f1856e13750b5f737e165668be46cd1361 Author: wingsummer <1326224942@qq.com> Date: Wed Oct 19 10:33:56 2022 +0800 first commit diff --git a/.gitignore b/.gitignore new file mode 100755 index 0000000..03c0093 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*.json +push.sh diff --git a/README.md b/README.md new file mode 100644 index 0000000..75ba7fc --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +## WingToolPyScript + +  本仓库用于建设 WingToolPy 脚本生态,方便大家一起共同编写,找到自己常用的 py 脚本注册到其脚本中心中。 + +### 使用说明 + +  你可以直接以压缩包的形式下载,将`README.md`所在的所有文件夹拷贝到注册文件夹`/opt/WingTool/plugin/PyScript`中,重启应用即可使用。 + +### 参与贡献 + +  将本仓库 fork 之后,将脚本包放到相应的位置,然后 PR 给该仓库即可。只需 PR 一个,成功后我会同步到其他仓库。打包方式和脚本规范编写可以参考仓库的`网络`下的`打开代理设置`。 + +### 协议 + +  该仓库无法自己设定协议限制里面的脚本,但每个脚本都会有协议说明,请自行阅读。一旦使用该脚本就意味着你同意了脚本开源协议的所有许可。 + +## 有关仓库 + +* GitLink : https://www.gitlink.org.cn/wingsummer/WingToolPyScript +* Gitea : https://code.gitlink.org.cn/wingsummer/WingToolPyScript +* Gitee : https://gitee.com/wing-cloud/wing-tool-py-script + diff --git a/网络/打开代理设置/打开代理设置.py b/网络/打开代理设置/打开代理设置.py new file mode 100644 index 0000000..69a1c75 --- /dev/null +++ b/网络/打开代理设置/打开代理设置.py @@ -0,0 +1,14 @@ +## Title : 打开代理设置 +## License : MIT +## Author : WingSummer +## Function : 打开 Deepin 的代理设置 +## Written on 2022/8/2 + +#coding=utf-8 + +def main(): + service.dbusCall("com.deepin.dde.ControlCenter","/com/deepin/dde/ControlCenter","com.deepin.dde.ControlCenter","ShowPage",["network","System Proxy"]) + +## ============= entry ============= ## + +main() \ No newline at end of file