mrodalgaard / alfred-network-workflow Goto Github PK
View Code? Open in Web Editor NEWShow and change your network settings
License: MIT License
Show and change your network settings
License: MIT License
Testing on a 2021 MacBook Pro 14 via a USB-C > USB-A > Ethernet adapter (appearing as en7) the "ethernet" command returns as false even when connected
If memory serves I used this workflow on an M1 Mac Mini without issue (has a hardware RJ45 connector)
macOS 12.1, Alfred 4.6.2
Thank you for your great work. I just installed the network workflow to toggle my DNS. However, I am facing the following problem.
When I click on on "Edit DNS List", nothing happens. I also tried to manually edit the DNS list in /src/default-dns.conf but the DNS list does not change in Alfred. I would like to remove some of the DNS's and add my piHole to this list.
I am using Alfred 4.0.9 (1144) on Catalina 10.15.4 (19E287). Thank you for your help.
I have two VPN software installed. Named GlobalProtect and HotspotShield. However the command vpn
does not seem to find neither of them
Hi - I'm running OS X 10.11.4 on a Late 2013 Mac Pro. When I try to use "Eth", it shows Not Connected, although I have a DHCP address on Eth1. Same goes if I set a static or move to Eth2...
Hello, I recently installed your workflow, but I'm having issues with the VPN connection. I have a single L2TP VPN and your workflow can list it ok, but when I try to connect I get the following error message:
The server is unreachable. Try reconnecting. If the problem continues, verify your settings and contact your Administrator.
It connects fine when I do it the normal way.
How can I install this?
Thanks for all of your work on this. I saw "DNS switcher using networksetup -setdnsservers" on the Packal TODO list and I wanted to give it a 👍
I typically want to toggle between a couple of sets of DNS servers. I do this via shell scripts right now, but doing it via Alfred would be great.
hello!
Using that workflow for a while, its super cool!
Only thing which bothers me is when I'm toggling Wireshark VPN's it always asking me for update/import settings and that window from alfred always appears...when using 1.3.0
Any ideas how to fix that?
Wifi List is not working. This is the alfred workflow debug error log below.
When I type 'wifilist' wifi list does not show.
Alfred 5, Network workflow v1.7
[09:15:01.880] Network[Script Filter] Queuing argument '(null)'
[09:15:01.993] Network[Script Filter] Script with argv '(null)' finished
[09:15:02.000] STDERR: Network[Script Filter] src/helpers.sh: line 287: [: : integer expression expected
src/helpers.sh: line 289: [: : integer expression expected
src/helpers.sh: line 291: [: : integer expression expected
[09:15:02.001] Network[Script Filter]
Could you release an updated Packal version with DNS support. Thanks!
Could you create a .alfredworkflow version or add a little how-to-use section in your Readme.md-file?
I guess this is because wifi interface does not get matched:
LIST=$(networksetup -listallhardwareports) getWifiInterface "$LIST"
getWifiInterface:3: no matches found: en[0-9]
> networksetup -setdnsservers 8.8.8.8
** Error: Command requires admin privileges.
When setting a DNS server, the script fails because networksetup
requires admin privileges with OSX 12.6.
I'm still getting the error below on the latest release when trying to connect my VPN.
The server is unreachable. Try reconnecting. If the problem continues, verify your settings and contact your Administrator.
First of all, this is a great workflow. Thanks for making it.
This popup window keeps appearing whenever I choose a WiFi network. It's a hassle to keep on inputting account details every time you want to switch WiFi networks.
I just tested the command networksetup -setairportnetwork en0 <SSID> <SSID Password>
in Terminal—I typed my SSID and SSID Password myself—and it didn't prompt me for my account details. It looks like the security 2>&1 >/dev/null find-generic-password -ga "$1"
part of the code in ap.sh
is the one causing the account details popup window to appear.
Is it possible to modify the workflow such that selecting a WiFi network would not display the popup window and just proceed with the next steps? Similar to how you can just click the WiFi menu bar item and pick the SSID you want and not get prompted by the OS for your account details.
Thanks.
If so, I'll submit a PR.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.