diff options
| author | Arslaan Pathan <[email protected]> | 2026-03-26 20:35:16 +1300 |
|---|---|---|
| committer | Arslaan Pathan <[email protected]> | 2026-03-26 20:35:16 +1300 |
| commit | ebf52e6353c842cc7a9ec6a8f93813d7bd7f339f (patch) | |
| tree | 833bdcd05c8939c237fda7fe4fbd6015794bf85a /config.def.h | |
| parent | 57eaa71562fe5c07e70553036502bbf043023259 (diff) | |
| download | cinnamon-browser-ebf52e6353c842cc7a9ec6a8f93813d7bd7f339f.tar.xz cinnamon-browser-ebf52e6353c842cc7a9ec6a8f93813d7bd7f339f.zip | |
Some refactoring, Cinnamon struct, defconfig rather than just config
Diffstat (limited to 'config.def.h')
| -rw-r--r-- | config.def.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/config.def.h b/config.def.h new file mode 100644 index 0000000..eebd436 --- /dev/null +++ b/config.def.h @@ -0,0 +1,40 @@ +/* This file (and this file ONLY) is released into the public domain. + * No rights reserved. Copy, modify, do whatever you want. */ + +#ifndef CONFIG_H +#define CONFIG_H + +/* 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; + const char* command; +} Keybind; + +/* TODO: make this use functions and not command strings */ +static const Keybind keybinds[] = { + { "<S-o>", ":tab_open" }, + { "d", ":tab_close" }, + { "o", ":commandline_show \":open\"" }, + { "i", ":mode insert" }, + { "<A-1>", ":tab_select 1" }, + { "<A-2>", ":tab_select 2" }, + { "<A-3>", ":tab_select 3" }, + { "<A-4>", ":tab_select 4" }, + { "<A-5>", ":tab_select 5" }, + { "<A-6>", ":tab_select 6" }, + { "<A-7>", ":tab_select 7" }, + { "<A-8>", ":tab_select 8" }, + { "<A-9>", ":tab_select 9" }, + { "<A-0>", ":tab_select 10" }, +}; + +#endif |
