Skip to content

Instantly share code, notes, and snippets.

@lfuelling
Created February 6, 2017 13:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lfuelling/83a9404de48297c4261c20826b9bae99 to your computer and use it in GitHub Desktop.
Save lfuelling/83a9404de48297c4261c20826b9bae99 to your computer and use it in GitHub Desktop.
Bash aliases for wifi and darkmode
#!/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