Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 452730 | Differences between
and this patch

Collapse All | Expand All

(-)a/src/acpustatus.cc (+31 lines)
Lines 315-320 int CPUStatus::getAcpiTemp(char *tempbuf Link Here
315
        }
315
        }
316
        closedir(dir);
316
        closedir(dir);
317
    } 
317
    } 
318
    else if ((dir = opendir("/sys/class/thermal")) != NULL) {
319
        struct dirent *de;
320
321
        while ((de = readdir(dir)) != NULL) {
322
323
            int fd, seglen;
324
325
            if (strcmp(de->d_name, ".") == 0 || strcmp(de->d_name, "..") == 0)
326
                continue;
327
328
            sprintf(namebuf, "/sys/class/thermal/%s/temp", de->d_name);
329
            fd = open(namebuf, O_RDONLY);
330
            if (fd != -1) {
331
                int len = read(fd, buf, sizeof(buf) - 1);
332
                buf[len - 4] = '\0';
333
                seglen = strlen(buf) + 4;
334
                if (retbuflen + seglen >= buflen) {
335
                    retbuflen = -retbuflen;
336
                    close(fd);
337
                    closedir(dir);
338
                    break;
339
                }
340
                retbuflen += seglen;
341
                strcat(tempbuf, "  ");
342
                strncat(tempbuf, buf, seglen);
343
                strcat(tempbuf, " C");
344
                close(fd);
345
            }
346
        }
347
        closedir(dir);
348
    }
318
    return retbuflen;
349
    return retbuflen;
319
}
350
}
320
351
(-)a/src/default.h.orig (+502 lines)
Line 0 Link Here
1
#ifndef __DEFAULT_H
2
#define __DEFAULT_H
3
4
#include "yconfig.h"
5
6
/************************************************************************************************************************************************************/
7
XIV(int, focusMode,                             1)
8
XIV(bool, clickFocus,                           true)
9
XIV(bool, focusOnAppRaise,                      false)
10
XIV(bool, requestFocusOnAppRaise,               true)
11
XIV(bool, raiseOnFocus,                         true)
12
XIV(bool, focusOnClickClient,                   true)
13
XIV(bool, raiseOnClickClient,                   true)
14
XIV(bool, raiseOnClickButton,                   true)
15
XIV(bool, raiseOnClickFrame,                    true)
16
XIV(bool, raiseOnClickTitleBar,                 true)
17
XIV(bool, lowerOnClickWhenRaised,               false)
18
XIV(bool, passFirstClickToClient,               true)
19
XIV(bool, focusOnMap,                           true)
20
XIV(bool, mapInactiveOnTop,                     true)
21
XIV(bool, focusChangesWorkspace,                false)
22
XIV(bool, focusOnMapTransient,                  false)
23
XIV(bool, focusOnMapTransientActive,            true)
24
XIV(bool, focusRootWindow,                      false)
25
XIV(bool, pointerColormap,                      true)
26
XIV(bool, sizeMaximized,                        false)
27
XIV(bool, showMoveSizeStatus,                   true)
28
XIV(bool, workspaceSwitchStatus,                true)
29
XIV(bool, beepOnNewMail,                        false)
30
XIV(bool, warpPointer,                          false)
31
XIV(bool, warpPointerOnEdgeSwitch,              false)
32
XIV(bool, opaqueMove,                           true)
33
XIV(bool, opaqueResize,                         true)
34
XIV(bool, hideTitleBarWhenMaximized,            false)
35
XSV(const char *, winMenuItems,                 "rmsnxfhualyticw")
36
#ifdef CONFIG_TASKBAR
37
XIV(bool, showTaskBar,                          true)
38
XIV(bool, taskBarAtTop,                         false)
39
XIV(bool, taskBarKeepBelow,                     false)
40
XIV(bool, taskBarShowClock,                     true)
41
XIV(bool, taskBarShowApm,                       false)
42
XIV(bool, taskBarShowApmTime,                   true) // mschy
43
XIV(bool, taskBarShowApmGraph,                  true) // hatred
44
XIV(bool, taskBarShowMailboxStatus,             true)
45
XIV(bool, taskBarShowStartMenu,                 true)
46
XIV(bool, taskBarShowWindowListMenu,            true)
47
XIV(bool, taskBarShowWorkspaces,                true)
48
XIV(bool, taskBarShowWindows,                   true)
49
XIV(bool, taskBarShowShowDesktopButton,         true)
50
51
XIV(int, taskBarButtonWidthDivisor,             3)
52
#ifdef CONFIG_TRAY
53
XIV(bool, taskBarShowTray,                      true)
54
XIV(bool, trayShowAllWindows,                   true)
55
#endif
56
XIV(bool, taskBarShowTransientWindows,          true)
57
XIV(bool, taskBarShowAllWindows,                false)
58
XIV(bool, taskBarShowWindowIcons,               true)
59
XIV(bool, taskBarAutoHide,                      false)
60
XIV(bool, taskBarFullscreenAutoShow,            true)
61
XIV(bool, taskBarDoubleHeight,                  false)
62
XIV(bool, taskBarWorkspacesLeft,                true)
63
XIV(bool, pagerShowPreview,                     false)
64
XIV(bool, pagerShowWindowIcons,                 true)
65
XIV(bool, pagerShowMinimized,                   true)
66
XIV(bool, pagerShowBorders,                     true)
67
XIV(bool, pagerShowNumbers,                     true)
68
XIV(bool, taskBarShowCPUStatus,                 true)
69
XIV(bool, cpustatusShowRamUsage,                true)
70
XIV(bool, cpustatusShowSwapUsage,               true)
71
XIV(bool, cpustatusShowAcpiTemp,                true)
72
XIV(bool, cpustatusShowCpuFreq,                 true)
73
XIV(bool, taskBarShowNetStatus,                 true)
74
XIV(bool, taskBarLaunchOnSingleClick,           true)
75
XIV(bool, taskBarShowCollapseButton,            false)
76
#endif
77
XIV(bool, minimizeToDesktop,                    false)
78
XIV(bool, miniIconsPlaceHorizontal,             false)
79
XIV(bool, miniIconsRightToLeft,                 false)
80
XIV(bool, miniIconsBottomToTop,                 false)
81
XIV(bool, manualPlacement,                      false)
82
XIV(bool, smartPlacement,                       true)
83
XIV(bool, centerLarge,                          false)
84
XIV(bool, centerTransientsOnOwner,              true)
85
XIV(bool, autoRaise,                            false)
86
XIV(bool, delayPointerFocus,                    true)
87
XIV(bool, useMouseWheel,                        false)
88
XIV(bool, quickSwitch,                          true)
89
XIV(bool, quickSwitchToMinimized,               true)
90
XIV(bool, quickSwitchToHidden,                  true)
91
XIV(bool, quickSwitchToAllWorkspaces,           false)
92
XIV(bool, quickSwitchGroupWorkspaces,           true)
93
XIV(bool, quickSwitchAllIcons,                  true)
94
XIV(bool, quickSwitchTextFirst,                 false)
95
XIV(bool, quickSwitchVertical,                  true)
96
XIV(bool, quickSwitchSmallWindow,               false)
97
XIV(bool, quickSwitchMaxWidth,                  false)
98
XIV(bool, quickSwitchHugeIcon,                  false)
99
XIV(bool, quickSwitchFillSelection,             false)
100
XIV(bool, countMailMessages,                    false)
101
XIV(bool, strongPointerFocus,                   false)
102
XIV(bool, snapMove,                             true)
103
XIV(bool, edgeHorzWorkspaceSwitching,           false)
104
XIV(bool, edgeVertWorkspaceSwitching,           false)
105
XIV(bool, edgeContWorkspaceSwitching,           true)
106
XIV(bool, limitSize,                            true)
107
XIV(bool, limitPosition,                        true)
108
XIV(bool, limitByDockLayer,                     false)
109
XIV(bool, considerHorizBorder,                  false)
110
XIV(bool, considerVertBorder,                   false)
111
XIV(bool, centerMaximizedWindows,               false)
112
XIV(bool, win95keys,                            true)
113
XIV(bool, autoReloadMenus,                      true)
114
XIV(bool, clientMouseActions,                   true)
115
XIV(bool, showPrograms,                         false)
116
XIV(bool, showSettingsMenu,                     true)
117
XIV(bool, showFocusModeMenu,                    true)
118
XIV(bool, showThemesMenu,                       true)
119
XIV(bool, showLogoutMenu,                       true)
120
XIV(bool, showLogoutSubMenu,                    true)
121
XIV(bool, showAbout,                            true)
122
XIV(bool, showRun,                              true)
123
XIV(bool, showWindowList,                       true)
124
XIV(bool, showHelp,                             true)
125
XIV(bool, allowFullscreen,                      true)
126
XIV(bool, enableAddressBar,                     true);
127
XIV(bool, showAddressBar,                       true)
128
XIV(bool, confirmLogout,                        true)
129
#ifdef CONFIG_SHAPED_DECORATION
130
XIV(bool, protectClientWindow,                  true)
131
#endif
132
XIV(int, MenuMaximalWidth,                      0)
133
XIV(int, EdgeResistance,                        32)
134
XIV(int, snapDistance,                          8)
135
XIV(int, pointerFocusDelay,                     200)
136
XIV(int, autoRaiseDelay,                        400)
137
XIV(int, autoHideDelay,                         300)
138
XIV(int, autoShowDelay,                         500)
139
XIV(int, edgeSwitchDelay,                       600)
140
XIV(int, scrollBarStartDelay,                   500)
141
XIV(int, scrollBarDelay,                        30)
142
XIV(int, workspaceStatusTime,                   2500)
143
XIV(int, useRootButtons,                        255)    // bitmask=all
144
XIV(int, buttonRaiseMask,                       1)
145
XIV(int, rootWinMenuButton,                     0)
146
XIV(int, rootWinListButton,                     2)
147
XIV(int, rootMenuButton,                        3)
148
XIV(int, titleMaximizeButton,                   1)
149
XIV(int, titleRollupButton,                     2)
150
XIV(int, msgBoxDefaultAction,                   0)
151
XIV(int, mailCheckDelay,                        30)
152
XIV(int, taskBarCPUSamples,                     20)
153
XIV(int, taskBarApmGraphWidth,                  10) // hatred
154
XIV(int, focusRequestFlashTime,                 0)
155
XIV(int, focusRequestFlashInterval,             250)
156
XIV(int, nestedThemeMenuMinNumber,              15)
157
XIV(int, batteryPollingPeriod,                  10)
158
159
#ifdef CONFIG_APPLET_APM
160
XSV(const char *, acpiIgnoreBatteries,          0)
161
#endif
162
163
XSV(const char *, mailBoxPath,                  0)
164
XSV(const char *, mailCommand,                  "xterm -name pine -title PINE -e pine")
165
XSV(const char *, mailClassHint,                "pine.XTerm")
166
XSV(const char *, newMailCommand,               0)
167
XSV(const char *, lockCommand,                  0)
168
XSV(const char *, clockCommand,                 "xclock -name icewm -title Clock")
169
XSV(const char *, clockClassHint,               "icewm.XClock")
170
XSV(const char *, runDlgCommand,                0)
171
XSV(const char *, openCommand,                  0)
172
XSV(const char *, terminalCommand,              "xterm")
173
XSV(const char *, logoutCommand,                0)
174
XSV(const char *, logoutCancelCommand,          0)
175
XSV(const char *, shutdownCommand,              0)
176
XSV(const char *, rebootCommand,                0)
177
XIV(int, taskBarCPUDelay,                       500)
178
XIV(int, taskBarClockUpdateInterval,            1000)
179
XIV(int, taskBarNetSamples,                     20)
180
XIV(int, taskBarNetDelay,                       500)
181
XSV(const char *, cpuCommand,                   "xterm -name top -title Process\\ Status -e top")
182
XSV(const char *, cpuClassHint,                 "top.XTerm")
183
XSV(const char *, netCommand,                   "xterm -name netstat -title 'Network Status' -e netstat -c")
184
XSV(const char *, netClassHint,                 "netstat.XTerm")
185
XSV(const char *, netDevice,                    "ppp0 eth0")
186
XSV(const char *, addressBarCommand,            0)
187
#ifdef CONFIG_I18N
188
XSV(const char *, fmtTime,                      "%X")
189
XSV(const char *, fmtTimeAlt,                   NULL)
190
XSV(const char *, fmtDate,                      "%c")
191
#else
192
XSV(const char *, fmtTime,                      "%H:%M:%S")
193
XSV(const char *, fmtTimeAlt,                   NULL)
194
XSV(const char *, fmtDate,                      "%Y-%m-%d %H:%M:%S %z %B %A")
195
#endif
196
197
#if defined(CFGDEF) && !defined(NO_CONFIGURE)
198
199
cfoption icewm_preferences[] = {
200
    OBV("ClickToFocus",                         &clickFocus,                    "Focus windows by clicking"),
201
    OBV("FocusOnAppRaise",                      &focusOnAppRaise,               "Focus windows when application requests to raise"),
202
    OBV("RequestFocusOnAppRaise",                      &requestFocusOnAppRaise,               "Request focus (flashing in taskbar) when application requests raise"),
203
    OBV("RaiseOnFocus",                         &raiseOnFocus,                  "Raise windows when focused"),
204
    OBV("FocusOnClickClient",                   &focusOnClickClient,            "Focus window when client area clicked"),
205
    OBV("RaiseOnClickClient",                   &raiseOnClickClient,            "Raise window when client area clicked"),
206
    OBV("RaiseOnClickTitleBar",                 &raiseOnClickTitleBar,          "Raise window when title bar is clicked"),
207
    OBV("RaiseOnClickButton",                   &raiseOnClickButton,            "Raise window when frame button is clicked"),
208
    OBV("RaiseOnClickFrame",                    &raiseOnClickFrame,             "Raise window when frame border is clicked"),
209
    OBV("LowerOnClickWhenRaised",               &lowerOnClickWhenRaised,        "Lower the active window when clicked again"),
210
    OBV("PassFirstClickToClient",               &passFirstClickToClient,        "Pass focusing click on client area to client"),
211
    OBV("FocusChangesWorkspace",                &focusChangesWorkspace,         "Change to the workspace of newly focused windows"),
212
    OBV("FocusOnMap",                           &focusOnMap,                    "Focus normal window when initially mapped"),
213
    OBV("FocusOnMapTransient",                  &focusOnMapTransient,           "Focus dialog window when initially mapped"),
214
    OBV("FocusOnMapTransientActive",            &focusOnMapTransientActive,     "Focus dialog window when initially mapped only if parent frame focused"),
215
    OBV("MapInactiveOnTop",                     &mapInactiveOnTop,              "Put new windows on top even if not focusing them"),
216
    OBV("PointerColormap",                      &pointerColormap,               "Colormap focus follows pointer"),
217
    OBV("DontRotateMenuPointer",                &dontRotateMenuPointer,         "Don't rotate the cursor for popup menus"),
218
    OBV("LimitSize",                            &limitSize,                     "Limit size of windows to screen"),
219
    OBV("LimitPosition",                        &limitPosition,                 "Limit position of windows to screen"),
220
    OBV("LimitByDockLayer",                     &limitByDockLayer,              "Let the Dock layer limit the workspace (incompatible with GNOME Panel)"),
221
    OBV("ConsiderHBorder",                      &considerHorizBorder,           "Consider border frames when maximizing horizontally"),
222
    OBV("ConsiderVBorder",                      &considerVertBorder,            "Consider border frames when maximizing vertically"),
223
    OBV("CenterMaximizedWindows",               &centerMaximizedWindows,        "Center maximized windows which can't fit the screen (like terminals)"),
224
    OBV("SizeMaximized",                        &sizeMaximized,                 "Maximized windows can be resized"),
225
    OBV("ShowMoveSizeStatus",                   &showMoveSizeStatus,            "Show position status window during move/resize"),
226
    OBV("ShowWorkspaceStatus",                  &workspaceSwitchStatus,         "Show name of current workspace while switching"),
227
    OBV("MinimizeToDesktop",                    &minimizeToDesktop,             "Display mini-icons on desktop for minimized windows"),
228
    OBV("MiniIconsPlaceHorizontal",             &miniIconsPlaceHorizontal,
229
"Place the mini-icons horizontal instead of vertical"),
230
    OBV("MiniIconsRightToLeft",                 &miniIconsRightToLeft,
231
"Place new mini-icons from right to left"),
232
    OBV("MiniIconsBottomToTop",                 &miniIconsBottomToTop,
233
"Place new mini-icons from bottom to top"),
234
    OBV("StrongPointerFocus",                   &strongPointerFocus,            "Always maintain focus under mouse window (makes some keyboard support non-functional or unreliable"),
235
    OBV("OpaqueMove",                           &opaqueMove,                    "Opaque window move"),
236
    OBV("OpaqueResize",                         &opaqueResize,                  "Opaque window resize"),
237
    OBV("ManualPlacement",                      &manualPlacement,               "Windows initially placed manually by user"),
238
    OBV("SmartPlacement",                       &smartPlacement,                "Smart window placement (minimal overlap)"),
239
    OBV("HideTitleBarWhenMaximized",            &hideTitleBarWhenMaximized,     "Hide title bar when maximized"),
240
    OBV("CenterLarge",                          &centerLarge,                   "Center large windows"),
241
    OBV("CenterTransientsOnOwner",              &centerTransientsOnOwner,       "Center dialogs on owner window"),
242
    OBV("MenuMouseTracking",                    &menuMouseTracking,             "Menus track mouse even with no mouse buttons held"),
243
    OBV("AutoRaise",                            &autoRaise,                     "Auto raise windows after delay"),
244
    OBV("DelayPointerFocus",                    &delayPointerFocus,             "Delay pointer focusing when mouse moves"),
245
    OBV("Win95Keys",                            &win95keys,                     "Support win95 keyboard keys (Penguin/Meta/Win_L,R shows menu)"),
246
    OBV("ModSuperIsCtrlAlt",                     &modSuperIsCtrlAlt,            "Treat Super/Win modifier as Ctrl+Alt"),
247
    OBV("UseMouseWheel",                        &useMouseWheel,                 "Support mouse wheel"),
248
    OBV("ShowPopupsAbovePointer",               &showPopupsAbovePointer,        "Show popup menus above mouse pointer"),
249
    OBV("ReplayMenuCancelClick",                &replayMenuCancelClick,         "Send the clicks outside menus to target window"),
250
    OBV("QuickSwitch",                          &quickSwitch,                   "Alt+Tab window switching"),
251
    OBV("QuickSwitchToMinimized",               &quickSwitchToMinimized,        "Alt+Tab to minimized windows"),
252
    OBV("QuickSwitchToHidden",                  &quickSwitchToHidden,           "Alt+Tab to hidden windows"),
253
    OBV("QuickSwitchToAllWorkspaces",           &quickSwitchToAllWorkspaces,    "Alt+Tab to windows on other workspaces"),
254
    OBV("QuickSwitchGroupWorkspaces",           &quickSwitchGroupWorkspaces,    "Alt+Tab: group windows on current workspace"),
255
    OBV("QuickSwitchAllIcons",                  &quickSwitchAllIcons,           "Show all reachable icons when quick switching"),
256
    OBV("QuickSwitchTextFirst",                 &quickSwitchTextFirst,          "Show the window title above (all reachable) icons"),
257
    OBV("QuickSwitchSmallWindow",               &quickSwitchSmallWindow,        "Attempt to create a small QuickSwitch window (1/3 instead of 3/5 of screen width)"),
258
    OBV("QuickSwitchMaxWidth",                  &quickSwitchMaxWidth,           "Go trough all window titles and choose width of the longest one"),
259
    OBV("QuickSwitchVertical",                  &quickSwitchVertical,           "Place the icons and titles vertical instead of horizontal"),
260
    OBV("QuickSwitchHugeIcon",                  &quickSwitchHugeIcon,           "Show the huge (48x48) of the window icon for the active window"),
261
    OBV("QuickSwitchFillSelection",             &quickSwitchFillSelection,      "Fill the rectangle highlighting the current icon"),
262
    OBV("GrabRootWindow",                       &grabRootWindow,                "Manage root window (EXPERIMENTAL - normally enabled!)"),
263
    OBV("SnapMove",                             &snapMove,                      "Snap to nearest screen edge/window when moving windows"),
264
    OBV("EdgeSwitch",                           &edgeHorzWorkspaceSwitching,    "Workspace switches by moving mouse to left/right screen edge"),
265
    OBV("HorizontalEdgeSwitch",                 &edgeHorzWorkspaceSwitching,    "Workspace switches by moving mouse to left/right screen edge"),
266
    OBV("VerticalEdgeSwitch",                   &edgeVertWorkspaceSwitching,    "Workspace switches by moving mouse to top/bottom screen edge"),
267
    OBV("ContinuousEdgeSwitch",                 &edgeContWorkspaceSwitching,    "Workspace switches continuously when moving mouse to screen edge"),
268
    OBV("AutoReloadMenus",                      &autoReloadMenus,               "Reload menu files automatically"),
269
#ifdef CONFIG_TASKBAR
270
    OBV("ShowTaskBar",                          &showTaskBar,                   "Show task bar"),
271
    OBV("TaskBarAtTop",                         &taskBarAtTop,                  "Task bar at top of the screen"),
272
    OBV("TaskBarKeepBelow",                     &taskBarKeepBelow,              "Keep the task bar below regular windows"),
273
    OBV("TaskBarAutoHide",                      &taskBarAutoHide,               "Auto hide task bar after delay"),
274
    OBV("TaskBarFullscreenAutoShow",            &taskBarFullscreenAutoShow,     "Auto show task bar when fullscreen window active"),
275
    OBV("TaskBarShowClock",                     &taskBarShowClock,              "Show clock on task bar"),
276
    OBV("TaskBarShowAPMStatus",                 &taskBarShowApm,                "Show APM/ACPI/Battery/Power status monitor on task bar"),
277
    OBV("TaskBarShowAPMTime",                   &taskBarShowApmTime,            "Show APM status on task bar in time-format"),  // mschy
278
    OBV("TaskBarShowAPMGraph",                  &taskBarShowApmGraph,           "Show APM status in graph mode"), // hatred
279
    OBV("TaskBarShowMailboxStatus",             &taskBarShowMailboxStatus,      "Show mailbox status on task bar"),
280
    OBV("TaskBarMailboxStatusBeepOnNewMail",    &beepOnNewMail,                 "Beep when new mail arrives"),
281
    OBV("TaskBarMailboxStatusCountMessages",    &countMailMessages,             "Count messages in mailbox"),
282
    OBV("TaskBarShowWorkspaces",                &taskBarShowWorkspaces,         "Show workspace switching buttons on task bar"),
283
    OBV("TaskBarShowWindows",                   &taskBarShowWindows,            "Show windows on the taskbar"),
284
    OBV("TaskBarShowShowDesktopButton",         &taskBarShowShowDesktopButton,  "Show 'show desktop' button on taskbar"),
285
    OBV("ShowEllipsis",                         &showEllipsis,                  "Show Ellipsis in taskbar items"),
286
#ifdef CONFIG_TRAY
287
    OBV("TaskBarShowTray",                      &taskBarShowTray,               "Show windows in the tray"),
288
    OBV("TrayShowAllWindows",                   &trayShowAllWindows,            "Show windows from all workspaces on tray"),
289
#endif
290
    OBV("TaskBarShowTransientWindows",                &taskBarShowTransientWindows,         "Show transient (dialogs, ...) windows on task bar"),
291
    OBV("TaskBarShowAllWindows",                &taskBarShowAllWindows,         "Show windows from all workspaces on task bar"),
292
    OBV("TaskBarShowWindowIcons",               &taskBarShowWindowIcons,        "Show icons of windows on the task bar"),
293
    OBV("TaskBarShowStartMenu",                 &taskBarShowStartMenu,          "Show 'Start' menu on task bar"),
294
    OBV("TaskBarShowWindowListMenu",            &taskBarShowWindowListMenu,     "Show 'window list' menu on task bar"),
295
    OBV("TaskBarShowCPUStatus",                 &taskBarShowCPUStatus,          "Show CPU status on task bar (Linux & Solaris)"),
296
    OBV("CPUStatusShowRamUsage",                &cpustatusShowRamUsage,         "Show RAM usage in CPU status tool tip"),
297
    OBV("CPUStatusShowSwapUsage",               &cpustatusShowSwapUsage,        "Show swap usage in CPU status tool tip"),
298
    OBV("CPUStatusShowAcpiTemp",                &cpustatusShowAcpiTemp,         "Show ACPI temperature in CPU status tool tip"),
299
    OBV("CPUStatusShowCpuFreq",                 &cpustatusShowCpuFreq,          "Show CPU frequency in CPU status tool tip"),
300
    OBV("TaskBarShowNetStatus",                 &taskBarShowNetStatus,          "Show network status on task bar (Linux only)"),
301
    OBV("TaskBarShowCollapseButton",            &taskBarShowCollapseButton,     "Show a button to collapse the taskbar"),
302
    OBV("TaskBarDoubleHeight",                  &taskBarDoubleHeight,           "Use double-height task bar"),
303
    OBV("TaskBarWorkspacesLeft",                &taskBarWorkspacesLeft,         "Place workspace pager on left, not right"),
304
    OBV("PagerShowPreview",                     &pagerShowPreview,              "Show a mini desktop preview on each workspace button"),
305
    OBV("PagerShowWindowIcons",                 &pagerShowWindowIcons,          "Draw window icons inside large enough preview windows on pager (if PagerShowPreview=1)"),
306
    OBV("PagerShowMinimized",                   &pagerShowMinimized,            "Draw even minimized windows as unfilled rectangles (if PagerShowPreview=1)"),
307
    OBV("PagerShowBorders",                     &pagerShowBorders,              "Draw border around workspace buttons (if PagerShowPreview=1)"),
308
    OBV("PagerShowNumbers",                     &pagerShowNumbers,              "Show number of workspace on workspace button (if PagerShowPreview=1)"),
309
    OBV("TaskBarLaunchOnSingleClick",           &taskBarLaunchOnSingleClick,    "Execute taskbar applet commands (like MailCommand,     ClockCommand,   ...) on single click"),
310
#endif
311
//    OBV("WarpPointer",                          &warpPointer,                   "Move mouse when doing focusing in pointer focus mode"),
312
    OBV("ClientWindowMouseActions",             &clientMouseActions,            "Allow mouse actions on client windows (buggy with some programs)"),
313
    OBV("ShowProgramsMenu",                     &showPrograms,                  "Show programs submenu"),
314
    OBV("ShowSettingsMenu",                     &showSettingsMenu,                  "Show settings submenu"),
315
    OBV("ShowFocusModeMenu",                     &showFocusModeMenu,                  "Show focus mode submenu"),
316
    OBV("ShowThemesMenu",                       &showThemesMenu,                "Show themes submenu"),
317
    OBV("ShowLogoutMenu",                       &showLogoutMenu,                "Show logout submenu"),
318
    OBV("ShowHelp",                             &showHelp,                      "Show the help menu item"),
319
    OBV("ShowLogoutSubMenu",                    &showLogoutSubMenu,             "Show logout submenu"),
320
    OBV("ShowAbout",                            &showAbout,                     "Show the about menu item"),
321
    OBV("ShowRun",                              &showRun,                       "Show the run menu item"),
322
    OBV("ShowWindowList",                       &showWindowList,                "Show the window menu item"),
323
    OBV("AllowFullscreen",                      &allowFullscreen,               "Allow to switch a window to fullscreen"),
324
    OBV("EnableAddressBar",                     &enableAddressBar,              "Enable address bar functionality in taskbar"),
325
    OBV("ShowAddressBar",                       &showAddressBar,                "Show address bar in task bar"),
326
#ifdef CONFIG_I18N
327
    OBV("MultiByte",                            &multiByte,                     "Overrides automatic multiple byte detection"),
328
#endif
329
    OBV("ConfirmLogout",                        &confirmLogout,                 "Confirm logout"),
330
#ifdef CONFIG_SHAPED_DECORATION
331
    OBV("ShapesProtectClientWindow",            &protectClientWindow,           "Don't cut client windows by shapes set trough frame corner pixmap"),
332
#endif
333
    OBV("DoubleBuffer",                         &doubleBuffer,                  "Use double buffering when redrawing the display"),
334
    OBV("XRRDisable",                           &xrrDisable,                    "Disable use of new XRANDR API for dual head (nvidia workaround)"),
335
    OIV("ClickMotionDistance",                  &ClickMotionDistance, 0, 32,    "Pointer motion distance before click gets interpreted as drag"),
336
    OIV("ClickMotionDelay",                     &ClickMotionDelay, 0, 2000,     "Delay before click gets interpreted as drag"),
337
    OIV("MultiClickTime",                       &MultiClickTime, 0, 5000,       "Multiple click time"),
338
    OIV("MenuActivateDelay",                    &MenuActivateDelay, 0, 5000,    "Delay before activating menu items"),
339
    OIV("SubmenuMenuActivateDelay",             &SubmenuActivateDelay, 0, 5000, "Delay before activating menu submenus"),
340
    OIV("MenuMaximalWidth",                     &MenuMaximalWidth, 0, 16384,    "Maximal width of popup menus,  2/3 of the screen's width if set to zero"),
341
#ifdef CONFIG_TOOLTIP
342
    OIV("ToolTipDelay",                         &ToolTipDelay, 0, 5000,         "Delay before tooltip window is displayed"),
343
    OIV("ToolTipTime",                          &ToolTipTime, 0, 60000,         "Time before tooltip window is hidden (0 means never"),
344
#endif
345
    OIV("AutoHideDelay",                        &autoHideDelay, 0, 5000,        "Delay before task bar is hidden"),
346
    OIV("AutoShowDelay",                        &autoShowDelay, 0, 5000,        "Delay before task bar is shown"),
347
    OIV("AutoRaiseDelay",                       &autoRaiseDelay, 0, 5000,       "Delay before windows are auto raised"),
348
    OIV("EdgeResistance",                       &EdgeResistance, 0, 10000,      "Resistance in pixels when trying to move windows off the screen (10000 = infinite)"),
349
    OIV("PointerFocusDelay",                    &pointerFocusDelay, 0, 1000,    "Delay for pointer focus switching"),
350
    OIV("SnapDistance",                         &snapDistance, 0, 64,           "Distance in pixels before windows snap together"),
351
    OIV("EdgeSwitchDelay",                      &edgeSwitchDelay, 0, 5000,      "Screen edge workspace switching delay"),
352
    OIV("ScrollBarStartDelay",                  &scrollBarStartDelay, 0, 5000,  "Inital scroll bar autoscroll delay"),
353
    OIV("ScrollBarDelay",                       &scrollBarDelay, 0, 5000,       "Scroll bar autoscroll delay"),
354
    OIV("AutoScrollStartDelay",                 &autoScrollStartDelay, 0, 5000, "Auto scroll start delay"),
355
    OIV("AutoScrollDelay",                      &autoScrollDelay, 0, 5000,      "Auto scroll delay"),
356
    OIV("WorkspaceStatusTime",                  &workspaceStatusTime, 0, 2500,  "Time before workspace status window is hidden"),
357
    OIV("UseRootButtons",                       &useRootButtons, 0, 255,        "Bitmask of root window button click to use in window manager"),
358
    OIV("ButtonRaiseMask",                      &buttonRaiseMask, 0, 255,       "Bitmask of buttons that raise the window when pressed"),
359
    OIV("DesktopWinMenuButton",                 &rootWinMenuButton, 0, 20,      "Desktop mouse-button click to show the window list menu"),
360
    OIV("DesktopWinListButton",                 &rootWinListButton, 0, 20,       "Desktop mouse-button click to show the window list"),
361
    OIV("DesktopMenuButton",                    &rootMenuButton, 0, 20,         "Desktop mouse-button click to show the root menu"),
362
    OIV("TitleBarMaximizeButton",               &titleMaximizeButton, 0, 5,     "TitleBar mouse-button double click to maximize the window"),
363
    OIV("TitleBarRollupButton",                 &titleRollupButton, 0, 5,       "TitleBar mouse-button double click to rollup the window"),
364
    OIV("MsgBoxDefaultAction",                  &msgBoxDefaultAction, 0, 1,     "Preselect to Cancel (0) or the OK (1) button in message boxes"),
365
    OIV("MailCheckDelay",                       &mailCheckDelay, 0, (3600*24),  "Delay between new-mail checks. (seconds)"),
366
#ifdef CONFIG_TASKBAR
367
    OIV("TaskBarCPUSamples",                    &taskBarCPUSamples, 2, 1000,    "Width of CPU Monitor"),
368
    OIV("TaskBarCPUDelay",                      &taskBarCPUDelay, 10, (60*60*1000),    "Delay between CPU Monitor samples in ms"),
369
    OIV("TaskBarClockUpdateInterval",           &taskBarClockUpdateInterval, 10, (60*60*1000),  "Clock update interval in ms"),
370
    OIV("TaskBarNetSamples",                    &taskBarNetSamples, 2, 1000,    "Width of Net Monitor"),
371
    OIV("TaskBarNetDelay",                      &taskBarNetDelay, 10, (60*60*1000),    "Delay between Net Monitor samples in ms"),
372
    OIV("TaskbarButtonWidthDivisor",            &taskBarButtonWidthDivisor, 1, 25, "default number of tasks in taskbar"),
373
    OIV("TaskBarApmGraphWidth",                 &taskBarApmGraphWidth, 1, 1000,  "Width of APM Monitor"), // hatred
374
#endif
375
376
    OIV("XineramaPrimaryScreen",                &xineramaPrimaryScreen, 0, 63, "Primary screen for xinerama (taskbar, ...)"),
377
    OIV("FocusRequestFlashTime",                &focusRequestFlashTime, 0, (3600 * 24), "Number of seconds the taskbar app will blink when requesting focus (0 = forever)"),
378
    OIV("FocusRequestFlashInterval",            &focusRequestFlashInterval, 0, 30000, "Taskbar blink interval (ms) when requesting focus (0 = blinking disabled)"),
379
    OIV("NestedThemeMenuMinNumber",             &nestedThemeMenuMinNumber,  0, 1234,  "Minimal number of themes after which the Themes menu becomes nested (0=disabled)"),
380
    OIV("BatteryPollingPeriod",                 &batteryPollingPeriod, 2, 3600, "Delay between power status updates (seconds)"),
381
///    OSV("Theme",                                &themeName,                     "Theme name"),
382
    OSV("IconPath",                             &iconPath,                      "Icon search path (colon separated)"),
383
    OSV("MailBoxPath",                          &mailBoxPath,                   "Mailbox path (use $MAIL instead)"),
384
    OSV("MailCommand",                          &mailCommand,                   "Command to run on mailbox"),
385
    OSV("MailClassHint",                        &mailClassHint,                 "WM_CLASS to allow runonce for MailCommand"),
386
    OSV("NewMailCommand",                       &newMailCommand,                "Command to run when new mail arrives"),
387
    OSV("LockCommand",                          &lockCommand,                   "Command to lock display/screensaver"),
388
    OSV("ClockCommand",                         &clockCommand,                  "Command to run on clock"),
389
    OSV("ClockClassHint",                       &clockClassHint,                "WM_CLASS to allow runonce for ClockCommand"),
390
    OSV("RunCommand",                           &runDlgCommand,                 "Command to select and run a program"),
391
    OSV("OpenCommand",                          &openCommand,                   ""),
392
    OSV("TerminalCommand",                      &terminalCommand,               "Terminal emulator must accept -e option."),
393
    OSV("LogoutCommand",                        &logoutCommand,                 "Command to start logout"),
394
    OSV("LogoutCancelCommand",                  &logoutCancelCommand,           "Command to cancel logout"),
395
    OSV("ShutdownCommand",                      &shutdownCommand,               "Command to shutdown the system"),
396
    OSV("RebootCommand",                        &rebootCommand,                 "Command to reboot the system"),
397
    OSV("CPUStatusCommand",                     &cpuCommand,                    "Command to run on CPU status"),
398
    OSV("CPUStatusClassHint",                   &cpuClassHint,                  "WM_CLASS to allow runonce for CPUStatusCommand"),
399
    OSV("NetStatusCommand",                     &netCommand,                    "Command to run on Net status"),
400
    OSV("NetStatusClassHint",                   &netClassHint,                  "WM_CLASS to allow runonce for NetStatusCommand"),
401
    OSV("AddressBarCommand",                    &addressBarCommand,             "Command to run for address bar entries"),
402
    OSV("NetworkStatusDevice",                  &netDevice,                     "Network device to show status for"),
403
    OSV("TimeFormat",                           &fmtTime,                       "Clock Time format (strftime format string)"),
404
    OSV("TimeFormatAlt",                        &fmtTimeAlt,                    "Alternate Clock Time format (e.g. for blinking effects)"),
405
    OSV("DateFormat",                           &fmtDate,                       "Clock Date format for tooltip (strftime format string)"),
406
    OSV("XRRPrimaryScreenName",                 &xineramaPrimaryScreenName,     "screen/output name of the primary screen"),
407
#ifdef CONFIG_APPLET_APM
408
    OSV("AcpiIgnoreBatteries",                  &acpiIgnoreBatteries,           "List of battery names (directories) in /proc/acpi/battery to ignore. Useful when more slots are built-in, but only one battery is used"),
409
#endif
410
411
412
#ifndef NO_KEYBIND
413
    OKV("MouseWinMove",                         gMouseWinMove,                  "Mouse binding for window move"),
414
    OKV("MouseWinSize",                         gMouseWinSize,                  "Mouse binding for window resize"),
415
    OKV("MouseWinRaise",                        gMouseWinRaise,                 "Mouse binding to raise window"),
416
    OKV("KeyWinRaise",                          gKeyWinRaise,                   ""),
417
    OKV("KeyWinOccupyAll",                      gKeyWinOccupyAll,               ""),
418
    OKV("KeyWinLower",                          gKeyWinLower,                   ""),
419
    OKV("KeyWinClose",                          gKeyWinClose,                   ""),
420
    OKV("KeyWinRestore",                        gKeyWinRestore,                 ""),
421
    OKV("KeyWinPrev",                           gKeyWinPrev,                    ""),
422
    OKV("KeyWinNext",                           gKeyWinNext,                    ""),
423
    OKV("KeyWinMove",                           gKeyWinMove,                    ""),
424
    OKV("KeyWinSize",                           gKeyWinSize,                    ""),
425
    OKV("KeyWinMinimize",                       gKeyWinMinimize,                ""),
426
    OKV("KeyWinMaximize",                       gKeyWinMaximize,                ""),
427
    OKV("KeyWinMaximizeVert",                   gKeyWinMaximizeVert,            ""),
428
    OKV("KeyWinMaximizeHoriz",                  gKeyWinMaximizeHoriz,           ""),
429
    OKV("KeyWinFullscreen",                     gKeyWinFullscreen,              ""),
430
    OKV("KeyWinHide",                           gKeyWinHide,                    ""),
431
    OKV("KeyWinRollup",                         gKeyWinRollup,                  ""),
432
    OKV("KeyWinMenu",                           gKeyWinMenu,                    ""),
433
    OKV("KeyWinArrangeN",                       gKeyWinArrangeN,                ""),
434
    OKV("KeyWinArrangeNE",                      gKeyWinArrangeNE,               ""),
435
    OKV("KeyWinArrangeE",                       gKeyWinArrangeE,                ""),
436
    OKV("KeyWinArrangeSE",                      gKeyWinArrangeSE,               ""),
437
    OKV("KeyWinArrangeS",                       gKeyWinArrangeS,                ""),
438
    OKV("KeyWinArrangeSW",                      gKeyWinArrangeSW,               ""),
439
    OKV("KeyWinArrangeW",                       gKeyWinArrangeW,                ""),
440
    OKV("KeyWinArrangeNW",                      gKeyWinArrangeNW,               ""),
441
    OKV("KeyWinArrangeC",                       gKeyWinArrangeC,                ""),
442
    OKV("KeySysSwitchNext",                     gKeySysSwitchNext,              ""),
443
    OKV("KeySysSwitchLast",                     gKeySysSwitchLast,              ""),
444
    OKV("KeySysWinNext",                        gKeySysWinNext,                 ""),
445
    OKV("KeySysWinPrev",                        gKeySysWinPrev,                 ""),
446
    OKV("KeySysWinMenu",                        gKeySysWinMenu,                 ""),
447
    OKV("KeySysDialog",                         gKeySysDialog,                  ""),
448
    OKV("KeySysMenu",                           gKeySysMenu,                    ""),
449
///    OKV("KeySysRun",                            gKeySysRun,                     ""),
450
    OKV("KeySysWindowList",                     gKeySysWindowList,              ""),
451
    OKV("KeySysWinListMenu",                    gKeySysWinListMenu,             ""),
452
    OKV("KeySysAddressBar",                     gKeySysAddressBar,              ""),
453
    OKV("KeySysWorkspacePrev",                  gKeySysWorkspacePrev,           ""),
454
    OKV("KeySysWorkspaceNext",                  gKeySysWorkspaceNext,           ""),
455
    OKV("KeySysWorkspaceLast",                  gKeySysWorkspaceLast,           ""),
456
    OKV("KeySysWorkspacePrevTakeWin",           gKeySysWorkspacePrevTakeWin,    ""),
457
    OKV("KeySysWorkspaceNextTakeWin",           gKeySysWorkspaceNextTakeWin,    ""),
458
    OKV("KeySysWorkspaceLastTakeWin",           gKeySysWorkspaceLastTakeWin,    ""),
459
    OKV("KeySysWorkspace1",                     gKeySysWorkspace1,              ""),
460
    OKV("KeySysWorkspace2",                     gKeySysWorkspace2,              ""),
461
    OKV("KeySysWorkspace3",                     gKeySysWorkspace3,              ""),
462
    OKV("KeySysWorkspace4",                     gKeySysWorkspace4,              ""),
463
    OKV("KeySysWorkspace5",                     gKeySysWorkspace5,              ""),
464
    OKV("KeySysWorkspace6",                     gKeySysWorkspace6,              ""),
465
    OKV("KeySysWorkspace7",                     gKeySysWorkspace7,              ""),
466
    OKV("KeySysWorkspace8",                     gKeySysWorkspace8,              ""),
467
    OKV("KeySysWorkspace9",                     gKeySysWorkspace9,              ""),
468
    OKV("KeySysWorkspace10",                    gKeySysWorkspace10,             ""),
469
    OKV("KeySysWorkspace11",                    gKeySysWorkspace11,             ""),
470
    OKV("KeySysWorkspace12",                    gKeySysWorkspace12,             ""),
471
    OKV("KeySysWorkspace1TakeWin",              gKeySysWorkspace1TakeWin,       ""),
472
    OKV("KeySysWorkspace2TakeWin",              gKeySysWorkspace2TakeWin,       ""),
473
    OKV("KeySysWorkspace3TakeWin",              gKeySysWorkspace3TakeWin,       ""),
474
    OKV("KeySysWorkspace4TakeWin",              gKeySysWorkspace4TakeWin,       ""),
475
    OKV("KeySysWorkspace5TakeWin",              gKeySysWorkspace5TakeWin,       ""),
476
    OKV("KeySysWorkspace6TakeWin",              gKeySysWorkspace6TakeWin,       ""),
477
    OKV("KeySysWorkspace7TakeWin",              gKeySysWorkspace7TakeWin,       ""),
478
    OKV("KeySysWorkspace8TakeWin",              gKeySysWorkspace8TakeWin,       ""),
479
    OKV("KeySysWorkspace9TakeWin",              gKeySysWorkspace9TakeWin,       ""),
480
    OKV("KeySysWorkspace10TakeWin",             gKeySysWorkspace10TakeWin,      ""),
481
    OKV("KeySysWorkspace11TakeWin",             gKeySysWorkspace11TakeWin,      ""),
482
    OKV("KeySysWorkspace12TakeWin",             gKeySysWorkspace12TakeWin,      ""),
483
    OKV("KeySysTileVertical",                   gKeySysTileVertical,            ""),
484
    OKV("KeySysTileHorizontal",                 gKeySysTileHorizontal,          ""),
485
    OKV("KeySysCascade",                        gKeySysCascade,                 ""),
486
    OKV("KeySysArrange",                        gKeySysArrange,                 ""),
487
    OKV("KeySysArrangeIcons",                   gKeySysArrangeIcons,            ""),
488
    OKV("KeySysMinimizeAll",                    gKeySysMinimizeAll,             ""),
489
    OKV("KeySysHideAll",                        gKeySysHideAll,                 ""),
490
    OKV("KeySysUndoArrange",                    gKeySysUndoArrange,             ""),
491
    OKV("KeySysShowDesktop",                    gKeySysShowDesktop,             ""),
492
    OKV("KeySysCollapseTaskBar",                gKeySysCollapseTaskBar,         ""),
493
#endif
494
    OKF("WorkspaceNames", addWorkspace, ""),
495
    OSV("WinMenuItems",                         &winMenuItems,                  "Items supported in menu window (rmsnxfhualytickw)"),
496
    OK0()
497
};
498
499
#endif
500
501
#include "themable.h"
502
#endif /* __DEFAULT_H */

Return to bug 452730