wmaker: Added 'const' attribute to function 'ShrinkString'
[wmaker-crm.git] / WindowMaker / menu.ko
blob8d4d0b892847d44506c554961ac7af255a46c258
1 /*
2  * Windowmaker를 위한 루트 메뉴 정의 
3  *
4  * 사용법: 
5  *
6  * <Title> [SHORTCUT <Shortcut>] <Command> <Parameters>
7  *
8  * <Title> 은 타이틀로 사용되는 문자열이다. 만일 문자열 가운데 공백이 존재
9  *         한다면 반드시 따옴표 "로 묶어야 한다.
10  *
11  * SHORTCUT은 각 항목에 대한 단축 글쇠를 지정하는 명령이다. <Shortcut>의
12  * 문법은 $HOME/GNUstep/Defaults/WindowMaker의 RootMenuKey나 MiniaturizeKey
13  * 와 같은 단축 글쇠 설정 옵션과 같다.
14  *
15  * <Command> 사용가능한 명령어들
16  *      MENU - (하부)메뉴 정의를 시작한다.
17  *      END  - (하부)메뉴 정의를 마친다. 
18  *      OPEN_MENU - 파일이나 파이프 혹은 디렉토리 내용으로 부터 메뉴를 열고
19  *                  명령어를 실행한다.
20  *      WORKSPACE_MENU - 작업공간 제어에 관한 하부 메뉴를 추가한다.
21  *      EXEC <program> - 외부 프로그램을 실행한다. 
22  *      SHEXEC <command> - 쉘 명령을 실행한다. (예제: gimp > /dev/null)
23  *      EXIT - 윈도우 매니저를 종료시킨다. 
24  *      RESTART [<window manager>] - Windowmaker를 다시시작하거나 다른 윈도우
25  *                                   관리자를 실행시킨다.
26  *      REFRESH - 화면을 다시 그린다.
27  *      ARRANGE_ICONS - 작업공간의 아이콘들을 정렬한다.
28  *      SHUTDOWN - 모든 클라이언트를 종료한다. (그리고 X 윈도우 세션을 닫는다)
29  *      SHOW_ALL - 워크스페이스에 모든 창을 숨김 해제한다.
30  *      HIDE_OTHERS - 현재 활성화된 창(혹은 가장 마지막에 포커스를 가진
31  *                    창)을 제외한 모든 창을 숨긴다.
32  *      SAVE_SESSION - 데스크탑의 현재 상태를 저장한다. 이때 저장되는 것은
33  *                     실행중인 모든 프로그램 그리고 그 것들의 정보들(크기,
34  *                     화면상의 위치, 작업공간 번호, 그것들이 실행된 dock이나
35  *                     클립 그리고 프로그램이 아이콘화되었는지 shade 형태
36  *                     인지 혹은 숨겨졌는지의 여부이다. 또한 사용자가 현재
37  *                     작업중인 워크스페이스도 저장된다. 이 모든 정보들은 
38  *                     또다른 SAVE_SESSION이나 CLEAR_SEEION이 사용되기 전까지 
39  *                     매번 윈도우메이커가 실행될 때마다 복원된다. 만일 
40  *                     SaveSession OnExit = Yes; 로 설정되어 있으면 매번 윈도우
41  *                     메이커가 종료될 때마다 자동적으로 세션의 내용을 저장하고
42  *                     SAVE_SESSION 이나 CLEAR_SESSOIN 값은 무시된다. 
43  *      CLEAR_SESSION - 이미 정장된 세션을 지운다. 이것은 SaveSessionOnExit가 
44  *                      참인 경우에 효과를 미치지 않는다. 
45  *      INFO - 정보 패널을 보여준다.
46  *
47  * OPEN_MENU syntax:
48  * OPEN_MENU 문법:
49  *   1. 파일 메뉴 다루기
50  *      // 올바른 메뉴 파일을 포함한 file.menu를 열고 현재 위치에 삽입한다.
51  *      OPEN_MENU file.menu
52  *   2. Pipe menu 다루기.
53  *      // 명령어를 열고 메뉴를 구성하는데 표준 출력으로 사용한다.
54  *      // 명령어의 출력은 반드시 올바른 메뉴 기술자(descriptor)여야 한다.
55  *      // '|' 와 명령어사이의 공백은 사용자의 선택사항이다.
56  *      OPEN_MENU | command
57  *   3. 디렉토리 다루기.
58  *      // 하나 혹은 그 이상의 디렉토리를 열고 그 안의 모든 부디렉토리와
59  *      // 실행 파일들을 알파벳 순으로 정렬한 메뉴를 구성한다.
60  *      OPEN_MENU /some/dir [/some/other/dir ...]
61  *   4. 디렉토리 다루기와 명령.
62  *      // 하나 혹은 그 이상의 디렉토리를 열고 모든 부디렉토리와 읽기 가능한
63  *      // 파일들을 알파벳순으로 정렬된 형태로 메뉴를 만들되, 지정된 명령어와
64  *      // 결합시킨다.
65  *      OPEN_MENU [options] /some/dir [/some/other/dir ...] WITH command -options
66  *              옵션: -noext 파일 이름의 확장자를 없애고 보여준다.
67  *
68  * <Parameters> 는 실행할 프로그램이다. 
69  *
70  * ** EXEC의 명령어 라인에 대한 옵션: 
71  * %s - 현재 선택된 내용으로 바꾼다.
72  * %a(title[,prompt]) - 입력 상자를 열고 사용자가 입력한 것으로
73  *                      메시지를 바꾼다.
74  * %w - 현재 활성화된 윈도우의 XID를 대체한다.
75  * %W - 현재 작업 공간의 번호로 대체한다.
76  *
77  * %나 "와 같은 특수 문자는 \ 문자를 앞에 써서 사용할 수 있다:
78  * 예: hanterm -T "\"Hello World\""
79  *
80  * 또한 \n과 같은 character escapes도 사용할 수 있다.
81  *
82  * 각각의 MENU 문은 반드시 END와 쌍을 이루어야 한다.
83  *
84  * 예제: 
85  *
86  * "Test" MENU
87  *      "XTerm" EXEC xterm
88  *              // /usr/openwin/bin 디렉토리의 내용으로 서브 메뉴를 만든다.
89  *      "XView apps" OPEN_MENU "/usr/openwin/bin"
90  *              // 다른 디렉토리에 있는 몇개의 X11 프로그램들
91  *      "X11 apps" OPEN_MENU /usr/X11/bin ~/bin/X11
92  *              // 바탕화면으로 사용할 그림을 지정한다.
93  *      "Background" OPEN_MENU ~/images /usr/share/images WITH wmsetbg -u -t
94  *              // 현재 항목에 style.menu를 삽입한다.
95  *      "Style" OPEN_MENU style.menu
96  * "Test" END
97  */
99 #include "wmmacros"
101 "윈도우메이커" MENU
102         "정    보" MENU
103                 "정보 패널" INFO_PANEL
104                 "저작권 정보" LEGAL_PANEL
105                 "시스템 로드" SHEXEC xosview || xload
106                 "매뉴얼 찾기" EXEC xman
107                 "프로세스목록" EXEC xterm -e top
108         "정    보" END
109         "한    텀" SHORTCUT SHIFT+META+H EXEC hanterm
110         "명 령 창" SHORTCUT SHIFT+META+C EXEC %a(실행할 명령:)
111         "입 력 기" SHORTCUT SHIFT+META+I SHEXEC ami || hanIM
112         "프로그램" MENU
113                 "터 미 널" MENU
114                         "한    텀" EXEC hanterm
115                         "하얀한텀" SHORTCUT CONTROL+META+H EXEC hanterm -fg black -bg gray75
116                         "관 리 자" SHORTCUT SHIFT+META+R EXEC hanterm -T 관리자 -n 관리자 -name root -e sudo su -
117                         "엑 스 텀" SHEXEC nxterm || xterm
118                 "터 미 널" END
119                 "네트워크" MENU
120                         "모 질 라" SHORTCUT SHIFT+META+N EXEC netscape
121                         "유 즈 넷" EXEC hanterm -T 유즈넷 -n 유즈넷 -e slrn -C
122                         "이 메 일" EXEC hanterm -T 이메일 -n 이메일 -e mutt
123                         "나우누리" EXEC hanterm -T 나우누리 -n 나우누리 -e ztelnet nownuri.net
124                         "하 이 텔" EXEC hanterm -T 하이텔 -n 하이텔 -e ztelnet home.hitel.net
125                         "천 리 안" EXEC hanterm -T 천리안 -n 천리안 -e ztelnet chonllian.net
126                         "가    우" SHEXEC gau || gaui
127                 "네트워크" END 
128                 "편 집 기" MENU
129                         "VIM" EXEC hanterm -T VIM -n VIM -e vim
130                         "이맥스" EXEC emacs
131                         "피  코" EXEC hanterm -T 피코 -n 피코 -e pico
132                 "편 집 기" END
133                 "그 래 픽" MENU
134                         "XV" EXEC xv
135                         "GIMP" EXEC gimp
136                         "GQview" EXEC gqview
137                         "XPaint" EXEC xpaint
138                         "XFig" EXEC xfig
139                 "그 래 픽" END
140                 "도구모음" MENU
141                         "계 산 기" EXEC xcalc
142                         "창 속 성" SHEXEC xprop | xmessage -center -title 'xprop' -file -
143                         "글꼴보기" EXEC xfontsel
144                         "돋 보 기" EXEC xmag
145                         "컬 러 맵" EXEC xcmap
146                         "강제종료" EXEC xkill
147                         "클립보드" EXEC xclipboard
148                 "도구모음" END
149                 "멀티미디어" MENU
150                         "믹    서" SHEXEC xmixer || hanterm -T AuMIX -n AuMix -e aumix
151                         "MPEG 보기" EXEC mtv
152                         "MP3 연주기" SHEXEC xmms || x11amp
153                         "CD 연주기" EXEC xplaycd
154                 "멀티미디어" END
155         "프로그램" END
156         "작업공간" WORKSPACE_MENU
157         "창 관 리" MENU
158                 "다른창 숨김" HIDE_OTHERS
159                 "모두 보이기" SHOW_ALL
160                 "아이콘 정렬" ARRANGE_ICONS
161                 "화면정리" REFRESH
162                 "세션 저장" SAVE_SESSION
163                 "세션 지움" CLEAR_SESSION
164         "창 관 리" END
165         "작업환경" MENU
166                 "설    정" SHEXEC /usr/local/GNUstep/Applications/WPrefs.app/WPrefs || wmakerconf
167                 "테    마" OPEN_MENU -noext THEMES_DIR ~/GNUstep/Library/WindowMaker/Themes WITH setstyle
168                 "테마저장" EXEC getstyle -t $HOME/GNUstep/Library/WindowMaker/Themes/"%a(테마 이름,파일 이름을 입력하세요:)"
169                 "아이콘셋" OPEN_MENU -noext ICON_SETS_DIR ~/GNUstep/Library/WindowMaker/IconSets WITH seticons
170                 "아이콘셋저장" EXEC geticonset $HOME/GNUstep/Library/WindowMaker/IconSets/"%a(아이콘셋 이름,파일 이름을 입력하세요:)"
171 #if (DEPTH>8)
172                 "스 타 일" OPEN_MENU -noext STYLES_DIR ~/GNUstep/Library/WindowMaker/Styles WITH setstyle
173 #endif
174                 "배경화면" MENU
175                         "단    색" MENU
176                                 "Black" WS_BACK '(solid, black)'
177                                 "Blue"  WS_BACK '(solid, "#505075")'
178                                 "Indigo" WS_BACK '(solid, "#243e6c")'
179                                 "Bleumarine" WS_BACK '(solid, "#224477")'
180                                 "Purple" WS_BACK '(solid, "#554466")'
181                                 "Wheat"  WS_BACK '(solid, "wheat4")'
182                                 "Dark Gray"  WS_BACK '(solid, "#333340")'
183                                 "Wine" WS_BACK '(solid, "#400020")'
184                                 "색 지정" WS_BACK '(solid, "%a(배경색:)")'
185                         "단    색" END
186                         "그    림" MENU
187                                 "전체화면" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -s
188                                 "타일형식" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -t
189                                 "가 운 데" OPEN_MENU -noext BACKGROUNDS_DIR $HOME/GNUstep/Library/WindowMaker/Backgrounds WITH wmsetbg -u -e
190                         "그    림" END
191 #if (DEPTH>8)
192                         "그래디언트" MENU
193                                 "Flag" WS_BACK '(mdgradient, green, red, white, green)'
194                                 "Sky" WS_BACK '(vgradient, blue4, white)'
195                                 "Blue Shades" WS_BACK '(vgradient, "#7080a5", "#101020")'
196                                 "Indigo Shades" WS_BACK '(vgradient, "#746ebc", "#242e4c")'
197                                 "Purple Shades" WS_BACK '(vgradient, "#654c66", "#151426")'
198                                 "Wheat Shades" WS_BACK '(vgradient, "#a09060", "#302010")'
199                                 "Grey Shades" WS_BACK '(vgradient, "#636380", "#131318")'
200                                 "Wine Shades" WS_BACK '(vgradient, "#600040", "#180010")'
201                         "그래디언트" END
202 #endif
203                 "배경화면" END
204         "작업환경" END
205         "화면잠금" SHORTCUT SHIFT+META+L EXEC xlock -allowroot -usefirst -nice +20
206         "종    료" MENU
207                 "재 시 작" RESTART
208                 "재 시 작" MENU
209                         "BlackBox" RESTART blackbox
210                         "KDE" RESTART kwm
211                         "IceWM" RESTART icewm
212                         "AfterStep" RESTART afterstep
213                         "Enlightenment" RESTART enlightenment
214                         "FVWM2" RESTART fvwm2
215                 "재 시 작" END
216                 "종    료" EXIT
217                 "세션종료" SHUTDOWN
218         "종    료" END
219 "윈도우메이커" END