jedisct1 / bitbar-dnscrypt-proxy-switcher

BitBar plugin to control dnscrypt-proxy usage
MIT License
152 stars 22 forks source link

original OS X client menu bar icons & macOS versions incl. DNS reset #1

Closed JayBrown closed 6 years ago

JayBrown commented 6 years ago

1st commit to PR: use original OS X client menu bar icons for: connected, disconnected, offline/error Tested successfully with BitBar v2.0.0 beta 10 (latest) on a non-Retina Mac.

2nd commit to PR: (1) exit when OS lesser than 7 (BitBar is not compatible with Snow Leopard and below) (2) various commands to reset DNS cache on different OS versions; obviously untested, except on El Capitan, but based on the following documentation: High Sierra: http://osxdaily.com/2017/12/18/reset-dns-cache-macos-high-sierra/ Sierra: http://osxdaily.com/2017/03/08/clear-dns-cache-macos-sierra/ El Capitan: http://osxdaily.com/2015/11/16/howto-flush-dns-cache-os-x-elcap/ Yosemite: http://osxdaily.com/2014/11/20/flush-dns-cache-mac-os-x/ Mavericks, Mountain Lion & Lion: http://osxdaily.com/2008/03/21/how-to-flush-your-dns-cache-in-mac-os-x/

jedisct1 commented 6 years ago

Thanks a lot!

All these different ways to flush the DNS cache... This is insane...

I kinda liked the emojis to be honest; the previous icons were a bit boring. But sure, the old ones were a bit more consistent.

Thanks!