first commit

This commit is contained in:
寂静的羽夏 2022-10-19 10:33:56 +08:00
commit 2d1a66f185
3 changed files with 38 additions and 0 deletions

2
.gitignore vendored Executable file
View File

@ -0,0 +1,2 @@
*.json
push.sh

22
README.md Normal file
View File

@ -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

View File

@ -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()