The format of the file is <keyword> = <setting>.
E.g. color_focus = red.
.Pp
+Enabling or disabling an option is done by using 1 or 0 respectively.
+.Pp
The file supports the following keywords:
.Bl -tag -width "C-M-EscapeXXX" -offset indent -compact
.It Ic color_focus
.It Ic bar_font
Status bar font.
.It Ic bar_action
-External script to populate additional information in the status bar such as
+External script that populates additional information in the status bar such as
battery life etc.
.It Ic bar_delay
-Update frequency of external script on the status bar.
+Update frequency, in seconds, of external script that populates the status bar.
.It Ic spawn_term
External application that gets spawned when M-S-[Return] is used.
.It Ic dialog_ratio
This ratio is the screen size as to what they will be resized.
E.g 0.6 is 60% of the physical screen size.
.It Ic screenshot_enabled
-Set to 1 to enable screen-shotting capability.
+Enable or disable screenshot capability.
+.It Ic screenshot_app
+Set to the script that will take screenshots.
+It will be called with "full" or "window" as parameter 1 to indicate what
+screenshot action is expected.
+The script shall handle those cases accordingly.
.El
.Pp
Colors need to be specified per the
.Sh HISTORY
.Nm
was inspired by xmonad & dwm.
-.Pp
-.Nm
-first appeared in
-.Ox 4.5 .
/* terminal + args */
char *spawn_term[] = { "xterm", NULL };
-char *spawn_screenshot[] = { "screenshot.sh", NULL, NULL }; /* XXX get from conf */
+char *spawn_screenshot[] = { "screenshot.sh", NULL, NULL };
char *spawn_menu[] = { "dmenu_run", "-fn", NULL,
"-nb", NULL, "-nf", NULL, "-sb", NULL, "-sf", NULL, NULL };
case 's':
if (!strncmp(var, "spawn_term", strlen("spawn_term")))
- asprintf(&spawn_term[0], "%s", val); /* XXX args? */
+ asprintf(&spawn_term[0], "%s", val);
if (!strncmp(var, "screenshot_enabled",
strlen("screenshot_enabled")))
ss_enabled = atoi(val);
+ if (!strncmp(var, "screenshot_app",
+ strlen("screenshot_app")))
+ asprintf(&spawn_screenshot[0], "%s", val);
break;
default:
goto bad;