-
Notifications
You must be signed in to change notification settings - Fork 1
/
xrus.h
82 lines (69 loc) · 1.95 KB
/
xrus.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/*
xrus - keyboard switcher/indicator
Copyright (c) 1996-2000 Alexander V. Lukyanov
This is free software with no warranty.
See COPYING for details.
*/
/*__________________________________________________________________________
**
** File: xrus.h
**__________________________________________________________________________
*/
typedef struct
{
Boolean autolock;
String locker;
int timeout;
Boolean useBell;
String switchKeys;
String toRusKeys;
String toLatKeys;
String switchForOneKeys;
String alternateMappings;
String xmodmap;
int led;
String altMaps;
Boolean icon;
Boolean adjustModeButtons;
Boolean alwaysOnTop;
Boolean alwaysMapped;
Boolean capsLockEmu;
int capsLockLed;
int recheckTime;
Boolean noFork;
Boolean wm_icon;
Boolean wmaker_icon;
String xmodmap_program;
String title0;
String title1;
Boolean per_window_state;
String titlePerWindow0;
String titlePerWindow1;
Boolean occupyAllDesks;
String keylog_file;
} XrusRec;
extern XrusRec AppData;
extern char DefaultLocker[];
extern char DefaultSwitchKeys[];
extern char DefaultToLatKeys[];
extern char DefaultToRusKeys[];
extern char DefaultSwitchForOneKeys[];
extern Display *disp;
extern Atom wm_delete_window;
extern XtAppContext app_context;
#define StartArgs() count=0
#define AddArg(name,val) (XtSetArg(args[count],(name),(val)),++count)
extern char *program;
extern Widget top_level;
extern Widget switch_button[2];
void SetAlarm();
void LockScreen();
void run_xmodmap(const char *file);
void load_map_delayed(const char *map);
void SwitchKeyboard(int);
void FixNewMode();
void cleanup(); /* should be called before DestroyApplicationContext */
extern struct KeyCombination SwitchKeys,ToLatKeys,ToRusKeys,SwitchForOneKeys;
extern int Mode,NewMode;
extern int count;
extern Arg args[];