• Stars
    star
    121
  • Rank 292,258 (Top 6 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 8 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A tool with shell script and launchd to trigger actions whenever a Mac's network information is changed.

launchd with networkchange

A tool with shell script and launchd to trigger actions whenever a Mac's network information is changed.

[简体中文版使用说明] 请点击这里

Introduction

This repo is an easy way to deal with contexts like:

At workplace, your Mac Device has to make some settings such as change proxy address, set specical pac file, open some apps and so on. While at home your have change it again to others.

With the help of launchd, those operations can be automated. And that's what this repo do! It is fast, easy and safe.

Features

  • Easy to install and uninstall.

  • Password of your system account will be saved in keychain safely.

  • Add example so that your can easily change the code according to your conditions.

How to start

$ git clone https://github.com/Jeff2Ma/launchd-with-networkchange

$ cd launchd-with-networkchange

$ python install.py

Then input the info when is asked.

After that, please edit the code in example.sh according to your conditions.

When your Mac's network change, a notification will show when it run shell script with success.

Notices

  1. When the first run of the script, system will ask you like:

Remember to choose Always Allow.

2)you can make a example.sh copy one and rename it to dynamic.sh, it will be run instead of example.shsee how it work.

  1. If you want to uninstall it, you can run python install.py uninstall.

  2. Check /var/log/system.log if you are having issues with plist.

Contributing

Thanks to this Repo and this Alfred Workflow to provide inspiration for me.

Issues and Pull requests are warm welcome.

More Repositories

1

JGulp

利用Gulp 配置的个人前端项目自动化工作流
JavaScript
257
star
2

WeApp-Workflow

基于Gulp 的微信小程序前端开发工作流 💯
JavaScript
253
star
3

postcss-lazyimagecss

A PostCSS plugin that generates images's CSS width & height properties automatically.
JavaScript
39
star
4

postcss-lazysprite

A PostCSS plugin that automatic generates sprites from the directory of images with hight perfomance.
JavaScript
31
star
5

50-Filters-of-WordPress-zh_CN

Tutsplus 上《50 Filters of WordPress 》系列文章的中文翻译
25
star
6

Python-Exercise

Python 练习册,每天一个小程序
Python
19
star
7

Bevework

WordPress免费博客主题Bevework
PHP
15
star
8

AlfredWorkflow-DuoTai-Helper

DuoTai (duotai.love) Alfred Workflow.
Python
14
star
9

Shadowrocket-Conf-Rules

My Shadowrocket config rules for better adblock and proxy.
12
star
10

AlfredWorkflow-DYHub

一个快速获取SubHD、Kat.cr、电影天堂的资源信息列表的Alfred Workflow
Python
9
star
11

acme-qcloud-scf

借助腾讯云·云函数实现的 ACME Let’s Encrypt SSL 证书自动更新
JavaScript
9
star
12

Android-WXmoment

Android 入门项目-使用RecycleView 实现仿朋友圈界面
Java
7
star
13

iOS-WXmoment

iOS 入门项目-使用 Objective-C 仿朋友圈信息流界面
Objective-C
7
star
14

Simple-Blog-With-Flask

基于Python+Flask 制作的小型简单博客应用
CSS
2
star
15

S-Shortcodes

自己二次开发的WordPress短代码插件,已经更新
PHP
2
star
16

AlfredWorkflow-Katcr-Moives

一个快速获取Kat.cr 上热门影视的Alfred Workflow
Python
2
star
17

AlfredWorkflow-SubHD-HotFilms

一个快速获取SubHD 热门影视的Alfred Workflow
Python
1
star
18

gulp-better-sass-inheritance

Recompile only changed sass/scss files and their dependencies (imported, extended, or included).
JavaScript
1
star
19

postcss-decls-ref

A PostCSS plugin that extend declaration block from an existed rule with target selector (like sass`@extend`).
JavaScript
1
star
20

Alfred-Workflow-OCR-Tencent-Cloud

Take a snapshot and use Tencent Cloud OCR API to recoginze. 截屏并通过腾讯云 OCR 接口识别文字的 Alfred Workflow。
PHP
1
star