#ifdef X11
-/* Always on bottom */
-static int on_bottom;
-
/* Position on the screen */
static int text_alignment;
static int gap_x, gap_y;
END OBJ(i8k_buttons_status, INFO_I8K)
END OBJ(ibm_fan, 0)
END OBJ(ibm_temps, 0)
+ if (!arg) {
+ CRIT_ERR("ibm_temps: needs an argument");
+ }
if (!isdigit(arg[0])
|| strlen(arg) >=2
|| atoi(&arg[0]) >=8)
border_margin = 3;
border_width = 1;
text_alignment = BOTTOM_LEFT;
- on_bottom = 1;
#endif /* X11 */
free(current_mail_spool);
#ifdef X11
CONF2("alignment") {
- if (value) {
- int a = string_to_alignment(value);
- if (a <= 0)
- CONF_ERR;
- else
- text_alignment = a;
- } else
- CONF_ERR;
- }
- CONF("on_bottom") {
- if(value)
- ERR("on_bottom is deprecated. use own_window_hints below");
- on_bottom = string_to_bool(value);
- if (on_bottom)
- SET_HINT(window.hints,HINT_BELOW);
-
- else
+ if (value) {
+ int a = string_to_alignment(value);
+ if (a <= 0)
CONF_ERR;
+ else
+ text_alignment = a;
+ } else
+ CONF_ERR;
}
CONF("background") {
fork_to_background = string_to_bool(value);
#else
CONF2("background") {
- fork_to_background = string_to_bool(value);
+ fork_to_background = string_to_bool(value);
}
#endif /* X11 */
#ifdef X11
CONF_ERR;
}
#endif /* X11 */
- CONF("xmms_player") {
- if (value)
- ERR("xmms_player is deprecated. see ./configure --help");
- }
CONF("imap") {
if (value) {
info.mail = parse_mail_args(IMAP, value);