Skip to content

Instantly share code, notes, and snippets.

View ryanb8's full-sized avatar

Ryan Boyer ryanb8

  • Birmingham, AL
  • 07:00 (UTC -06:00)
View GitHub Profile
@ryanb8
ryanb8 / ethernet_or_wifi.5m.sh
Last active December 28, 2023 22:30
xbar plugin - Print active internet interface
#!/usr/bin/env bash
# A simple plugin for xbar to print the interface you are conntected to the internet with.
# See: https://github.com/matryer/xbar and https://xbarapp.com/
# Probably could be a plugin in xbar repo, TBD.
# Use case - sometimes my mac uses wifi when it shoudl use ethernet.
# Instructions:
# Name `ethernet_or_wifi.5m.sh`
# chmod +x it