libxdo
|
00001 /* xdo utility pieces 00002 * 00003 * $Id$ 00004 */ 00005 00006 #ifndef _XDO_UTIL_H_ 00007 #define _XDO_UTIL_H_ 00008 00009 #include "xdo.h" 00010 00011 /* human to Keysym string mapping */ 00012 static const char *symbol_map[] = { 00013 "alt", "Alt_L", 00014 "ctrl", "Control_L", 00015 "control", "Control_L", 00016 "meta", "Meta_L", 00017 "super", "Super_L", 00018 "shift", "Shift_L", 00019 NULL, NULL, 00020 }; 00021 00022 static const keysym_charmap_t keysym_charmap[] = { 00023 { "Return", '\n', }, 00024 { "ampersand", '&', }, 00025 { "apostrophe", '\'', }, 00026 { "asciicircum", '^', }, 00027 { "asciitilde", '~', }, 00028 { "asterisk", '*', }, 00029 { "at", '@', }, 00030 { "backslash", '\\', }, 00031 { "bar", '|', }, 00032 { "braceleft", '{', }, 00033 { "braceright", '}', }, 00034 { "bracketleft", '[', }, 00035 { "bracketright", ']', }, 00036 { "colon", ':', }, 00037 { "comma", ',', }, 00038 { "dollar", '$', }, 00039 { "equal", '=', }, 00040 { "exclam", '!', }, 00041 { "grave", '`', }, 00042 { "greater", '>', }, 00043 { "less", '<', }, 00044 { "minus", '-', }, 00045 { "numbersign", '#', }, 00046 { "parenleft", '(', }, 00047 { "parenright", ')', }, 00048 { "percent", '%', }, 00049 { "period", '.', }, 00050 { "plus", '+', }, 00051 { "question", '?', }, 00052 { "quotedbl", '"', }, 00053 { "semicolon", ';', }, 00054 { "slash", '/', }, 00055 { "space", ' ', }, 00056 { "tab", '\t', }, 00057 { "underscore", '_', }, 00058 { "Escape", '\x1b', }, 00059 { NULL, 0, }, 00060 }; 00061 00062 #endif /* ifndef _XDO_UTIL_H_ */