/*
* Windowmaker¸¦ À§ÇÑ ·çÆ® ¸Þ´º Á¤ÀÇ
*
* »ç¿ë¹ý:
*
*
[SHORTCUT ]
*
* Àº ŸÀÌƲ·Î »ç¿ëµÇ´Â ¹®ÀÚ¿ÀÌ´Ù. ¸¸ÀÏ ¹®ÀÚ¿ °¡¿îµ¥ °ø¹éÀÌ Á¸Àç
* ÇÑ´Ù¸é ¹Ýµå½Ã µû¿ÈÇ¥ "·Î ¹¾î¾ß ÇÑ´Ù.
*
* SHORTCUTÀº °¢ Ç׸ñ¿¡ ´ëÇÑ ´ÜÃà ±Û¼è¸¦ ÁöÁ¤ÇÏ´Â ¸í·ÉÀÌ´Ù. ÀÇ
* ¹®¹ýÀº $HOME/GNUstep/Defaults/WindowMakerÀÇ RootMenuKey³ª MiniaturizeKey
* ¿Í °°Àº ´ÜÃà ±Û¼è ¼³Á¤ ¿É¼Ç°ú °°´Ù.
*
* »ç¿ë°¡´ÉÇÑ ¸í·É¾îµé
* MENU - (ÇϺÎ)¸Þ´º Á¤ÀǸ¦ ½ÃÀÛÇÑ´Ù.
* END - (ÇϺÎ)¸Þ´º Á¤ÀǸ¦ ¸¶Ä£´Ù.
* OPEN_MENU - ÆÄÀÏÀ̳ª ÆÄÀÌÇÁ ȤÀº µð·ºÅ丮 ³»¿ëÀ¸·Î ºÎÅÍ ¸Þ´º¸¦ ¿°í
* ¸í·É¾î¸¦ ½ÇÇàÇÑ´Ù.
* WORKSPACE_MENU - ÀÛ¾÷°ø°£ Á¦¾î¿¡ °üÇÑ ÇϺΠ¸Þ´º¸¦ Ãß°¡ÇÑ´Ù.
* EXEC - ¿ÜºÎ ÇÁ·Î±×·¥À» ½ÇÇàÇÑ´Ù.
* SHEXEC - ½© ¸í·ÉÀ» ½ÇÇàÇÑ´Ù. (¿¹Á¦: gimp > /dev/null)
* EXIT - À©µµ¿ì ¸Å´ÏÀú¸¦ Á¾·á½ÃŲ´Ù.
* RESTART [] - Windowmaker¸¦ ´Ù½Ã½ÃÀÛÇϰųª ´Ù¸¥ À©µµ¿ì
* °ü¸®ÀÚ¸¦ ½ÇÇà½ÃŲ´Ù.
* REFRESH - ȸéÀ» ´Ù½Ã ±×¸°´Ù.
* ARRANGE_ICONS - ÀÛ¾÷°ø°£ÀÇ ¾ÆÀÌÄܵéÀ» Á¤·ÄÇÑ´Ù.
* SHUTDOWN - ¸ðµç Ŭ¶óÀ̾ðÆ®¸¦ Á¾·áÇÑ´Ù. (±×¸®°í X À©µµ¿ì ¼¼¼ÇÀ» ´Ý´Â´Ù)
* SHOW_ALL - ¿öÅ©½ºÆäÀ̽º¿¡ ¸ðµç âÀ» ¼û±è ÇØÁ¦ÇÑ´Ù.
* HIDE_OTHERS - ÇöÀç È°¼ºÈµÈ â(ȤÀº °¡Àå ¸¶Áö¸·¿¡ Æ÷Ä¿½º¸¦ °¡Áø
* â)À» Á¦¿ÜÇÑ ¸ðµç âÀ» ¼û±ä´Ù.
* SAVE_SESSION - µ¥½ºÅ©Å¾ÀÇ ÇöÀç »óŸ¦ ÀúÀåÇÑ´Ù. À̶§ ÀúÀåµÇ´Â °ÍÀº
* ½ÇÇàÁßÀÎ ¸ðµç ÇÁ·Î±×·¥ ±×¸®°í ±× °ÍµéÀÇ Á¤º¸µé(Å©±â,
* ȸé»óÀÇ À§Ä¡, ÀÛ¾÷°ø°£ ¹øÈ£, ±×°ÍµéÀÌ ½ÇÇàµÈ dockÀ̳ª
* Ŭ¸³ ±×¸®°í ÇÁ·Î±×·¥ÀÌ ¾ÆÀÌÄÜȵǾú´ÂÁö shade ÇüÅÂ
* ÀÎÁö ȤÀº ¼û°ÜÁ³´ÂÁöÀÇ ¿©ºÎÀÌ´Ù. ¶ÇÇÑ »ç¿ëÀÚ°¡ ÇöÀç
* ÀÛ¾÷ÁßÀÎ ¿öÅ©½ºÆäÀ̽ºµµ ÀúÀåµÈ´Ù. ÀÌ ¸ðµç Á¤º¸µéÀº
* ¶Ç´Ù¸¥ SAVE_SESSIONÀ̳ª CLEAR_SEEIONÀÌ »ç¿ëµÇ±â Àü±îÁö
* ¸Å¹ø À©µµ¿ì¸ÞÀÌÄ¿°¡ ½ÇÇàµÉ ¶§¸¶´Ù º¹¿øµÈ´Ù. ¸¸ÀÏ
* SaveSession OnExit = Yes; ·Î ¼³Á¤µÇ¾î ÀÖÀ¸¸é ¸Å¹ø À©µµ¿ì
* ¸ÞÀÌÄ¿°¡ Á¾·áµÉ ¶§¸¶´Ù ÀÚµ¿ÀûÀ¸·Î ¼¼¼ÇÀÇ ³»¿ëÀ» ÀúÀåÇÏ°í
* SAVE_SESSION À̳ª CLEAR_SESSOIN °ªÀº ¹«½ÃµÈ´Ù.
* CLEAR_SESSION - ÀÌ¹Ì Á¤ÀåµÈ ¼¼¼ÇÀ» Áö¿î´Ù. ÀÌ°ÍÀº SaveSessionOnExit°¡
* ÂüÀÎ °æ¿ì¿¡ È¿°ú¸¦ ¹ÌÄ¡Áö ¾Ê´Â´Ù.
* INFO - Á¤º¸ ÆгÎÀ» º¸¿©ÁØ´Ù.
*
* OPEN_MENU syntax:
* OPEN_MENU ¹®¹ý:
* 1. ÆÄÀÏ ¸Þ´º ´Ù·ç±â
* // ¿Ã¹Ù¸¥ ¸Þ´º ÆÄÀÏÀ» Æ÷ÇÔÇÑ file.menu¸¦ ¿°í ÇöÀç À§Ä¡¿¡ »ðÀÔÇÑ´Ù.
* OPEN_MENU file.menu
* 2. Pipe menu ´Ù·ç±â.
* // ¸í·É¾î¸¦ ¿°í ¸Þ´º¸¦ ±¸¼ºÇϴµ¥ Ç¥ÁØ Ãâ·ÂÀ¸·Î »ç¿ëÇÑ´Ù.
* // ¸í·É¾îÀÇ Ãâ·ÂÀº ¹Ýµå½Ã ¿Ã¹Ù¸¥ ¸Þ´º ±â¼úÀÚ(descriptor)¿©¾ß ÇÑ´Ù.
* // '|' ¿Í ¸í·É¾î»çÀÌÀÇ °ø¹éÀº »ç¿ëÀÚÀÇ ¼±ÅûçÇ×ÀÌ´Ù.
* OPEN_MENU | command
* 3. µð·ºÅ丮 ´Ù·ç±â.
* // Çϳª ȤÀº ±× ÀÌ»óÀÇ µð·ºÅ丮¸¦ ¿°í ±× ¾ÈÀÇ ¸ðµç ºÎµð·ºÅ丮¿Í
* // ½ÇÇà ÆÄÀϵéÀ» ¾ËÆĺª ¼øÀ¸·Î Á¤·ÄÇÑ ¸Þ´º¸¦ ±¸¼ºÇÑ´Ù.
* OPEN_MENU /some/dir [/some/other/dir ...]
* 4. µð·ºÅ丮 ´Ù·ç±â¿Í ¸í·É.
* // Çϳª ȤÀº ±× ÀÌ»óÀÇ µð·ºÅ丮¸¦ ¿°í ¸ðµç ºÎµð·ºÅ丮¿Í Àб⠰¡´ÉÇÑ
* // ÆÄÀϵéÀ» ¾ËÆĺª¼øÀ¸·Î Á¤·ÄµÈ ÇüÅ·Π¸Þ´º¸¦ ¸¸µéµÇ, ÁöÁ¤µÈ ¸í·É¾î¿Í
* // °áÇÕ½ÃŲ´Ù.
* OPEN_MENU [options] /some/dir [/some/other/dir ...] WITH command -options
* ¿É¼Ç: -noext ÆÄÀÏ À̸§ÀÇ È®ÀåÀÚ¸¦ ¾ø¾Ö°í º¸¿©ÁØ´Ù.
*
* ´Â ½ÇÇàÇÒ ÇÁ·Î±×·¥ÀÌ´Ù.
*
* ** EXECÀÇ ¸í·É¾î ¶óÀο¡ ´ëÇÑ ¿É¼Ç:
* %s - ÇöÀç ¼±ÅÃµÈ ³»¿ëÀ¸·Î ¹Ù²Û´Ù.
* %a(title[,prompt]) - ÀÔ·Â »óÀÚ¸¦ ¿°í »ç¿ëÀÚ°¡ ÀÔ·ÂÇÑ °ÍÀ¸·Î
* ¸Þ½ÃÁö¸¦ ¹Ù²Û´Ù.
* %w - ÇöÀç È°¼ºÈµÈ À©µµ¿ìÀÇ XID¸¦ ´ëüÇÑ´Ù.
* %W - ÇöÀç ÀÛ¾÷ °ø°£ÀÇ ¹øÈ£·Î ´ëüÇÑ´Ù.
*
* %³ª "¿Í °°Àº Ư¼ö ¹®ÀÚ´Â \ ¹®ÀÚ¸¦ ¾Õ¿¡ ½á¼ »ç¿ëÇÒ ¼ö ÀÖ´Ù:
* ¿¹: hanterm -T "\"Hello World\""
*
* ¶ÇÇÑ \n°ú °°Àº character escapesµµ »ç¿ëÇÒ ¼ö ÀÖ´Ù.
*
* °¢°¢ÀÇ MENU ¹®Àº ¹Ýµå½Ã END¿Í ½ÖÀ» ÀÌ·ç¾î¾ß ÇÑ´Ù.
*
* ¿¹Á¦:
*
* "Test" MENU
* "XTerm" EXEC xterm
* // /usr/openwin/bin µð·ºÅ丮ÀÇ ³»¿ëÀ¸·Î ¼ºê ¸Þ´º¸¦ ¸¸µç´Ù.
* "XView apps" OPEN_MENU "/usr/openwin/bin"
* // ´Ù¸¥ µð·ºÅ丮¿¡ ÀÖ´Â ¸î°³ÀÇ X11 ÇÁ·Î±×·¥µé
* "X11 apps" OPEN_MENU /usr/X11/bin ~/bin/X11
* // ¹ÙÅÁȸéÀ¸·Î »ç¿ëÇÒ ±×¸²À» ÁöÁ¤ÇÑ´Ù.
* "Background" OPEN_MENU ~/images /usr/share/images WITH wmsetbg -u -t
* // ÇöÀç Ç׸ñ¿¡ style.menu¸¦ »ðÀÔÇÑ´Ù.
* "Style" OPEN_MENU style.menu
* "Test" END
*/
#include "wmmacros"
"À©µµ¿ì¸ÞÀÌÄ¿" MENU
"Á¤ º¸" MENU
"Á¤º¸ ÆгÎ" INFO_PANEL
"ÀúÀÛ±Ç Á¤º¸" LEGAL_PANEL
"½Ã½ºÅÛ ·Îµå" SHEXEC xosview || xload
"¸Å´º¾ó ã±â" EXEC xman
"ÇÁ·Î¼¼½º¸ñ·Ï" EXEC xterm -e top
"Á¤ º¸" END
"ÇÑ ÅÒ" SHORTCUT SHIFT+META+H EXEC hanterm
"¸í ·É â" SHORTCUT SHIFT+META+C EXEC %a(½ÇÇàÇÒ ¸í·É:)
"ÀÔ ·Â ±â" SHORTCUT SHIFT+META+I SHEXEC ami || hanIM
"ÇÁ·Î±×·¥" MENU
"ÅÍ ¹Ì ³Î" MENU
"ÇÑ ÅÒ" EXEC hanterm
"ÇϾáÇÑÅÒ" SHORTCUT CONTROL+META+H EXEC hanterm -fg black -bg gray75
"°ü ¸® ÀÚ" SHORTCUT SHIFT+META+R EXEC hanterm -T °ü¸®ÀÚ -n °ü¸®ÀÚ -name root -e sudo su -
"¿¢ ½º ÅÒ" SHEXEC nxterm || xterm
"ÅÍ ¹Ì ³Î" END
"³×Æ®¿öÅ©" MENU
"¸ð Áú ¶ó" SHORTCUT SHIFT+META+N EXEC netscape
"À¯ Áî ³Ý" EXEC hanterm -T À¯Áî³Ý -n À¯Áî³Ý -e slrn -C
"ÀÌ ¸Þ ÀÏ" EXEC hanterm -T À̸ÞÀÏ -n À̸ÞÀÏ -e mutt
"³ª¿ì´©¸®" EXEC hanterm -T ³ª¿ì´©¸® -n ³ª¿ì´©¸® -e ztelnet nownuri.net
"ÇÏ ÀÌ ÅÚ" EXEC hanterm -T ÇÏÀÌÅÚ -n ÇÏÀÌÅÚ -e ztelnet home.hitel.net
"õ ¸® ¾È" EXEC hanterm -T õ¸®¾È -n õ¸®¾È -e ztelnet chonllian.net
"°¡ ¿ì" SHEXEC gau || gaui
"³×Æ®¿öÅ©" END
"Æí Áý ±â" MENU
"VIM" EXEC hanterm -T VIM -n VIM -e vim
"À̸ƽº" EXEC emacs
"ÇÇ ÄÚ" EXEC hanterm -T ÇÇÄÚ -n ÇÇÄÚ -e pico
"Æí Áý ±â" END
"±× ·¡ ÇÈ" MENU
"XV" EXEC xv
"GIMP" EXEC gimp
"GQview" EXEC gqview
"XPaint" EXEC xpaint
"XFig" EXEC xfig
"±× ·¡ ÇÈ" END
"µµ±¸¸ðÀ½" MENU
"°è »ê ±â" EXEC xcalc
"â ¼Ó ¼º" SHEXEC xprop | xmessage -center -title 'xprop' -file -
"±Û²Ãº¸±â" EXEC xfontsel
"µ¸ º¸ ±â" EXEC xmag
"Äà ·¯ ¸Ê" EXEC xcmap
"°Á¦Á¾·á" EXEC xkill
"Ŭ¸³º¸µå" EXEC xclipboard
"µµ±¸¸ðÀ½" END
"¸ÖƼ¹Ìµð¾î" MENU
"¹Í ¼" SHEXEC xmixer || hanterm -T AuMIX -n AuMix -e aumix
"MPEG º¸±â" EXEC mtv
"MP3 ¿¬ÁÖ±â" SHEXEC xmms || x11amp
"CD ¿¬ÁÖ±â" EXEC xplaycd
"¸ÖƼ¹Ìµð¾î" END
"ÇÁ·Î±×·¥" END
"ÀÛ¾÷°ø°£" WORKSPACE_MENU
"â °ü ¸®" MENU
"´Ù¸¥Ã¢ ¼û±è" HIDE_OTHERS
"¸ðµÎ º¸À̱â" SHOW_ALL
"¾ÆÀÌÄÜ Á¤·Ä" ARRANGE_ICONS
"ȸéÁ¤¸®" REFRESH
"¼¼¼Ç ÀúÀå" SAVE_SESSION
"¼¼¼Ç Áö¿ò" CLEAR_SESSION
"â °ü ¸®" END
"ÀÛ¾÷ȯ°æ" MENU
"¼³ Á¤" SHEXEC /usr/pkg/GNUstep/Apps/WPrefs.app/WPrefs || wmakerconf
"Å× ¸¶" OPEN_MENU -noext THEMES_DIR ~/GNUstep/Library/WindowMaker/Themes WITH setstyle
"Å׸¶ÀúÀå" EXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(Å׸¶ À̸§,ÆÄÀÏ À̸§À» ÀÔ·ÂÇϼ¼¿ä:)"
"¾ÆÀÌÄܼÂ" OPEN_MENU -noext ICON_SETS_DIR ~/GNUstep/Library/WindowMaker/IconSets WITH seticons
"¾ÆÀÌÄܼÂÀúÀå" EXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(¾ÆÀÌÄܼ À̸§,ÆÄÀÏ À̸§À» ÀÔ·ÂÇϼ¼¿ä:)"
#if (DEPTH>8)
"½º Ÿ ÀÏ" OPEN_MENU -noext STYLES_DIR ~/GNUstep/Library/WindowMaker/Styles WITH setstyle
#endif
"¹è°æȸé" MENU
"´Ü »ö" MENU
"Black" WS_BACK '(solid, black)'
"Blue" WS_BACK '(solid, "#505075")'
"Indigo" WS_BACK '(solid, "#243e6c")'
"Bleumarine" WS_BACK '(solid, "#224477")'
"Purple" WS_BACK '(solid, "#554466")'
"Wheat" WS_BACK '(solid, "wheat4")'
"Dark Gray" WS_BACK '(solid, "#333340")'
"Wine" WS_BACK '(solid, "#400020")'
"»ö ÁöÁ¤" WS_BACK '(solid, "%a(¹è°æ»ö:)")'
"´Ü »ö" END
"±× ¸²" MENU
"Àüüȸé" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -s
"ŸÀÏÇü½Ä" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
"°¡ ¿î µ¥" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -e
"±× ¸²" END
#if (DEPTH>8)
"±×·¡µð¾ðÆ®" MENU
"Flag" WS_BACK '(mdgradient, green, red, white, green)'
"Sky" WS_BACK '(vgradient, blue4, white)'
"Blue Shades" WS_BACK '(vgradient, "#7080a5", "#101020")'
"Indigo Shades" WS_BACK '(vgradient, "#746ebc", "#242e4c")'
"Purple Shades" WS_BACK '(vgradient, "#654c66", "#151426")'
"Wheat Shades" WS_BACK '(vgradient, "#a09060", "#302010")'
"Grey Shades" WS_BACK '(vgradient, "#636380", "#131318")'
"Wine Shades" WS_BACK '(vgradient, "#600040", "#180010")'
"±×·¡µð¾ðÆ®" END
#endif
"¹è°æȸé" END
"ÀÛ¾÷ȯ°æ" END
"ȸéÀá±Ý" SHORTCUT SHIFT+META+L EXEC xlock -allowroot -usefirst -nice +20
"Á¾ ·á" MENU
"Àç ½Ã ÀÛ" RESTART
"Àç ½Ã ÀÛ" MENU
"BlackBox" RESTART blackbox
"KDE" RESTART kwm
"IceWM" RESTART icewm
"AfterStep" RESTART afterstep
"Enlightenment" RESTART enlightenment
"FVWM2" RESTART fvwm2
"Àç ½Ã ÀÛ" END
"Á¾ ·á" EXIT
"¼¼¼ÇÁ¾·á" SHUTDOWN
"Á¾ ·á" END
"À©µµ¿ì¸ÞÀÌÄ¿" END