aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
blob: 485c3b577954bfd79e29b7bd8dce7d038b84dbb8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/* 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[] = {
	{ "<S-o>", &tabopen },
	// { "d", ":tab_close" },
	// { "o", ":commandline_show \":open\"" },
	{ "i", &_insmode },
	// { "<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