Created
February 6, 2017 13:17
-
-
Save lfuelling/83a9404de48297c4261c20826b9bae99 to your computer and use it in GitHub Desktop.
Bash aliases for wifi and darkmode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Wifi | |
alias wstat="networksetup -getairportpower en0" | |
alias won="networksetup -setairportpower en0 on" | |
alias woff="networksetup -setairportpower en0 off" | |
# Darkmode | |
alias darkon='osascript -e "tell application \"System Events\" to tell appearance preferences to set dark mode to true"' | |
alias darkoff='osascript -e "tell application \"System Events\" to tell appearance preferences to set dark mode to false"' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment