leebyron / anyconnect-dark

Dark OSX menu bar assets for Cisco AnyConnect VPN.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normal mode??

kingbuzzman opened this issue · comments

Can you make a set of icons for normal mode.

ps. This script is better.

It backs up the images there downloads your zip, extracts and installs. I leave everything inside /tmp since that will get cleaned up by the OS when its needed

cd /Applications/Cisco/Cisco\ AnyConnect\ Secure\ Mobility\ Client.app/Contents/Resources/; sudo mv anyconnect_16.tiff _anyconnect_16.tiff; sudo mv vpnlock_12.tiff _vpnlock_12.tiff; (curl -Ls https://github.com/leebyron/anyconnect-dark/raw/master/Resources.zip > /tmp/Resources.zip && unzip -o -d /tmp/ /tmp/Resources.zip && sudo mv /tmp/Resources/*.png .); cd -

Breakdown:
cd /Applications/Cisco/Cisco\ AnyConnect\ Secure\ Mobility\ Client.app/Contents/Resources/
Go to the dirrectory in question
sudo mv anyconnect_16.tiff _anyconnect_16.tiff
Back up the anyconnect image
sudo mv vpnlock_12.tiff _vpnlock_12.tiff
Back up the anyconnect image
(curl -Ls https://github.com/leebyron/anyconnect-dark/raw/master/Resources.zip > /tmp/Resources.zip && unzip -o -d /tmp/ /tmp/Resources.zip && sudo mv /tmp/Resources/*.png .)
Download the file, unzip it, and move it to current dirrectory
cd -
Back to the directory you where in before you ran the command

... if you're wondering why the (curl ... && ...) and the rest have ;: simple, if any of that part fails we dont want it to continue BUT, we still want it to run cd - so youre not stuck inside the Cisco/Resources directory