Hannu Saransaari <hipo at users dot sourceforge dot net>
Main code
+jack_mort - gentoo forums
+ $tab patch
+
Jarmo Hekkanen
SETI stuff
$downspeedgraph, and $upspeedgraph
* added override_utf8_locale option
* poop
+ * $tab patch from jack_mort on f.g.o
2005-07-28
* Added new graphing code, such as $cpugraph
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
tail logfile, lines (interval)
Displays last N lines of supplied text
text file. If interval is not supplied,
ALIGNR,
ALIGNC,
GRAPH,
+ TAB,
};
static struct special_t {
new_special(buf, OUTLINE)->arg = c;
}
+static inline void new_tab(char *buf, long c)
+{
+ new_special(buf, TAB)->arg = c;
+}
+
static inline void new_alignr(char *buf, long c)
{
new_special(buf, ALIGNR)->arg = c;
OBJ_fs_used,
OBJ_fs_used_perc,
OBJ_hr,
+ OBJ_tab,
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(i2c, INFO_I2C) char buf1[64], buf2[64];
int n;
OBJ(hr) {
new_hr(p, obj->data.i);
}
- OBJ(i2c) {
+ OBJ(tab) {
+ new_tab(p, obj->data.i);
+ }
+ OBJ(i2c) {
double r;
r = get_i2c_info(&obj->data.i2c.fd,
arg);
break;
+ case TAB:
+ {
+ 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;
+ }
+ break;
+
case ALIGNR:
{
int pos_x =
# 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
# tail logfile, lines (interval)
# Displays last N lines of supplied text
# text file. If interval is not supplied,
{
Window parent = win;
unsigned int i;
-
for (i = 0; i < 16 && parent != RootWindow(display, screen); i++) {
Window r, *children;
unsigned int n;
XQueryTree(display, parent, &r, &parent, &children, &n);
XFree(children);
}
-
XClearWindow(display, win);
}