mirror of
https://github.com/amiwm/amiwm.git
synced 2026-03-24 01:24:15 +00:00
* add a batteryinfo config option to enable whether or not to display the current battery info string * populate that battery info string whenever we receive a battery update from the module * document it all This is very specific to a battery thing rather than a generic menu widget thing, but I think I'll go and twiddle with this stuff a bit more first and then work on a more generic "menu widget" thing later. It'd be nice to have "menu bar things" like battery and the date/time field on a linked list of "things". There's also some bugs - notably, rendering artifacts when the string length shrinks, and it only updating on the 'current' menu bar (when you have multiple desktops visible at once.) Those also should be fixed for completeness. :-)
33 lines
855 B
C
33 lines
855 B
C
#ifndef PREFS_H
|
|
#define PREFS_H
|
|
|
|
extern struct prefs_struct {
|
|
int fastquit;
|
|
int sizeborder;
|
|
int forcemove;
|
|
int borderwidth;
|
|
int autoraise;
|
|
int opaquemove;
|
|
int opaqueresize;
|
|
int customiconsonly;
|
|
int shortlabelicons;
|
|
char *icondir, *module_path, *defaulticon;
|
|
int focus, manage_all, screenmenu;
|
|
int titlebarclock; /* display titlebar clock? */
|
|
char *titleclockformat; /* format to use for the clock */
|
|
int titleclockinterval; /* how often do we update the clock?*/
|
|
int icontray; // if true then icons will be shown in a tray on top of each screen (besides clock and screen name)
|
|
int battery_info; /* display battery info? */
|
|
struct _Style *firststyle, *laststyle;
|
|
} prefs;
|
|
|
|
#define FM_MANUAL 0
|
|
#define FM_ALWAYS 1
|
|
#define FM_AUTO 2
|
|
|
|
#define FOC_FOLLOWMOUSE 0
|
|
#define FOC_CLICKTOTYPE 1
|
|
#define FOC_SLOPPY 2
|
|
|
|
#endif
|