Update Serbian translation from master branch
[wmaker-crm.git] / src / keybind.h
bloba94785742312432e0fa257e87970fb83cbd3ecaa
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997-2003 Alfredo K. Kojima
5 * Copyright (c) 2014-2023 Window Maker Team
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef WMKEYBIND_H
23 #define WMKEYBIND_H
25 /* <X11/X.h> doesn't define these, even though XFree supports them */
26 #ifndef Button6
27 #define Button6 6
28 #endif
30 #ifndef Button7
31 #define Button7 7
32 #endif
34 #ifndef Button8
35 #define Button8 8
36 #endif
38 #ifndef Button9
39 #define Button9 9
40 #endif
42 enum {
43 /* anywhere */
44 WKBD_ROOTMENU,
45 WKBD_WINDOWMENU,
46 WKBD_WINDOWLIST,
48 /* window */
49 WKBD_MINIATURIZE,
50 WKBD_MINIMIZEALL,
51 WKBD_HIDE,
52 WKBD_HIDE_OTHERS,
53 WKBD_MAXIMIZE,
54 WKBD_VMAXIMIZE,
55 WKBD_HMAXIMIZE,
56 WKBD_LHMAXIMIZE,
57 WKBD_RHMAXIMIZE,
58 WKBD_THMAXIMIZE,
59 WKBD_BHMAXIMIZE,
60 WKBD_LTCMAXIMIZE,
61 WKBD_RTCMAXIMIZE,
62 WKBD_LBCMAXIMIZE,
63 WKBD_RBCMAXIMIZE,
64 WKBD_MAXIMUS,
65 WKBD_SELECT,
66 WKBD_KEEP_ON_TOP,
67 WKBD_KEEP_AT_BOTTOM,
68 WKBD_OMNIPRESENT,
69 WKBD_RAISE,
70 WKBD_LOWER,
71 WKBD_RAISELOWER,
72 WKBD_MOVERESIZE,
73 WKBD_SHADE,
74 WKBD_WORKSPACEMAP,
75 WKBD_FOCUSNEXT,
76 WKBD_FOCUSPREV,
77 WKBD_GROUPNEXT,
78 WKBD_GROUPPREV,
79 WKBD_CENTRAL,
81 /* window, menu */
82 WKBD_CLOSE,
84 /* Dock */
85 WKBD_DOCKRAISELOWER,
87 /* Clip */
88 WKBD_CLIPRAISELOWER,
90 /* workspace */
91 WKBD_WORKSPACE1,
92 WKBD_WORKSPACE2,
93 WKBD_WORKSPACE3,
94 WKBD_WORKSPACE4,
95 WKBD_WORKSPACE5,
96 WKBD_WORKSPACE6,
97 WKBD_WORKSPACE7,
98 WKBD_WORKSPACE8,
99 WKBD_WORKSPACE9,
100 WKBD_WORKSPACE10,
101 WKBD_NEXTWORKSPACE,
102 WKBD_PREVWORKSPACE,
103 WKBD_LASTWORKSPACE,
104 WKBD_NEXTWSLAYER,
105 WKBD_PREVWSLAYER,
107 /* move to workspace */
108 WKBD_MOVE_WORKSPACE1,
109 WKBD_MOVE_WORKSPACE2,
110 WKBD_MOVE_WORKSPACE3,
111 WKBD_MOVE_WORKSPACE4,
112 WKBD_MOVE_WORKSPACE5,
113 WKBD_MOVE_WORKSPACE6,
114 WKBD_MOVE_WORKSPACE7,
115 WKBD_MOVE_WORKSPACE8,
116 WKBD_MOVE_WORKSPACE9,
117 WKBD_MOVE_WORKSPACE10,
118 WKBD_MOVE_NEXTWORKSPACE,
119 WKBD_MOVE_PREVWORKSPACE,
120 WKBD_MOVE_LASTWORKSPACE,
121 WKBD_MOVE_NEXTWSLAYER,
122 WKBD_MOVE_PREVWSLAYER,
124 /* window shortcuts */
125 WKBD_WINDOW1,
126 WKBD_WINDOW2,
127 WKBD_WINDOW3,
128 WKBD_WINDOW4,
129 WKBD_WINDOW5,
130 WKBD_WINDOW6,
131 WKBD_WINDOW7,
132 WKBD_WINDOW8,
133 WKBD_WINDOW9,
134 WKBD_WINDOW10,
136 /* shortcuts to move window between heads */
137 WKBD_MOVE_12_TO_6_HEAD,
138 WKBD_MOVE_6_TO_12_HEAD,
140 /* launch a new instance of the active window */
141 WKBD_RELAUNCH,
143 /* screen */
144 WKBD_SWITCH_SCREEN,
146 /* open "run" dialog */
147 WKBD_RUN,
149 /* open "exit" dialog */
150 WKBD_EXIT,
152 /* screen print */
153 WKBD_PRINTS,
155 /* window print */
156 WKBD_PRINTW,
158 /* partial print */
159 WKBD_PRINTP,
161 #ifdef KEEP_XKB_LOCK_STATUS
162 WKBD_TOGGLE,
163 #endif
164 /* keep this last */
165 WKBD_LAST
168 typedef struct WShortKey {
169 unsigned int modifier;
170 KeyCode keycode;
171 } WShortKey;
173 /* ---[ Global Variables ]------------------------------------------------ */
175 extern WShortKey wKeyBindings[WKBD_LAST];
177 /* ---[ Functions ]------------------------------------------------------- */
179 void wKeyboardInitialize(void);
181 #endif /* WMKEYBIND_H */