· KLDP.org · KLDP.net · KLDP Wiki · KLDP BBS ·
torsmo

±Û¾´ÀÌ : ÀÛÀº»óÀÚ (irc.hanirc.org #fluxbox)

Àá½Ã¸¸¿ä!!

torsmo´Â ÇöÀç °³¹ßÀÌ Áß´ÜµÈ »óÅÂÀ̸ç Æ÷Å©¹öÀüÀÎ conky°¡ ³ª¿ÍÀÖÀ¸´Ï conky¸¦ ¾²½Ã´Â°ÍÀ» Àû±Ø ÃßõÇص帳´Ï´Ù. torsmo´Â ÇѱÛÀ» Áö¿øÇÏÁö ¾ÊÀ¸¸ç conky´Â Áö¿øÇÕ´Ï´Ù. »ç¿ë¹ýÀº ¶È°°À¸´Ï ¹Ø¿¡ ±ÛÀ» Âü°í ÇÏ½Ã¸é µË´Ï´Ù!


torsmo¶õ?

Torsmo´Â °¡º­¿î ¸ð´ÏÅ͸µÅø·Î ÅؽºÆ®Áß½ÉÀÇ ¸ð´ÏÅ͸µÅøÀÔ´Ï´Ù. ¹è°æÈ­¸é¿¡ ±ÛÀÚ°¡ ¿À¹ö·¹ÀÌ µÇ´Â ¹æ½ÄÀÔ´Ï´Ù.




[http]½ºÅ©¸°¼¦Àº ÇÊÀÚÀÇ ¸®´ª½º ½ºÅ©¸°¼¦À¸·Î ÀÌ¿Í °°ÀÌ ¶±Ä¥Çصµ ¸Þ¸ð¸®´Â 1¸Þ°¡°¡·®¸Ô½À´Ï´Ù.

¼³Á¤ÆÄÀÏ °Çµé±â ±ÍÂúÀ¸½ÅºÐÀº [http]´Ù¿î·Îµå Çϼŵµ µË´Ï´Ù.

torsmo¿¡¼­ Á¦°øµÇ´Â ¸ð´ÏÅ͸µ¿É¼ÇÀº ´ÙÀ½°ú °°½À´Ï´Ù.

  • Ä¿³Î ¹öÀü
  • ¾÷ŸÀÓ
  • ½Ã½ºÅÛ ½Ã°£
  • ³×Æ®¿öÅ© Á¤º¸
  • ¸Þ¸ð¸®, ½º¿Ò »ç¿ë·®
  • È£½ºÆ® À̸§
  • ¸Ó½Å
  • ½Ã½ºÅÛÀ̸§
  • i2c-¼¾¼­
  • ACPI
  • ¹Ùµ¥¸® Á¤º¸(ACPI/APMÀÌ¿ë)
  • ÇÁ·Î¼¼¼­Á¤º¸
  • ·ÎÄÃ ¸ÞÀÏ
  • ÆÄÀϽýºÅÛ »ç¿ë·ü

À̹ۿ¡ Á¤º¸µéÀº ½©½ºÅ©¸³Æ®¸¦ ÀÌ¿ëÇؼ­ È®ÀåÀÌ °¡´ÉÇÕ´Ï´Ù. (¹«¼±·£ ¼ö½ÅÀ², GmailÈ®ÀÎ, xmms, ³¯¾¾µî)

ÆÄÀÏ ¹Þ´Â°÷

¼³Ä¡¹ýÀº µ¥ºñ¾È,¿ìºÐÅõ, Á¨Åõµî¿¡¼­´Â ¼Ò½º¸®½ºÆ®¸¦ ÅëÇؼ­ ¼³Ä¡°¡ °¡´ÉÇÕ´Ï´Ù.

¼Ò½ºÆ÷Áö¿¡¼­ ¼Ò½º¸¦ Á÷Á¢ ´Ù¿î·ÎµåÇÏ´Â ¹æ¹ý [http]¼Ò½ºÆ÷Áö


Vector ¸®´ª½º »ç¿ëÀÚ [http]ÆÐÅ°Áö

ÃֽŹöÀüÀÇ °³¹ß¿ë ¹öÀü [http]CVS (¸ðµâ 'torsmo')

¼Ò½º ¼³Ä¡¹ý(Á÷Á¢ Å×½ºÆ®´Â ¾ÈÇغýÀ´Ï´Ù)

¾ÐÃàÆÄÀÏÀ» ÇØÁ¦ÈÄ¿¡ ÇØÁ¦ÇÑ µð·ºÅ丮·Î À̵¿ÈÄ¿¡ ´ÙÀ½ ¸í·ÉÀ» ³»¸³´Ï´Ù. ÁÖÀÇÇϽǰÍÀº ¼Ò½º¼³Ä¡½Ã ¿É¼ÇÀ» ÄÑÁÖ¾î¾ß¸¸ ¼³Á¤ÆÄÀÏ¿¡¼­ ÇØ´ç¿É¼ÇÀ» »ç¿ëÇϽǼö ÀÖ½À´Ï´Ù.
./configure --enable-xft --enable-double-buffer --enable-proc-uptime --with-x --enable-seti
make
./torsmo

µ¥ºñ¾È /¿ìºÐÅõ ÀÇ ¼³Ä¡

µ¥ºñ¾È apt-get install torsmo 
¿ìºÐÅõ sudo apt-get install torsmo

¼³Á¤ÆÄÀÏ ¼öÁ¤

¼³Ä¡ÈÄ ±âº» ¼³Á¤ÆÄÀÏÀÌ ¾ø´Â °ü°è·Î ´ÙÀ½°ú °°ÀÌ ¼ÀÇà ¼³Á¤ÆÄÀÏÀ» º¹»çÇØ¿É´Ï´Ù.
cp /usr/share/doc/torsmo/examples/torsmorc.sample.gz ~/
gunzip torsmorc.sample.gz
mv torsmorc.sample .torsmorc

±âº»¼³Á¤ÆÄÀÏ¿¡¼­ ÆÄÀÏÀ» ¿­¾îº¸¸é Å׵θ®¿Í ÀÌ°ÍÀú°ÍÀֱ⿡ ¿øÇϽô´ë·Î ¼öÁ¤ÇϽøéµË´Ï´Ù. ¸î°¡Áö ¿É¼Ç¸¸ »ìÆ캸±â·Ï ÇÏ°Ú½À´Ï´Ù.
nano ~/.torsmorc

font 9x15 		#ÆùÆ®ÀÇ Å©±âÁöÁ¤ÀεíÇѵ¥ ¸ð¸£°Ú½À´Ï´Ù~

use_xft yes		#xft¸¦ »ç¿ë¿©ºÎ ÁöÁ¤

xftfont eunjin-8	#»ç¿ëÇÏ°íÀÚ ÇÏ´Â ÆùÆ®¸í°ú Å©±â¸¦ ÁöÁ¤ÇØÁÝ´Ï´Ù.

Xftalpha 0.8		#ÆùÆ®¾ËÆÄ°ª ÁöÁ¤

gap_x 300		#torsmo°¡ ÂïÈ÷´Â °¡·Î ÁÂÇ¥°ªÀ» Á¤ÇÕ´Ï´Ù.

gap_y 300		#torsmo°¡ ÂïÈ÷´Â ¼¼·Î ÁÂÇ¥°ªÀ» Á¤ÇÕ´Ï´Ù.

update_interval 5.0	#¾÷µ¥ÀÌÆ® ½Ã°£À» ÁöÁ¤ÇÕ´Ï´Ù.

own_window no	#torsmo°¡ âÀ¸·Î Ç¥½ÃµÉÁö ¿©ºÎ
±×¸®°í Á¦ÀÏ ¹Ø¿¡ º¸½Ã¸é Á¦ÀÏ Áß¿äÇÑ ¸ð´ÏÅ͸µÇÒ Ç׸ñµéÀ» ¼±ÅÃÇÕ´Ï´Ù. Á¦ ¼³Á¤ÆÄÀÏ ³»¿ëÀÔ´Ï´Ù. Âü°íÇϼ¼¿ä.
background no

font 9x15
font -artwiz-glisp-medium-r-normal--11-110-75-75-p-90-iso646.1991-irv

update_interval 5.0
own_window no

minimum_size 280 5

draw_shades yes

draw_outline yes

draw_borders no

stippled_borders 8

border_margin 4

border_width 1

default_color white
default_shade_color black
default_outline_color black

alignment top_right
gap_x 5
gap_y 5

no_buffers yes

uppercase no

TEXT
$nodename - $sysname $kernel on $machine
${color grey}UP Time:$color $uptime
${color grey}RAM Usage:$color $memperc% ${membar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
${color grey}Networking: Up:$color ${upspeed eth0} k/s${color grey} - Down:$color ${downspeed eth0} k/s
${color grey}File systems:$color ${fs_bar 4 /}
${color grey}Battery:$color ${battery CMB1}

¹Ùµ¥¸® ºÎºÐ¸¸ Á¦¿ÜÇÏ¸é ´Ù¸¥ ³»¿ëÀº º¸Åë ÁÖ·Î ¾²À̴³»¿ëÀÔ´Ï´Ù.

³ëÆ®ºÏÀ» »ç¿ëÇÏ½Å´Ù¸é ¹Ùµ¥¸® ºÎºÐÀ» ¼öÁ¤ÇϼžßÇÕ´Ï´Ù.

ÀÏ´Ü apmd ¶Ç´Â acpid°¡ ¼³Ä¡, ÀÛµ¿ÀÌ µÇ¾î¾ßÇÕ´Ï´Ù.

¼³Ä¡(µ¥ºñ¾È, ¿ìºÐÅõ±âÁØ) apt-get install apm ȤÀº apt-get install acpi

½ÇÇàÀº ±âº»ÀûÀ¸·Î ½ÇÇàµÇ³ª ¾ÈµÇ¸é /etc/init.d/apmd start ȤÀº /etc/init.d/acpid start

±×¸®°í ${battery CMB1} ºÎºÐ¿¡ CMB1Àº ÇØ´ç ³ëÆ®ºÏÀÇ ¹Ùµ¥¸® À̸§¿¡ ¸Â°Ô ¼öÁ¤ÇØÁÖ½Ã¸é µË´Ï´Ù.

ÀÏ´Ü ±×³É battery·Î ½áÁÖ½Ã°í ¾ÈµÇ¸é /proc/acpi/battery/CMB1/ó·³ batteryµð·ºÅ丮 ¹Ø¿¡ µð·ºÅ丮¸íÀ» ½áÁÖ½Ã¸é µÇ°Ú½À´Ï´Ù.

¾ÈŸ±õ°Ôµµ ÇѱÛÀº Áö¿øÇÏÁö ¾Ê°í ¿µ¹®À¸·Î¸¸ ½á¾ßÇÕ´Ï´Ù.

Ä¿¸Çµå¶óÀÎ ¿É¼Ç

torsmo¸¦ Å͹̳ο¡¼­ ½ÇÇàÇÒ¶§ »ç¿ëÇÏ´Â ¿É¼ÇÀÔ´Ï´Ù.
 
torsmo -f Eunjin 
½ÄÀ¸·Î »ç¿ëÀ» ÇÕ´Ï´Ù.

V ¹öÀüÀ» È®ÀÎÇÕ´Ï´Ù.
-a ALIGNMENT torsmo À§Ä¡ÁöÁ¤, {top,bottom}_{left,right}
torsmo -a top_right ½ÄÀ¸·Î »ç¿ë
-c FILE ¼³Á¤ÆÄÀÏ ÁöÁ¤ ±âº»ÀûÀ¸·Î $HOME/.torsmorc¸¦ ºÒ·¯¿É´Ï´Ù.
-d Daemonize, fork to background
-f FONT ÇØ´çÆùÆ® ÁöÁ¤
-h Ä¿¸Çµå¶óÀÎ µµ¿ò¸» Ãâ·Â
-o âÀ¸·Î ½ÇÇà
-t TEXT Text to render, remember single quotes, like -t '$uptime'
-u SECS ¸ð´ÏÅ͸µ ÁÖ±â ÁöÁ¤
-w WIN_ID ¿øµµ¿ì ¾ÆÀ̵ð
-x X X Ãâ·ÂÁÂÇ¥ ÁöÁ¤
-y Y Y Ãâ·ÂÁÂÇ¥ ÁöÁ¤

torsmo È®Àå½ÃÅ°±â

±âº»ÀûÀ¸·Î Á¦°øÇÏÁö ¾Ê´Â ¿É¼ÇÀ» ½©½ºÅ©¸³ÆÃÀ» ÀÌ¿ë È®ÀåÀÌ °¡´ÉÇÕ´Ï´Ù.

IPÁÖ¼Ò Ãâ·ÂÇϱâ

1. ¸ÕÀú ÀÚ½ÅÀÇ È¨µð·ºÅ丮¿¡ .torsmo_ip ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.
nano .torsmo_ip

#!/bin/sh
/sbin/ifconfig eth0 | awk '/inet addr/ { split($2, x, /:/); print x[2]; exit; }'
2. .torsmo_ipÀÇ ±ÇÇÑÀ» ¼öÁ¤ÇÕ´Ï´Ù.
chmod 775 ~/.torsmo_ip
3. ÀÚ½ÅÀÇ ¼³Á¤ÆÄÀÏ¿¡ ´ÙÀ½ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù.
nano ~/.torsmorc
ip: ${execi 180 ~/.torsmo_ip}

³¯¾¾Ã¢ Ãâ·ÂÇϱâ

1. http://weather.yahoo.com/forecast/ µé¾î°¡¼Å¼­ µµ½Ã¸¦ °Ë»öÇØÁÖ¼¼¿ä.

ÁÖ¿äµµ½Ã °Ë»ö°á°ú - [http]´ë±¸ [http]¼­¿ï[http]ºÎ»ê[http]´ëÀü

À̹ۿ¡ µµ½Ã´Â Á÷Á¢ ¿µ¾î·Î µµ½Ã¸íÀ» °Ë»öÇØÁÖ½Ã¸é µÇ°Ú½À´Ï´Ù.

°Ë»ö¹æ¹ýÀº Enter city or zip code: ¶õ¿¡ ¿øÇÏ´Â µµ½Ã¸íÀ» ¿µ¾î·Î Ĩ´Ï´Ù.

at: 9:00 pm KST F¡Æ | C¡Æ ¶ó°í °Ë»ö°á°ú°¡ ³ª¿À´Âµ¥

±âº»ÀûÀ¸·Î ¿Âµµ°¡ È­¾¾·Î ³ª¿À´Ï C¸µÅ©¸¦ ´­·¯¼­ ¼·¾¾·Î ¹Ù²Ù¾îÁÝ´Ï´Ù.

±×¸®°í ³ª¼­ lynx¸¦ ÀÌ¿ëÇϱâ À§Çؼ­ Text Forecast¹öÅÏÀ» ´­·¯ÁÝ´Ï´Ù.

ÀÌÁ¦ ¿Ï¼ºµÇ¾ú½À´Ï´Ù. ÇØ´çÆäÀÌÁöÀÇ ÀÎÅͳÝÁÖ¼Ò¸¦ º¹»ç ¶Ç´Â ÀÏ´Ü ±â¾ïÇصӴϴÙ.


ÀÚ½ÅÀÇ È¨µð·ºÅ丮¿¡ tweather.sh ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù. ¿©±â¼­ ÁÖÀǸ¦ ÇϽÇÁ¡Àº city= ºÎºÐÀ» ÀÚ½ÅÀÇ µµ½Ã¸íÀ¸·Î ¹Ù²Ù¾îÁֽðí link= ºÎºÐÀ» ¾Æ±î °Ë»öÇÑ ÁÖ¼Ò·Î °íÃÄÁÖ½Ã¸é µË´Ï´Ù.(http://weather.yahoo.com/forecast/´Â Á¦¿Ü)

#!/bin/bash

   city="taegu"

   link=KSXX0026_c.html#text

   file=/tmp/weather.txt

   location=http://weather.yahoo.com/forecast/$link

   lynx -accept_all_cookies -dump $location > $file

   begin=`cat -n $file | grep "Currently" | cut -d ' ' -f5`

   end=`expr $begin + 40`


   head -n $end $file > tmp.t

   tail -n 41 tmp.t > $file

   case $1 in

      Today)  head -n 6 $file | sed '3d' ;;

      Tomorrow)

         begin=`cat -n $file | grep 'Today Tomorrow' | cut -d ' ' -f5`

         end=`cat -n $file | grep 'Extended' | cut -d ' ' -f5`

         num=`expr $end - $begin - 1`

         end2=`expr $begin + 7`

         head -n $end2 $file > tmp.t

         tail -n 3 tmp.t | sed 's/sky/\n sky/' | sed '4d' ;;
      *) exit ;;

   esac

   rm tmp.t

   rm $file
2. ÀÚ½ÅÀÇ .torsmorcÆÄÀÏ¿¡ ´ÙÀ½ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù.
${color grey}Weather:
   $color${execi 1800 ~/tweather.sh Today}

   $color   Tomorrow:

   $color${execi 1800 ~/tweather.sh Tomorrow}
3. ½ÇÇà°¡´ÉÇÏ°Ô Æ۹̼ÇÀ» ¹Ù²Ù¾îÁÝ´Ï´Ù.
chmod 755 ~/tweather.sh

4. lynx¸¦ ÀÌ¿ëÇÏ´Â °ÍÀÌ¶ó¼­ ¼³Ä¡°¡ ¾ÈµÇ¾îÀÖÀ¸¸é ¼³Ä¡¸¦ ÇØÁÖ¼¼¿ä.
apt-get install lynx

·Î±×ÀÎ À¯Àú¸í Ãâ·ÂÇϱâ

1. ÀÚ½ÅÀÇ È¨µð·ºÅ丮¿¡ .torsmo_usersÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.
#!/bin/sh
who | awk '{print $1}' | uniq -c | wc -l
2. ½ÇÇà°¡´ÉÇÏ°Ô Æ۹̼ÇÀ» ¹Ù²Ù¾îÁÝ´Ï´Ù.
chmod 775 ~/.torsmo_users
3. .torsmorcÆÄÀÏ¿¡ ´ÙÀ½ÁÙÀ» Ãß°¡ÇÕ´Ï´Ù.
Current users: ${execi 8 ~/.torsmo_users}

¹«¼±ÀÎÅÍ³Ý ¿¬°áÇ°Áú Ãâ·Â

1. Ȩµð·ºÅ丮¿¡ .torsmo_wifi ÆÄÀÏÀ» »ý¼ºÇÕ´Ï´Ù.
#!/bin/bash

/usr/sbin/iwconfig ath0 | grep Link | sed  's/^[ \t]*//;s/[ \t]*$//'

# if the above doesn't work for you, try this (I guess it has something to do with the new baselayout):

#/usr/sbin/iwconfig ath0 | sed 's/ /\n/g' |grep Quality|sed 's/Quality=//g'

2. Æ۹̼ÇÀ» ¼öÁ¤ÇÕ´Ï´Ù.
chmod 775 ~/.torsmo_wifi 

3. .torsmorcÆÄÀÏ¿¡ ´ÙÀ½À» Ãß°¡ÇÕ´Ï´Ù.
Link: ${exec ~/.torsmo_wifi} 

±âŸ Âü°í ÁÖ¼Ò

XMMS »óÅ Ãâ·ÂÇϱâ, G¸ÞÀÏ »óÅ Ãâ·ÂÇϱâ http://forums.gentoo.org/viewtopic-t-291835-highlight-torsmo tips.html

torsmo °ø½ÄȨÆäÀÌÁö http://torsmo.sourceforge.net/


torsmo Æ÷Å©¹öÀü (»ì¦º¸´Ï torsmoÀÇ ¾÷±×·¹À̵å¹öÀüÀ̳׿ä. ±×·¡ÇÁµµ Áö¿øÀ» ÇÏ°í ¸¾¿¡µå½Ã´ÂºÐ À§Å° Á» ½áÁÖ¼¼¿ä. Àú´Â torsmo°¡ ¸¾¿¡ µé°í ±ÍÂ÷³ª¼­ ¾È¾µ·¡¿ä >_<) http://conky.rty.ca/

¿ìºÐÅõ torsmo À§Å° DeleteMe [http]http://ubuntu.or.kr/wiki.php/Torsmo¿¡ »ì¦ ´ÙµëÀº ¹öÀüÀÌ ÀÖ½À´Ï´Ù. :) --µðÅä

* ÀÌ ¹®¼­´Â [http]kldp, [http]µ¥ºñ¾ÈÀ¯Àú½º, [http]ubuntuÀ§Å°, [http]fluxwiki¿¡ ÀÖÀ¸¸ç kldp°¡ ÃֽŰ»½ÅÀÏ °¡´É¼ºÀÌ ÀÖ½À´Ï´Ù.

ÀÇ°ß


captcha
Username:



sponsored by andamiro
sponsored by cdnetworks
sponsored by HP

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2006-02-24 22:08:11
Processing time 0.0093 sec