2009년 10월 15일 목요일

geektool 설정

  • 일 : Futura 50pt , (5,30,100,80)
date +%d
  • 월 : Times 24pt , (75,40,200,80)
date +%B
  • 요일 : Times 18pt , (75, 60,300,40)
date +%A
  • 시간 : Tahoma 36pt , (15,85,100,45)
date +"%I:%M"
  • 오전/오후 : Tahoma 18pt , (105,90,95,45)
date +%p


  • 날씨 :
osascript /Users/Same/bin/geektool/weather/weather.scpt
  • 날씨 그림 : (135,500,200,130)
file://localhost/Users/Same/bin/geektool/weather/img/WeatherImage.jpg
  • 날씨 글씨 : Arial Rounded BT Bold 14pt , (230,65,170,45)
curl --silent "http://xml.weather.yahoo.com/forecastrss?p=KSXX0037&u=c" grep -E '(Current Conditions:C<BR)' sed -e 's/Current Conditions://' -e 's/<br \/>//' -e 's/<b>//' -e 's/<\/b>//' -e 's/<BR \/>//' -e 's/<description>//' -e 's/<\/description>//' tail -n1


  • gmail : Arial Unicode MS 11pt , (20,130,170,45)
#!/usr/bin/env python
# encoding: utf-8

import os
import imaplib,re
import sys

def main(argv=None):
i=imaplib.IMAP4_SSL('imap.gmail.com')
try:
i.login("이메일","비번")
x,y=i.status('INBOX','(MESSAGES UNSEEN)')
messages=int(re.search('MESSAGES\s+(\d+)',y[0]).group(1))
unseen=int(re.search('UNSEEN\s+(\d+)',y[0]).group(1))
print "New Messages : %s / %s ✉ " % (unseen,messages)
except:
pass


if __name__ == '__main__':
sys.exit(main())



  • 시스템 상태 : Monaco 9pt , (20,150,400,200)
top -l 1 awk '/PhysMem/ {print "Used RAM : " $8 ", Free RAM : " $10}' ; top -l 2 awk '/CPU usage/ && NR > 5 {print $0}' ; df -lh


결과물은


Powered by Qumana

댓글 없음:

댓글 쓰기