SUBJECT: Motif ÀÏ¹Ý »ç¿ë¹ý Á¤¸®
Description :
¡ß Ŭ¶óÀ̾ðÆ® »ç¿ë ¹æ¹ý ¡ß
o xterm
-cr color : text cursorÀÇ »öÀ» color·Î ÁöÁ¤
-ls : shellÀ» login shell·Î¼ ±âµ¿
-sb : scroll bar¸¦ ºÎÂø
-sl lines : scrollÇÒ¶§ saveÇÒ Çà¼ö¸¦ lines¿¡¼ ÁöÁ¤
-T string : À©µµ¿ì¿¡ ŸÀÌƲÀ» ºÙÀÓ
-n string : ¾ÆÀÌÄÜÈ ÇßÀ»¶§ÀÇ ¾ÆÀÌÄܸíÀ» ºÙÀÓ
% xterm -e rlogin hyundai1 & ==> hyundai1À¸·Î µé¾î°£ »óÅ·Πprompt³ªÅ¸³²
o xclock
-analog : analog ½Ã°è¸¦ Ç¥½Ã
-digital : digitalÀÇ ½Ã°è¸¦ Ç¥½Ã
-hd color : analog ½Ã°èÀÇ ¹Ù´Ã»öÀ» color·Î ÁöÁ¤
-hl color : ½Ã°è¹Ù´ÃÀÇ Å׵θ® »ö
-update seconds : ½Ã°èÇ¥½ÃÀÇ °»½Å°£°ÝÀ» secondsÃÊ·Î ÁöÁ¤
o xload
-hl color : ·¹À̺í°ú ´«±ÝÀÇ »öÀ» color·Î ÁöÁ¤
-scale integer : Ç¥½ÃÇÏ´Â ´«±ÝÀÇ ¼ö¸¦ integer·Î ÁöÁ¤
-update seconds : ºÎÇÏ»óÅ ǥ½ÃÀÇ °»½Å°£°ÝÀ» secondsÃÊ·Î ÁöÁ¤
o xsetroot
-gray : root windowwÀÇ ¹è°æ»öÀ» ȸ»öÀ¸·Î ÇÔ
-mod 16 16 : root windowÀÇ ¹è°æÀ» °ÝÀÚ¹«´Ì·Î ä¿ò
-def(ault) : root windowÀÇ ¼Ó¼º°ªÀ» defaultÀÇ °ªÀ¸·Î ¿øÀ§Ä¡
o Ä¿¼ÀÇ ÇüÅ º¯°æ½Ã
- Ä¿¼ ¸ð¾çÀº cursor pattern°ú mask patternÀ¸·Î ÇÕ¼º µÇ¾îÁü
cursor patternÀº Ä¿¼ÀÇ Àü°æÇü»óÀ» °áÁ¤ÇÏ°í ±× »öÀº Ä¿¼ÀÇ Àü°æ½ÄÀ¸·Î
Á¤ÇÔ (ÀÏÁ¾ÀÇ foreground) mask patternÀº Ä¿¼ÀÇ ¹è°æÇü»óÀ» Á¤ÇÏ°í
±× »öÀº Ä¿¼ÀÇ ¹è°æ»öÀ¸·Î Á¤ÇÔ (ÀÏÁ¾ÀÇ background)
% xsetroot -cursor cursor mask
o font »ç¾ç¸íÀ̶õ?
-------------------------------------------------------------------
| "-p1-p2-p3-p4-p5-p6-p7-p8-p9-p10-p11-p12-p13-p14-p15" |
-------------------------------------------------------------------
| -adobe-courier-bold-o-nornal--10-100-75-75-m-60-iso8859-1 |
-------------------------------------------------------------------
p1(Font Name Register)Àº fontÀ» µî·ÏÇÑ ±â°ü ´Üü¸í
p2(Foundry)´Â fontÀÇ Á¦ÀÛ/°³¹ßÀÚ¸í (adobe)
p3(Family Name)´Â fontÀÇ µî·Ï »óÇ¥¸í (courier)
p4(Weight Name)´Â fontÀÇ Áß·®(±½±â µî)À» Ç¥½Ã (bold)
p5(Slant)´Â fontÀÇ °æ»ç»óŸ¦ ³ªÅ¸³¿
R : Roman I : Italic O : Oblique
RI : Reverse Italic RO : Reverse Oblique
p6(SetwidthName)Àº fontÀÇ ¹®ÀÚ°£°Ý °áÁ¤»óÅÂÀÇ rank¸¦ ³ªÅ¸³¿.
nornal, compressed, expandµî p7(AddStyleName)Àº font¸¦ ƯÁ¤Áþ´Â
º¸Á¶ÀûÀÎ À̸§(»ý·«ÇÒ ¶§´Â ¾Æ¹«°Íµµ ¾²Áö ¾ÊÀ½)
p8(PixelSize)Àº fontÀÇ ¹®ÀÚ sizeÀ» Çȼ¿ °ªÀ¸·Î ³ªÅ¸³½ °Í.
¹®ÀÚ "M"À» µÑ·¯½Ñ »óÀÚÀÇ Å©±â·Î ´ëÇ¥ (10) p9(PointSize)Àº fontÀÇ ¹®ÀÚ
size¸¦ point¼öÀÇ 10¹è·Î Ç¥½ÃÇÑ °Í. ¹®ÀÚ size´Â ¹®ÀÚ "M"À» µÑ·¯½Ñ
»óÀÚÀÇ Å©±â·Î ´ëÇ¥ÇÔ. (100) 1 point´Â 1/72.27ÀÎÄ¡ p10(ResolutionX)´Â
font°¡ °¡Á¤ÇÏ°í Àִ ǥ½Ã µð¹ÙÀ̽ºÀÇ ¼öÆò ¹æÇâÀÇ ºÐÇØ´ÉÀÌ´Ù.
´ÜÀ§´Â Çȼ¿/ÀÎÄ¡ÀÌ´Ù.(75)
p11(ResolutionY)´Â " " " ¼öÁ÷ ¹æÇâÀÇ
ºÐÇØ´ÉÀÌ´Ù.
´ÜÀ§´Â Çȼ¿/ÀÎÄ¡ÀÌ´Ù.(75)
p12(Spacing)Àº ¹®ÀÚÀÇ ÇÇÄ¡ÀÇ Á¾·ù¸¦ ³ªÅ¸³¿ (m)
M : Monospaced (°íÁ¤ pitch) ex) fixed-width
P : Proportional (°¡º¯ pitch) ex) variable-width
p13(AverageWidth)Àº ÀÌ font¿¡ ¼ÓÇÏ´Â ¸ðµç ¹®ÀÚÀÇ Æò±Õ ÆøÀ» 1Çȼ¿ÀÇ
10ºÐÀÇ 1ÀÇ ´ÜÀ§·Î Ç¥½ÃÇÔ (60)
p14(CharSetRegistry)´Â ¹®ÀÚ SetÀ» ¼³Á¤ÇÑ ´Üü¸í ¶Ç´Â Ç¥ÁØÈ ¹øÈ£µîÀÇ
½Äº°¸íÀÓ (iso8859)
p15(CharSetEncoding)Àº ¹®ÀÚ SetÀÇ ½Äº°¸íÀÓ
% xlsfonts "*-Courier-24-*"
o xset
q : ÇöÀçÀÇ font, search, path¸¦ Ç¥½Ã
fp=path : ½Å±Ô·Î font,search,path¸¦ ¼³Á¤ÇÏ°í °íÄ£´Ù. °ú°ÅÀÇ °ªÀº
¼Ò¸íµÇ¾îÁü
fp default : font,search,path¸¦ default°ªÀ¸·Î µÇµ¹¸²
fp rehash : ½á¹ö¿¡ ´ëÇÏ¿© font,search,path¿¡ º¯°æÀÌ ÀÖ¾ú´ø °ÍÀ» ÀÎÁö½ÃÅ´
% xset fp=
/usr/lib/X11/fonts/misc /usr/lib/X11/fonts/100dpi /usr/lib/X11/fonts/75dpi
¢Ñ fp= /usr/lib/X11/fonts/misc (½ºÆäÀ̽º¸¦ ¹Ýµå½Ã...)
% xset s [ length(period) ] ==> length´Â Å° ÀÔ·ÂÀ̳ª ¸¶¿ì½º À̵¿À» ÇÏÁö
¾ÊÀº ½Ã°£(ÃÊ) default´Â 600 period´Â ƯÁ¤ ¹è°æ»öÀÇ ÆÐÅÏ(·Î°í)Ç¥½Ã°¡
º¯°æ µÇ¾î Áú¶§±îÁöÀÇ ½Ã°£(ÃÊ)
xset s blank ==> ¹è°æ ÆÐÅÏÀ» Ç¥½ÃÇÏÁö ¾Ê°í ½ºÅ©¸°À» Èæ»öÀ¸·Î
xset s noblank ==> ½ºÅ©¸°À» Èæ»öÀ¸·Î ÇÏÁö ¾Ê°í ¹è°æ ÆÐÅÏ(·Î°í)À» Ç¥½Ã
xset s default ==> ½ºÅ©¸° º¸È£±â´ÉÀ» defaultÀÇ ¼³Á¤À¸·Î
o mkfontdir
- font directory¿¡ ´ëÇÏ¿© font fileÀ» »õ·ÎÀÌ Ãß°¡ ¶Ç´Â »èÁ¦ ÇÒ°æ¿ì
font.dir fileÀÇ ³»¿ëÀ» °»½ÅÇÔ mkfontdir¿¡¼ font directory¸¦ ÁöÁ¤Çϸé
±× directory¿¡ ÀÖ´Â font fileÁ¤º¸¸¦ ±âº»À¸·Î fonts.dir fileÀÇ
³»¿ëÀ» °»½ÅÇÏ¿© ÁÜ
% mkfontdir [directory] directory¸¦ »ý·«Çϸé ÇöÀç µð·ºÅ丮°¡ µÊ
o xfd -fn fontname
- ¹®ÀÚ Ã̹ý Á¤º¸ÀÇ Àǹ̴Â?
¨Í left bearing : ¹®ÀÚ ¿ÞÂÊÀÇ ¹®ÀÚ ¿øÁ¡À¸·Î ºÎÅÍÀÇ °Å¸® (XÃà Ç÷¯½º ¹æÇâ)
¨Î right bearing : ¹®ÀÚ ¿À¸¥ÂÊÀÇ ¹®ÀÚ ¿øÁ¡À¸·Î ºÎÅÍÀÇ °Å¸®
(XÃà Ç÷¯½º ¹æÇâ)
¨Ï ascent : ¹®ÀÚ »ó´ÜÀÇ ¹®ÀÚ ¿øÁ¡À¸·Î ºÎÅÍÀÇ °Å¸® (yÃà Ç÷¯½º ¹æÇâ)
¨Ð dscent : ¹®ÀÚ ÇÏ´ÜÀÇ ¹®ÀÚ ¿øÁ¡À¸·Î ºÎÅÍÀÇ °Å¸® (yÃà Ç÷¯½º ¹æÇâ)
¨Ñ width : ¹®ÀÚ °£°Ý (ÀÎÁ¢ÇÑ ¹®ÀÚÀÇ ¹®ÀÚ ¿øÁ¡°£ °Å¸®)
% xfd -fn cursor -center
o rgb
- % vi rgb.txt
40 ca 0a ==>Àº ÀÔ·Â ºÒ°¡´É ½ÊÁø¼ö·Î ¹Ù²ã¼ ÀÔ·Â
218 165 32 goldenrod
% rgb rgb < rgb.txt
o xmodmap
- grammer : º¯°æ½ÄÀ» °£´ÜÈ÷ ¼³¸íÇÔ
n : Key mappingÀ» ½ÇÁ¦·Î º¯°æÇÏÁö ¾Ê°í ±× º¯°æ Á¤º¸¸¦ Ç¥½ÃÇÔ
p[m] : ÇöÀç ¼ö½Ä KeyÀÇ mapping list¸¦ Ç¥ÁØÃâ·ÂÀ¸·Î Ç¥½ÃÇÔ (¼ö½ÄÅ°¸¸)
pk : ÇöÀçÀÇ Key mapping List¸¦ Ç¥ÁØÃâ·ÂÀ¸·Î Ç¥½ÃÇÔ (Keysym Á¤º¸º¸¿©ÁÜ)
pp : ÇöÀçÀÇ mouse ¹öÆ°ÀÇ mapping list¸¦ Ç¥ÁØÃâ·ÂÀ¸·Î Ç¥½ÃÇÔ
¿¹) xmodmap -e "pointer = 3 2 1 "
----------------------------------------------------------------
º¯ °æ ½Ä | ÀÇ ¹Ì
----------------------------------------------------------------
keycode KEYCODE=KEYSYM | Å° ½Éº¼À» Å° Äڵ忡 ÇÒ´çÇÔ
keysym KEYSYM=KEYSYM | Å° ½Éº¼À» ´Ù¸¥ Å° ½Éº¼¿¡ ġȯÇÔ
----------------------------------------------------------------
¡ß °øÅë ¿É¼Ç ¡ß
---------------------------------------------------------------------
-bd | ¸ÕÀú -sb(scroll bar)¸¦ ¼±ÅÃ. À©µµ¿ìÀÇ Å׵θ®»ö
-iconic | ±âµ¿½Ã¿¡ ¾ÆÀÌÄÜÀ¸·Î¼ Ç¥½Ã
-name | ¸®¼Ò½º °Ë»ö¿¡ »ç¿ëÇÏ´Â ¾îÇø®ÄÉÀÌ¼Ç ¸íÀ» ÁöÁ¤
-rv | ¹ÝȸÀü Ç¥½Ã
-title | ŸÀÌƲÀ» ÁöÁ¤
-display[host]:display[.screen]
---------------------------------------------------------------------
% rsh hyundai1 -n /usr/bin/X11/xload -display mymy:0 &
==>
-n ¿É¼ÇÀº rshÀÇ ÀÔ·ÂÀ» /dev/null·Î redirect½ÃÅ´
% vi .Xdefaults
ljsljs*background: red
% xterm -name ljsljs &
==>
»¡°£ ¹è°æ»öÀÇ À©µµ¿ì »ý±è
% xterm -xrm "*background: yellow"
==>
ÀÌ ¹æ¹ýÀº ¸®¼Ò½ºÈÀÏ¿¡¼ ÁöÁ¤ÇÒ¶§¿Í °°ÀÌ Ç¥±â¹æ¹ý¿¡¼ Äڸǵ带
½ÇÇàÇÒ¶§¿¡ ¸®¼Ò½ºÀÇ ÁöÁ¤ÀÌ °¡´É ¹Ýµå½Ã ¹®ÀÚ¿ µ¥ÀÌÅͷδ " " ·Î ÁöÁ¤
¡ß ¸®¼Ò½º ÁöÁ¤ °³¿ä ¡ß
o °¢ X Ŭ¶óÀ̾ðÆ®°¡ °¡Áø ¸®¼Ò½ºÀÇ °ªÀ» ÀÚ½ÅÀÌ ÁöÁ¤ÇÏ´Â ¹æ¹ýÀ¸·Î´Â ´ÙÀ½ÀÇ
3°¡Áö°¡ ÀÖ´Ù.
¨Í ¸®¼Ò½º ÈÀÏ Áß¿¡¼ ÁöÁ¤
¨Î X Ŭ¶óÀ̾ðÆ® ½ÇÇà½ÃÀÇ comand line optionÀ¸·Î ÁöÁ¤
¨Ï X ¼¹öÀÇ property(RESOURCE-MANAGER)¿¡ set ÇÔ
-------------------------------
| application*resource: value |
-------------------------------
¢Í ¸®¼Ò½º ÁöÁ¤¼³¸í
¨± application¿¡´Â ¼Ó¼ºÀ» º¯°æÇÏ°í ½ÍÀº XŬ¶óÀ̾ðÆ®ÀÇ ¾îÇø®ÄÉÀ̼Ǹí
(X Ŭ¶óÀ̾ðÆ®¸í), ¶Ç´Â ¾îÇø®ÄÉÀÌ¼Ç Å¬·¡½º¸í(X Ŭ¶óÀ̾ðÆ® Ŭ·¡½º¸í)À»
ÁöÁ¤ÇÑ´Ù. ´ë°³, ¾îÇø®ÄÉÀÌ¼Ç Å¬·¡½º¸í ÂÊÀ» ¸¹ÀÌ »ç¿ëÇÑ´Ù.
¨² ¾îÇø®ÄÉÀ̼ǸíÀº Åë»ó, X Ŭ¶óÀ̾ðÆ®ÀÇ ÇÁ·Î±×·¥¸íÀÌÁö¸¸, ½ÇÇà½ÃÀÇ -name
(¶Ç´Â -n)¿É¼ÇÀ¸·Î º¯°æÇÒ ¼öµµ ÀÖ´Ù. ¾îÇø®ÄÉÀÌ¼Ç Å¬·¡½º¸íÀº
X Ŭ¶óÀ̾ðÆ® ¸¶´Ù ¹Ì¸® Á¤ÇÏ¿©Á® ÀÖ°í º¯°æÇÒ ¼ö °¡ ¾ø´Ù. ¾îÇø®ÄÉÀ̼Ç
Ŭ·¡½º¸íÀº ´ëºÎºÐÀÇ °æ¿ì ´ÙÀ½ÀÇ ±ÔÄ¢À¸·Î À̸§ÀÌ Á¤ÇØÁ® ÀÖÁö¸¸
¿¹¿Üµµ ÀÖ´Ù.
-------------<¾îÇø®ÄÉÀ̼Ç.Ŭ·¡½º¸íÀÇ ±ÔÄ¢>----------------------------------
| ¾îÇø®ÄÉÀ̼Ǹí(´ÜÁö, -name¿É¼ÇÀ¸·Î º¯°æÇÏÁö ¾ÊÀº°Í)ÀÇ ¼±µÎ ù¹ø° ¹®ÀÚ¸¦ |
| ´ë¹®ÀÚ·Î º¯°æÇÑ °Í. ´ÜÁö, ¼±µÎÀÇ Ã¹¹ø° ¹®ÀÚ°¡ "X'ÀÎ °æ¿ì´Â µÎ¹ø° ¹®ÀÚµµ |
| ´ë¹®ÀÚ·Î ÇÑ´Ù. |
-----------------------------------------------------------------------------
´ÙÀ½Àº ´ëÇ¥ÀûÀÎ ¾îÇø®ÄÉÀÌ¼Ç Å¬·¡½º ¸íÀÌ´Ù.
--------------- -----------------------
¾îÇø®ÄÉÀÌ¼Ç¸í ¾îÇø®ÄÉÀÌ¼Ç Å¬·¡½º¸í
--------------- -----------------------
xterm XTerm
xclock XClock
xload XLoad
mwm Mwm
¨³ ¾îÇø®ÄÉÀÌ¼Ç Å¬·¡½º¸íÀ¸·Î ¸®¼Ò½º ÁöÁ¤À» ÇÑ °æ¿ì¿¡´Â , ±× Ŭ·¡½º¿¡
¼ÓÇÏ´Â ¸ðµç ¾îÇø®ÄÉÀ̼Ç(¾Æ·¡ ±×¸²ÀÇ ¿¹¿¡¼´Âxterm1, xterm2, xterm3)
¿¡ ´ëÇÏ¿© ±× ¸®¼Ò½º¸¦ ÀÏ°ý ÁöÁ¤ÇÑ´Ù. ¾îÇø®ÄÉÀÌ¼Ç ¸íÀ¸·Î ¸®¼Ò½º¸¦
ÁöÁ¤ÇÑ °æ¿ì¿¡´Â, ¾îÇø®ÄÉÀ̼ǸíÀ» °¡Áø ÇÁ·Î±×·¥ÀÇ ¸®¼Ò½º¿¡ ´ëÇؼ¸¸
¸®¼Ò½º°¡ ÁöÁ¤µÈ´Ù.
-------------------------
| ¾îÇø®ÄÉÀ̼Ç.Ŭ·¡½º¸í |
| XTerm |
-------------------------
/ | \
/ | \
/ | \
/ | \
/ | \
/ | \
¾îÇø®ÄÉÀÌ¼Ç¸í ¾îÇø®ÄÉÀÌ¼Ç¸í ¾îÇø®ÄÉÀ̼Ǹí
xterm1 xterm2 xterm3
% vi .Xdefaults
Xterm*background: yellow
xterm1*foreground: red
xterm2*foreground: green
xterm3*foreground: blue
% xterm -name xterm1
% xterm -name xterm2
% xterm -name xterm3
¢Í ¸®¼Ò½º ÁöÁ¤À» À§ÇÑ ±×¿ÜÀÇ Ç¥±â¹æ¹ý
-----------------------------------------------------
| application*part*resource : value ¨ç |
| application*part1*part2*resource : value ¨è |
| *resource : value ¨é |
-----------------------------------------------------
¨ç ´Â ÇϳªÀÇ X Ŭ¶óÀ̾ðÆ®°¡ ¸î°³ÀÇ ºÎºÐÀ¸·Î ³ª´µ¾îÁ® ÀÖ°í ±× ºÎºÐ¸¶´Ù
°íÀ¯ÀÇ ¸®¼Ò½º°¡ Á¤ÀǵǾî ÀÖÀ» °æ¿ì »ç¿ëÇÔ
¨è ºÎºÐÀÇ ºÐÇÒÀÌ 2´Ü°è·Î µÇ¾î ÀÖÀ» °æ¿ì
¨é X Ŭ¶óÀ̾ðÆ®¸¦ Ưº°È÷ Á¤ÇÏÁö ¾Ê°í ¸ðµç Ŭ¶óÀ̾ðÆ®¿¡¼ °øÅëÀ¸·Î
¸®¼Ò½º¸¦ ÁöÁ¤ÇÏ°í ½ÍÀ» °æ¿ì¿¡ »ç¿ë
¢Í ¼¹öÃø¿¡¼ ¸®¼Ò½º¸¦ ÁöÁ¤ÇÒ·Á¸é ?
X ½Ã½ºÅÛ¿¡¼´Â ½á¹öÃø¿¡ ¸®¼Ò½º¸¦ ¼³Á¤ÇÑ ±â´ÉÀÌ ÁغñµÇ¾î ÀÖ´Ù.
ÀÌ °æ¿ì ½ÇÇàµÉ X Ŭ¶óÀ̾ðÆ®°¡ ³×Æ®¿öÅ©»óÀÇ ¾î¶² È£½ºÆ®»ó¿¡ À־
¸®¼Ò½º·Î¼´Â ÀÌ ½á¹öÃø¿¡¼ ¼³Á¤µÈ °ªÀÌ »ç¿ëµÇµµ·Ï µÇ¾îÀÖ´Ù.
½á¹öÃø¿¡¼ ¸®¼Ò½º¸¦ ¼³Á¤ÇÏ·Á¸é ¼¹öÃøÀÇ ·çÆ® À©µµ¿ì¿¡ ¸®ÅϵÈ
ÇÁ·ÎÆÛƼ(RESOURCE_MANAGER)¸¦ »ç¿ëÇÔ
ÇÁ·ÎÆÛƼ¶õ? Ŭ¶óÀ̾ðÆ®°£ÀÇ Ä¿¹Â´ÏÄÉÀ̼ÇÀ» À§ÇØ »ç¿ëµÇ´Â ½á¹öÃøÀÇ
¸Þ¸ð¸® ¿ë¿ªÀÌ´Ù.
ÀÌ ¸Þ¸ð¸®¿ë¿ª(ÇÁ·ÎÆÛƼ)¿¡ Ŭ¶óÀ̾ðÆ®°£ÀÇ °øÅëÀÇ °íÀ¯¸í(ÇÁ·ÎÆÛƼ¸í)À»
ºÙ¿© ³õÀ½¿¡ ÀÖ¾î¼ Å¬¶óÀ̾ðÆ®°£ÀÇ µ¥ÀÌÅÍÀÇ ÁÖ°í¹ÞÀ½ÀÌ °¡´ÉÇϵµ·Ï µÇ¾î
ÀÖ´Ù. ÀÌ ÇÁ·ÎÆÛƼ(RESOURCE_MANAGER)¿¡ ¹Ì¸® ¼³Á¤À» ÇسõÀ¸¸é X Ŭ¶óÀ̾ðÆ®
½ÇÇà½Ã¿¡ ±×°ÍÀÌ ÂüÁ¶µÇ ¼Ó¼ºÀÌ °áÁ¤µÊ
------------------
| xrdb [¿É¼Ç] |
------------------
-q(query) : ½á¹öÀÇ ÇÁ·ÎÆÛƼ RESOURCE_MANAGERÀÇ ÇöÀçÀÇ ¼³Á¤Ä¡¸¦ Ç¥½Ã
-l(load) filename : ÁöÁ¤ÇÑ ÈÀÏnameÁß¿¡ Á¤ÀÇÇÑ ¸®¼Ò½ºÁöÁ¤À» ÇÁ·ÎÆÛƼ
RESOURCE_MANAGER¿¡ ÀÛ¼ºÇÔ. ÈÀϾȿ¡ ÀÛ¼ºÇÒ ¸®¼Ò½ºÁöÁ¤ÀÇ Ç¥±â¹æ¹ýÀº
¸®¼Ò½º.ÈÀÏ°ú °°´Ù.
-m(merge) filename : ÁöÁ¤ÇÑ ÈÀÏÀº RESOURCE_MANAGER¿¡ Ãß°¡µÊ
°°Àº ¸®¼Ò½º¿¡ ´ëÇÑ °ªÀÇ ÁöÁ¤Àº overwriteµÊ
-r(remove) : RESOURCE_MANAGER¿¡ ¼¼Æ®µÇÀÖ´Â ¸®¼Ò½º¸¦ ÀüºÎ »èÁ¦
¡ß ¸®¼Ò½º ¿ì¼± ¼øÀ§ ¡ß
o X Ŭ¶óÀ̾ðÆ®ÀÇ ¸®¼Ò½º ¼³Á¤¹æ¹ý
¨ç ¸®¼Ò½º.ÈÀÏ¿¡ ÀÇÇÑ ¼³Á¤
¨è Ä¿¸Çµå ¿É¼Ç¿¡ ÀÇÇÑ ¼³Á¤
¨é serverÀÇ ÇÁ·ÎÆÛƼ RESOURCE_MANAGER¿¡ ÀÇÇÑ ¼³Á¤
¢Í xclock ÀÇ ¿¹¸¦ µé¾î
¨Í ¸í·É¾î¶óÀÎ
¨Î HOME/.Xdefaults
¨Ï HOME/XClock
¨Ð /usr/lib/X11/app-defaults/XClock
°¡Àå ¸ÕÀú ã´Â ¼ø¼´Â ¨Í > ¨Î > ¨Ï > ¨Ð
(¸¸¾à RESOURCE_MANAGER°¡ ¼³Á¤ÀÌ µÇÀÖÀ¸¸é HOME/.Xdefaults ´ë½Å ÂüÁ¶ÇÔ)
¡ß ¸®¼Ò½º °ª ¡ß
XTerm*geometry: 40x10-1-1 ==> 40ÀÚ¸® 10ÇàÀ¸·Î -1-1Àº Çȼ¿ ´ÜÀ§·Î ÁöÁ¤
XTerm*foreground: green
XTerm*background: yellow
XTerm*cursorColor: green
XTerm*pointerColor: blue
XTerm*pointerShape: hand2 ==> /usr/include/X11/cursorfont.h ÂüÁ¶
XTerm*scrollBar: true
XTerm*title: Small Term
XTerm*saveLines: 200
XTerm*reverseVideo: true ==> foreground,backgroundÀÇ »öÀ» ¿ªÀü½ÃÅ´
XTerm*internalBorder: 2
==> À©µµ¿ìÀÇ Å׵θ®¿Í ÅؽºÆ® ¿µ¿ª »çÀÌ ¸¶ÁøÀ» ÁöÁ¤
(cursor¿Í À©µµ¿ì Å׵θ® °£°Ý)
XClock*geometry: 300x300-1+1
==> 300x200Çȼ¿ÀÇ Å©±â·Î, ¿ìÃø »ó´Ü Äڳʿ¡ ÁöÁ¤
XClock*width: 300 ==> ¾Æ³¯·Î±× µðÆúÆ® °ªÀº 164x164 Çȼ¿
XClock*height: 200
xclock*analog: false ==> xclockÀ» »ç¿ëÇؼ µðÁöÅ» ½Ã°è¸¦ Ç¥½Ã
XClock*hands: red ==> ¹Ù´Ã»ö±òÀ» red·Î
XClock*highlight: blue ==> ¹Ù´ÃÅ׵θ® »ö±ò
XClock*update: 1
XClock*chime: true ==> ¸Å½Ã 00ºÐ°ú 30ºÐ¿¡ º§À» ¿ï¸²
XClock*padding: 20 ==> ¹®ÀÚÆÇ°ú ½Ã°èÀÇ ¿Ü°û¼± »çÀÌÀÇ °£°Ý (´ÜÀ§´Â Çȼ¿)
XLoad*background: green
XLoad*foreground: red
XLoad*scale: 3 ==> ¸ñ¼ºÀÇ ¼ö¸¦ ÁöÁ¤ (°£°ÝµîºÐ¼ö)
¡ß MWM ÀÇ ¼Ó¼º º¯°æ ¡ß
o MWMÀ» customizeÀ» Çϱâ À§ÇÑ µÎ°¡Áö file
(1) resource file
(2) configuration file
. menuÀÇ ¼³Á¤ . ¹öÆ° ¹ÙÀεùÀÇ ¼³Á¤ . Å° ¹ÙÀεùÀÇ ¼³Á¤
¢Í resource ÀÇ ÁöÁ¤À» ÇÏ·Á¸é ?
¨ç ºÎÇ°(component)º°·Î °ªÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ´Â °Í [COM]
¨è Ŭ¶óÀ̾ðÆ® º°·Î °ªÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ´Â °Í [CLI]
¨é ÀÏ·üÀûÀ¸·Î¸¸ ÁöÁ¤ÇÒ ¼ö ÀÖ´Â °Í [SYS]
¢Í ºÎÇ°(component)º°·Î resource°ªÀ» ÁöÁ¤
------------------------------------------
| Mwm*resource : value |
| Mwm*component*resource : value |
------------------------------------------
¢Ñ component¿¡ ÁöÁ¤ÇÒ ¼ö ÀÖ´Â °ªÀº ´ÙÀ½ 5°¡ÁöÀÓ
¨Í menu ¨Î icon ¨Ï client:
ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ °ªÀº °¢ Ŭ¶óÀ̾ðÆ®ÀÇ ¿ÜÃø¿¡ mwmÀÌ ºÎÂøÇÑ ÇÁ·¹ÀÓ
ºÎºÐ¿¡ ´ëÇؼ¸¸ À¯È¿ÇÔ
¨Ð client*title: ÁöÁ¤ÇÑ ¸®¼Ò½ºÀÇ °ªÀº ÇÁ·¹ÀÓ Áß¿¡¼ ƯÈ÷ ŸÀÌƲ
Ç¥½ÃºÎºÐ(Á¤È®ÇϰԴ ŸÀÌƲ Ç¥½ÃºÐ¿Ü¿¡ À©µµ¿ì ¸Þ´º ¹öÆ°,ÃÖ´ëÈ ¹öÆ°,
ÃÖ¼ÒÈ ¹öÆ°µµ Æ÷ÇÔ)¿¡ ´ëÇؼ¸¸ À¯È¿ÇÔ
¨Ñ feedback: feedbackwindow¶ó´Â °ÍÀº user°¡ ´ëȽÄÀ¸·Î window¸¦
Á¶ÀÛÇÒ ¶§ Á¶ÀÛ È®ÀÎÀ» À§ÇÑ mwmÀÌ messageÀ» Ç¥½ÃÇÑ windowÀÌ´Ù.
window size Ç¥½Ã¿ë window³ª window½Ã½ºÅÛÀ» refreshÇÒ ¶§,
mwmÀÌ È®ÀÎ ¸Þ¼¼Áö¸¦ Ç¥½ÃÇÏ´Â windowµîÀÌ ±× ¿¹ÀÓ
¢Ñ resource ¸í [COM]
----------------------------------------------------------
| background activeBackground |
| backgroundPixmap activeBackgroundPixmap |
| bottomShadowColor activeBottomShadowColor |
| bottomShadowPixmap activeBottomShadowPixmap |
| fontList activeForeground |
| foreground activeTopShadowColor |
| saveUnder activeTopShadowColor |
| topShadowColor |
| topShadowPixmap |
----------------------------------------------------------
¢Í Ŭ¶óÀ̾ðÆ® º°·Î °ªÀ» ÁöÁ¤ÇÏ´Â resource
------------------------------------------
| Mwm*resource : value |
| Mwm*client*resource : value |
------------------------------------------
¢Ñ client¿¡ ÁöÁ¤ÇÒ ¼ö ÀÖ´Â °ªÀº ´ÙÀ½ 3Á¾·ù
¨Í Ŭ¶óÀ̾ðÆ®(¶Ç´Â application¸í): ÁöÁ¤ÇÑ Æ¯Á¤ Ŭ¶óÀ̾ðÆ®¿¡ ´ëÇÏ¿©
resource°ªÀÌ ¼³Á¤µÇ¾î Áü
¨Î Ŭ¶óÀ̾ðÆ® Ŭ·¡½º¸í(¶Ç´Â application class¸í): ÁöÁ¤ÇÑ Å¬·¡½º¿¡
¼ÓÇÏ´Â ¸ðµç Ŭ¶óÀ̾ðÆ®¿¡ ´ëÇÏ¿© resource°ªÀÌ ¼³Á¤µÇ¾îÁü
¨Ï defaults: À̸§ÀÌ ¾ø´Â window¸¦ °¡Áø Ŭ¶óÀ̾ðÆ®¿¡ ´ëÇÏ¿©
resource°ªÀÌ ¼³Á¤µÇ¾îÁü
¢Ñ resource ¸í [CLI]
----------------------------------------------------------------
| clientDecoration matteBackground |
| clientFunctions matteBottomShadowColor |
| focusAutoRaise matteBottomShadwoPixmap |
| iconImage matteForeground |
| iconImageBackground matteTopShadowColor |
| iconImageBottomShadowColor matteTopShadowPixmap |
| iconImageForeground maximumClientSize |
| iconImageTopShadowColor useClientIcon |
| iconImageTopShadowPixmap windowMenu |
----------------------------------------------------------------
¢Í ÀÏ·üÀûÀ¸·Î¸¸ ÁöÁ¤°¡´ÉÇÑ resource
--------------------------------
| Mwm*resource : value |
--------------------------------
¸®¼Ò½º°ªÀÌ ½Ã½ºÅÛ Àüü¿¡¼ À¯È¿ÇÔ
¢Ñ resource ¸í
-----------------------------------------------------------------------
| autoKeyFocus autoRaiseDelay bitmapDirectory |
| buttonBindings cleanText clientAutoPlace |
| colormapFocusPolicy configFile deiconifyKeyFocus |
| doubleClickTime enforceKeyFocus fadeNormalIcon |
| frameBorderWidth iconAutoPlace iconBoxGeometry |
| xliconBoxName iconBoxTitle iconClick |
| iconDecoration iconImageMaximum iconImageMinimum |
| iconPlacement iconPlacementMargin interactivePlacement |
| keyBindings keyboardFocusPolicy limitResize |
| lowerOnIconify maximumMaximumSize moveThreshold |
| passButtons passSelectButtons positionIsFrame |
| positionOnScreen quitTimeout resizeBorderWidth |
| resizeCursors showFeedback startupKeyFocus |
| transientDecoration transientFunctions useIconBox |
| wMenuButtonClick wMenuButtonClick2 |
-----------------------------------------------------------------------
¡ß MWM ¸®¼Ò½º°ª ¼³Á¤ ¡ß
[COM]
Mwm*foreground: white
Mwm*background: black
Mwm*backgroundPixmap: 25_foreground ==> foreground 25% , background 75%
¿¹) slant_left, slant_right, horizontal-tile, vertical-title
Mwm*topShadowColor: red
Mwm*topShadowPixmap: 50_background
Mwm*bottomShadowColor: yellow
Mwm*bottomShadowPixmap: slant_right
Mwm*activeForeground: black
Mwm*activeBackground: white
Mwm*activeBackgroundPixmap: 25_foreground
Mwm*activeTopShadowColor: white
Mwm*activeBottomShadowPixmap: vertical-title
Mwm*activeBottomShadowColor: black
Mwm*activeBottomShadowPixmap: slant_left
Mwm*fontList: hdeng20
Mwm*icon*fontList: hdeng18
Mwm*saveUnder: true
==> save under¶ó´Â °ÍÀº serverÀÇ ±â´ÉÀ¸·Î½á ÁöÁ¤ÇÑ window¾Æ·¡¿¡
¼û°ÜÁ® ÀÖ´Â ºÎºÐ¿¡ ´ëÇÏ¿© ±× À̹ÌÁö¸¦ backing store¶ó°í ºÒ¸®´Â
¸Þ¸ð¸® ¿µ¿ª¿¡ º¸°üÇÏ¿© µÎ°í ³ëÃâ½Ã¿¡ ¼öº¹ÇÏ´Â °Í
[CLI]
Mwm*clientDecoration: -maximize ==> maximize¸¸ »©°í ³ª¸ÓÁö´Â ´Ù º¸¿©ÁÜ
¿¹) border, maximize, minimize, resize, menu, title, all ,none
Mwm*xclock*clientDecoration: title
Mwm*clientFunctions: -close ==> window menuÁß¿¡¼ closeÇ׸ñ¸¸ »èÁ¦ÇÔ
¿¹) close, maximize, minimize, move, resize, all, none
Mwm*XTerm*clientFunctions: -minimize
Mwm*matteWidth: 5 µð)0
Mwm*matteBackground: red
Mwm*matte*TopShadowColor: yellow
Mwm*matte*BottomShadowColor: thistle
Mwm*iconImage: /usr/include/X11/bitmaps/Is
Mwm*XTerm*iconImage: /usr/include/X11/bitmaps/smis ==> xterm¸¸
Mwm*xclock*useClientIcon: true
==> »ç¿ëÀÚ ÁöÁ¤ ¾ÆÀÌÄÜ À̹ÌÁö¸¦ ÁöÁ¤ÇßÀ»Áö¶óµµ Ŭ¶óÀ̾ðÆ®°¡ Á¦°øÇÏ´Â
¾ÆÀÌÄÜ À̹ÌÁö »ç¿ë
Mwm*iconImageBackground: good
Mwm*iconImageForeground: red
Mwm*iconImageTopShadowColor: white
Mwm*iconImageBottomShadowColor: black
Mwm*iconImageTopShadowPixmap: 25_foreground
Mwm*iconImageBottomShadowPixmap: 75_foreground
[SYS]
Mwm*wMenuButtonClick: false µð)true
==> À©µµ¿ì ¸Þ´º ¹öÆ°À» ¸¶¿ì½º·Î Ŭ¸¯ÇÒ¶§ À©µµ¿ì ¸Þ´ºÀÇ º¸Á¸¿©ºÎ
Mwm*wMenuButtonClick2: true µð)true ==> close¿©ºÎ
Mwm*frameBorderWidth: 10 µð)5Çȼ¿
==> Á¾·á¸Þ´º½Ã ³ªÅ¸³ª´Â À©µµ¿ì»óÀÇ ÆøÀ» ³ªÅ¸³¿
Mwm*resizeBorderWidth: 20 µð)10Çȼ¿ ==> À©µµ¿ìÀÇ ¸®»çÀÌÁîÀÇ Æø
Mwm*resizeCursors: false µð)true
==> ¸®»çÀÌÁî º¸´õÀÇ Çü»óÀ¸·Î º¯°æÇÒÁöÀÇ ¿©ºÎ
Mwm*bitmapDirectory: /usr/include/X11/bitmaps
Mwm*iconImageMaximum: 60x50 ==> »óÇÑÀ» Æø 60Çȼ¿, ³ôÀÌ 50Çȼ¿
Mwm*iconImageMinimum: 20x20 ==> ÇÏÇÑÀ» Æø 20Çȼ¿, ³ôÀÌ 20Çȼ¿
Mwm*iconDecoration: image ==> À̹ÌÁö¸¸ Ç¥½Ã
¿¹) label, image, activelabel(¾ÆÀÌÄÜÀÌ ¾×ƼºêÀ϶§´Â ¶óº§À» Ç¥½Ã)
Mwm*fadeNormalIcon: true µð)true
==> windowÀÇ minimize buttonÀ» ´·¶À»¶§ icon boxÀÇ ÇØ´ç window¸¸
Á¤»óÀûÀ¸·Î º¸ÀÓ
Mwm*iconAutoPlace: true µð)true
==> °ªÀÌ trueÀ̸é mwmÀÌ iconÀÇ ¹èÄ¡¸¦ ÀÚµ¿ÀûÀ¸·Î °áÁ¤
Mwm*iconClick: true µð)true ==> ¾ÆÀÌÄÜÀ» ¸¶¿ì½º·Î Ŭ¸¯ ÇßÀ»
Mwm*useIconBox: true
Mwm*iconBoxGeometry: 10x1 µð)6x1+0-0 ==> ´ÜÀ§°¡ icon¼ö
Mwm*iconBoxTitle: Tools
Mwm*iconBoxName: iconbox µð)iconbox
==> ¾ÆÀÌÄܹڽºÀÇ resource¸¦ °Ë»öÇÏ´Â µ¥ »ç¿ë
Mwm*maximumMaximumSize: 1280x1024
Mwm*maximumClientSize: 60x50
==> textÇ¥½Ã¿ëÀÇ Å¬¶óÀ̾ðÆ®¿¡ ÇÑÇØ 1ÇàÀÇ ¹®ÀÚ¼öxÇà¼ö·Î µÊ
À©µµ¿ì Å©±â°¡ °íÁ¤ÀÌ µÇ¾î Å©±â º¯È¯ÀÌ ¾ÈµÊ
Mwm*interactivePlacement: true ==> Æ÷ÀÎÅÍ·Î ÃʱâÀ§Ä¡¸¦ ÁöÁ¤ÀÏ°æ¿ì true
Mwm*iconPlacement: top right ==> ¿À¸¥ÂÊ À§·ÎºÎÅÍ ¾Æ·¡·Î ³ª¿
(ÀüÁ¦Á¶°Ç: Mwm*useIconBox: false)
¿¹)left,right[top] left,right[bottom], [top]left,right,
[bottom]left,right
Mwm*iconPlacementMargin: 5 ´ÜÀ§´Â Çȼ¿
==> ȸ鳡ºÎÅÍ ¾ÆÀÌÄܱîÁöÀÇ °Å¸®¸¦ 5Çȼ¿·Î ¼³Á¤
Mwm*keyboardFocusPolicy: pointer
==> À©µµ¿ì¶Ç´Â À©µµ¿ì ÇÁ·¹ÀÓ»ó¿¡ Æ÷ÀÎÅÍ°¡ ÀÖÀ¸¸é ¾×ƼºêµÊ
¿¹) explicit ==> ¹öÆ° 1ÀÌ ´·¶À»¶§
Mwm*focusAutoRaise: false
==> ¾×Ƽºê À©µµ¿ì°¡ º¯ÇÏ¿©µµ ½ºÅà ¿À´õ¸¦ º¯°æÇÏÁö ¾ÊÀ½
true
==> ¾×Ƽºê À©µµ¿ì¸¦ Ç×»ó ½ºÅÃÀÇ ÃÖ»óÀ§·Î ÇÔ
Mwm*autoKeyFocus: true
==> Æ÷Ä¿½º À©µµ¿ì°¡ ¼Ò¸êµÇ¾úÀ» ¶§, ¶Ç´Â ¾ÆÀÌÄÜȵǾúÀ» ¶§ ±× À©µµ¿ìÀÇ
¹Ù·Î ÀÌÀü¿¡ Æ÷Ä¿½º µÇ¾îÁø À©µµ¿ì¸¦ ¿Å±æÁöÀÇ ¿©ºÎ¸¦ °áÁ¤
trueÀÌ¸é ¹Ù·Î ÀüÀÇ À©µµ¿ì¿¡ Æ÷Ä¿½º°¡ ¿Å°ÜÁü
(ÀüÁ¦Á¶°Ç: Mwm*keyboardFocusPolicy: explicit)
Mwm*autoRaiseDelay: 500 µð)500ms ==> active°¡ µÇ´Â ½Ã°£
Mwm*startupKeyFocus: false µð)ture
==> À©µµ¿ì°¡ mapµÇ¾îÁ³À»¶§ mwmÀÌ ±× À©µµ¿ì¸¦ ÀÚµ¿ÀûÀ¸·Î
Æ÷Ä¿½ºÇÒÁöÀÇ ¿©ºÎ¸¦ °áÁ¤ÇÔ
¡ß À©µµ¿ì ¸Þ´ÏÀúÀÇ ¸Þ´º Á¤ÀÇ ¡ß
¢Ñ --------------------------------------------------------
| Menu MenuName |
| { |
| selection [mnemonic][acclerator]function[argument] |
| ... |
| } |
--------------------------------------------------------
mnemonic˼
-------------------------------------
| [modifier-name] key-name |
-------------------------------------
Menu DefaultWindowMenu ȤÀº Menu MyWindowMenu
{
"MyTool" f.menu MyTool
no-label f.separator
"ÀÌÀü »óÅ·Î" AltF5 f.restore
¿Å±â±â AltF7 f.move
"Å©±â ¹Ù²Ù±â" AltF8 f.resize
"°¡Àå ÀÛ°Ô" AltF9 f.minimize
"°¡Àå Å©°Ô" AltF10 f.maximize
µÚ·Î AltF3 f.lower
no-label f.separator
´Ý±â AltF4 f.kill
}
Mwm*windowMenu: MyWindowMenu ·Î Á¤ÀÇÇÒ ¼ö ÀÖÀ½
¢Ñ ------------------------------------------------------
| Buttons SetName |
| { |
| button context function [argument] |
| ... |
| } |
------------------------------------------------------
button˼
------------------------------------------
| [modifier-name] |
------------------------------------------
Buttons DefaultButtonBindings ȤÀº Buttons MyButtonBindings
{
icon|frame f.raise
icon|frame f.post_wmenu
! root f.menu DefaultRootMenu
root f.menu LeeRootFirstMenu
root f.menu LeeRootSecondMenu
root f.menu LeeRootThirdMenu
}
Mwm*buttonBindings:MyButtonBindings
¢Ñ ---------------------------------------------------
| Key Setname |
| { |
| Key context function [argument] |
| ... |
| } |
---------------------------------------------------
key´Â
-------------------------------------
| [modifier-name]key-name |
-------------------------------------
Keys DefaultKeyBindings ȤÀº MyKeyBindings
{
ShiftEscape window|icon f.post_wmenu
Altspace window|icon f.post_wmenu
AltTab root|icon|window f.next_key
Alt ShiftTab root|icon|window f.prev_key
AltEscape root|icon|window f.circle_down
Alt ShiftEscape root|icon|window f.circle_up
Alt Shift Ctrlexclam root|icon|window f.set_behavior
AltF6 window f.next_key transient
Alt ShiftF6 window f.prev_key transient
ShiftF10 icon f.post_wmenu
Alt ShiftDelete root|icon|window f.restart
Pause root|icon|window f.exec "xterm -bg black -fg white&"
}
Mwm*KeyBindings: MyKeyBindings
Revision History
ÀÛ¼ºÀÏÀÚ : 96.10.15
ÀÛ¼ºÀÚ : ÀÌÁø¼ö