From 70629701efb30043e3554fa099018efbf1ac3a1d Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 20:42:23 -0700 Subject: keybindings help --- cfg.def.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cfg.def.h') diff --git a/cfg.def.h b/cfg.def.h index d63a88c..3a8d83d 100644 --- a/cfg.def.h +++ b/cfg.def.h @@ -55,11 +55,16 @@ static struct scheme schemes[SchemeLast] = { .children = (cs), \ }, +static struct command test_commands[] = { + DEFCMD("t", "test command", "echo ok") +}; + static struct command browser_commands[] = { DEFCMD("s", "chrome scaled", "chrome") DEFCMD("c", "chromium", "chromium") DEFCMD("f", "firefox", "firefox") DEFCMD("k", "kill chrome", "pkill --oldest chromium") + DEFPREFIX("t", "test nested prefix", test_commands) }; static struct command commands[] = { -- cgit v1.2.3