/* This file is released into the public domain. * No rights reserved. Copy, modify, do whatever you want. */ #ifndef CONFIG_H #define CONFIG_H /* forward declarations */ int mode; /* Cinnamon is declared in main.c before including config.h. Yes, I know this code is held together by hopes and dreams, but good enough. */ void tabopen(Cinnamon* cinnamon); /* default window width/height, can be resized after. */ #define WINDOW_WIDTH 1024 #define WINDOW_HEIGHT 768 #define HOMEPAGE "https://start.duckduckgo.com" /* this value is required for the browser to launch if its not there the browser will exit with code 1 do not ask any questions */ #define ObamaPrism /* Keybind definitions */ typedef struct { const char* key; void (*fptr)(Cinnamon*); } Keybind; static void _insmode(Cinnamon* cinnamon) { mode = 1; } static const Keybind keybinds[] = { { "", &tabopen }, // { "d", ":tab_close" }, // { "o", ":commandline_show \":open\"" }, { "i", &_insmode }, // { "", ":tab_select 1" }, // { "", ":tab_select 2" }, // { "", ":tab_select 3" }, // { "", ":tab_select 4" }, // { "", ":tab_select 5" }, // { "", ":tab_select 6" }, // { "", ":tab_select 7" }, // { "", ":tab_select 8" }, // { "", ":tab_select 9" }, // { "", ":tab_select 10" }, }; #endif