summaryrefslogtreecommitdiff
path: root/cfg.def.h
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 18:49:53 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 18:49:53 -0700
commit7e47f1cea16741008c626fb39a1d6298064608cf (patch)
tree7f57a77bf362cf35f14f31c86ca1c5e2b3039c5a /cfg.def.h
parent1ee2efb9667af35d5e5ccfea6824701c2fdbce44 (diff)
move example commands to cfg.def.h
Diffstat (limited to 'cfg.def.h')
-rw-r--r--cfg.def.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/cfg.def.h b/cfg.def.h
index c9f864f..ad2c9cd 100644
--- a/cfg.def.h
+++ b/cfg.def.h
@@ -39,3 +39,22 @@ static struct scheme schemes[SchemeLast] = {
},
};
+static struct command browser_commands[] = {
+ { .bind = "s", .name = "chrome", .nchildren = 0, .children = NULL },
+ { .bind = "c", .name = "chromium", .nchildren = 0, .children = NULL },
+ { .bind = "f", .name = "firefox", .nchildren = 0, .children = NULL },
+};
+
+static const struct command commands[] = {
+ { .bind = "b",
+ .name = "browsers",
+ .nchildren = LENGTH(browser_commands),
+ .children = browser_commands
+ },
+
+ { .bind = "e",
+ .name = "emacs-dev",
+ .children = NULL,
+ .nchildren = 0
+ },
+};