Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'The requisite GeekTool addendum' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The requisite GeekTool addendum
Authored by: klktrk on Aug 11, '06 02:46:23AM

So, if you just want to see the state of your firewall at a glance, use GeekTool.... read on

  1. Click on "New Entry"
  2. Rename the new entry from 'console' to 'Firewall state'
  3. Select Shell from the popup selector at the top of the pane
  4. In the command pane, paste this (all on one line): if [ `defaults read "/Library/Preferences/com.apple.sharing.firewall" state` -eq 1 ];then EX=0;else EX=1;fi;exit $EX
  5. For refresh, enter an appropriate amount of seconds for how often the command should check the state of the firewall. I chose 900 seconds. I can live with it being off for fifteen minutes.
  6. Under the icon tab, select "Show icon", click the default button.
  7. Under the location area at the bottom, select "Always on top"

Now move the green (or red) lozenge icon to wherever you want it to appear on screen. If the firewall is on, you'll have a green lozenge, if the firewall is off, it will be red.

Of course, if you'd rather have a text read out, modify the command like so (again, all on one line): if [ `defaults read "/Library/Preferences/com.apple.sharing.firewall" state` -eq 1 ];then echo "Firewall On";else echo "Firewall Off";fi;

Then skip all the icon stuff and just place the text phrase anywhere on screen you would like to have it.

That was a close call! I was afraid this hint would be without a GeekTool addendum.



[ Reply to This | # ]