added shortcut to switch screens
[wmaker-crm.git] / src / keybind.h
blob60e4ff8b9a5112aa548aac390332b6d79b9e34f1
1 /*
2 * Window Maker window manager
4 * Copyright (c) 1997, 1998 Alfredo K. Kojima
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 * USA.
24 /* anywhere */
25 #define WKBD_ROOTMENU 0
26 #define WKBD_WINDOWMENU 1
27 #define WKBD_WINDOWLIST 2
28 /* window */
29 #define WKBD_MINIATURIZE 3
30 #define WKBD_HIDE 4
31 #define WKBD_MAXIMIZE 5
32 #define WKBD_VMAXIMIZE 6
33 #define WKBD_SELECT 7
34 /* Clip */
35 #define WKBD_CLIPLOWER 8
36 #define WKBD_CLIPRAISE 9
37 #define WKBD_CLIPRAISELOWER 10
38 /* window */
39 #define WKBD_RAISE 11
40 #define WKBD_LOWER 12
41 #define WKBD_RAISELOWER 13
42 #define WKBD_MOVERESIZE 14
43 #define WKBD_SHADE 15
44 /* window, menu */
45 #define WKBD_CLOSE 16
46 /* window */
47 #define WKBD_FOCUSNEXT 17
48 #define WKBD_FOCUSPREV 18
50 #define WKBD_WORKSPACE1 20
51 #define WKBD_WORKSPACE2 21
52 #define WKBD_WORKSPACE3 22
53 #define WKBD_WORKSPACE4 23
54 #define WKBD_WORKSPACE5 24
55 #define WKBD_WORKSPACE6 25
56 #define WKBD_WORKSPACE7 26
57 #define WKBD_WORKSPACE8 27
58 #define WKBD_WORKSPACE9 28
59 #define WKBD_WORKSPACE10 29
60 #define WKBD_NEXTWORKSPACE 30
61 #define WKBD_PREVWORKSPACE 31
62 #define WKBD_NEXTWSLAYER 32
63 #define WKBD_PREVWSLAYER 33
65 /* window shortcuts */
66 #define WKBD_WINDOW1 34
67 #define WKBD_WINDOW2 35
68 #define WKBD_WINDOW3 36
69 #define WKBD_WINDOW4 37
70 #define WKBD_WINDOW5 38
71 #define WKBD_WINDOW6 39
72 #define WKBD_WINDOW7 40
73 #define WKBD_WINDOW8 41
74 #define WKBD_WINDOW9 42
75 #define WKBD_WINDOW10 43
77 #define WKBD_SWITCH_SCREEN 44
79 #ifdef KEEP_XKB_LOCK_STATUS
80 # define WKBD_TOGGLE 45
81 # define WKBD_LAST 46
82 #else
83 # define WKBD_LAST 45
84 #endif /* KEEP_XKB_LOCK_STATUS */
87 typedef struct WShortKey {
88 unsigned int modifier;
89 KeyCode keycode;
90 } WShortKey;
92 void wKeyboardInitialize();