From d20be3112770c9fd252c91306675717dcb59e28f Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 29 Sep 2021 10:54:50 -0700 Subject: chore(wm): add forgotten files --- sys/cmd/wm/config.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 sys/cmd/wm/config.h (limited to 'sys/cmd/wm/config.h') diff --git a/sys/cmd/wm/config.h b/sys/cmd/wm/config.h new file mode 100644 index 0000000..dbeeaf6 --- /dev/null +++ b/sys/cmd/wm/config.h @@ -0,0 +1,29 @@ +/* appearance */ +CONFIG(int, sloppyfocus, 1); +CONFIG(int, borderpixel, 1); +CONFIG(float, rootcolor[], {0.3, 0.3, 0.3, 1.0}); +CONFIG(float, bordercolor[], {0.5, 0.5, 0.5, 1.0}); +CONFIG(float, focuscolor[], {1.0, 0.0, 0.0, 1.0}); + +/* sampling */ +CONFIG(int, repeat_rate, 25); +CONFIG(int, repeat_delay, 600); + +/* commands */ +CONFIG(char*, termcommand[], { "alacritty", nil }); + +/* keybindings */ +#define MOD(a) WLR_MODIFIER_##a +#define MODKEY WLR_MODIFIER_ALT +#define KEY(a) XKB_KEY_##a + +CONFIG(Key, binding[], { + /* modifier key function argument */ + { MODKEY, KEY(Return), spawn, {.v = cfg·termcommand} }, + { MODKEY|MOD(SHIFT), KEY(Q), quit, {.v = nil} }, +}); +CONFIG(Key*, endbinding, arrend(cfg·binding)); + +#undef MOD +#undef MODKEY +#undef KEY -- cgit v1.2.1