.Os
.Sh NAME
.Nm scrotwm
-.Nd is a small dynamic tiling window manager for X11.
+.Nd small dynamic tiling window manager for X11.
.Sh SYNOPSIS
.Nm scrotwm
.Sh DESCRIPTION
.It Ic bar_action
External script to populate additional information in the status bar such as
battery life etc.
+.It Ic bar_delay
+Update frequency of external script on the status bar.
.It Ic spawn_term
External application that gets spawned when M-S-[Return] is used.
.It Ic dialog_ratio
int bar_pipe[2];
char bar_ext[SWM_BAR_MAX];
sig_atomic_t bar_alarm = 0;
+int bar_delay = 30;
int bar_enabled = 1;
int bar_extra = 1;
int bar_extra_running = 0;
asprintf(&bar_fonts[0], "%s", val);
else if (!strncmp(var, "bar_action", strlen("bar_action")))
asprintf(&bar_argv[0], "%s", val);
+ else if (!strncmp(var, "bar_delay", strlen("bar_delay")))
+ bar_delay = atoi(val);
else
goto bad;
break;
}
}
XSync(display, False);
-
- alarm(60);
+ alarm(bar_delay);
}
void
bar_color[1] = black
bar_font_color[1] = rgb:a0/a0/a0
bar_font = -*-terminus-*-*-*-*-*-*-*-*-*-*-*-*
-#bar_action = "./baraction.sh"
+#bar_action = ./baraction.sh
+#bar_delay = 1
# spawn app
spawn_term = xterm