swapmax Total amount of swap
swapperc Percentage of swap in use
sysname System name, Linux for example
- tab pixels Move text over by N pixels
+ offset pixels Move text over by N pixels
tail logfile, lines (interval)
Displays last N lines of supplied text
text file. If interval is not supplied,
ALIGNR,
ALIGNC,
GRAPH,
- TAB,
+ OFFSET,
};
static struct special_t {
new_special(buf, OUTLINE)->arg = c;
}
-static inline void new_tab(char *buf, long c)
+static inline void new_offset(char *buf, long c)
{
- new_special(buf, TAB)->arg = c;
+ new_special(buf, OFFSET)->arg = c;
}
static inline void new_alignr(char *buf, long c)
OBJ_fs_used,
OBJ_fs_used_perc,
OBJ_hr,
- OBJ_tab,
+ OBJ_offset,
OBJ_alignr,
OBJ_alignc,
OBJ_i2c,
arg = "/";
obj->data.fs = prepare_fs_stat(arg);
END OBJ(hr, 0) obj->data.i = arg ? atoi(arg) : 1;
- END OBJ(tab, 0) obj->data.i = arg ? atoi(arg) : 1;
+ END OBJ(offset, 0) obj->data.i = arg ? atoi(arg) : 1;
END OBJ(i2c, INFO_I2C) char buf1[64], buf2[64];
int n;
OBJ(hr) {
new_hr(p, obj->data.i);
}
- OBJ(tab) {
- new_tab(p, obj->data.i);
+ OBJ(offset) {
+ new_offset(p, obj->data.i);
}
OBJ(i2c) {
double r;
h += font_ascent();
}
}
-
+
special_index++;
s = p + 1;
}
arg);
break;
- case TAB:
+ case OFFSET:
{
- int pos_x = text_start_x + text_width - cur_x - 1;
- if ( pos_x > specials[special_index].arg)
- w = pos_x - specials[special_index].arg;
+ w = text_start_x + specials[special_index].arg;
+ printf("w %i width %i\n", w, text_width);
+ if ((w + get_string_width(p)) > text_width)
+ w = text_width - get_string_width(p);
}
break;
# swapmax Total amount of swap
# swapperc Percentage of swap in use
# sysname System name, Linux for example
-# tab pixels Move text over by N pixels
+# offset pixels Move text over by N pixels
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,