forked from lewisdoesstuff/bento-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ts
258 lines (243 loc) · 5.69 KB
/
config.ts
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
import type { Config } from "./src/types/config";
export const config: Config = {
// General
name: "Deniz",
openInNewTab: false,
title: "New Tab",
// Clock
twelveHourFormat: false,
flashSeparator: false,
// Font Family
font: {
// 'google' or 'local'
source: "google",
// Font name, e.g. 'Roboto' (case sensitive)
name: "Overpass",
},
// Theme
theme: "catppuccin-mocha",
// Place a background image in ./src/assets/images/ and provide the file name.
// Alternatively, provide a URL to an image. If the page is served over https, you may have issues loading images from insecure origins.
// Set to "" to disable.
backgroundImage: "",
themes: [
// List of installed themes, add your own themes in ./src/assets/css/themes and include it in the array below.
"arc",
"bento",
"catppuccin-frappe",
"catppuccin-macchiato",
"catppuccin-mocha",
"conceptdark", // dark mode only
"monokai",
"nord",
"sakura",
"solarized",
],
// Search Bar
searchBar: true,
searchEngine: "ddg", // google, ddg
barPlaceholder: "Search", // if blank, use search engine name. Set to ' ' for no placeholder.
autoFocusBar: true,
// Greetings
greetingMorning: "Good morning,",
greetingAfternoon: "Good afternoon,",
greetingEvening: "Good evening,",
greetingNight: "Sweet dreams,",
// Layout
layout: "bento", // 'bento', 'lists', 'buttons'
// Weather
weatherKey: import.meta.env.VITE_API_KEY, // Set your OpenWeatherMap key in .env - Move the included .env.example to .env
weatherIcons: "OneDark", // 'Onedark', 'Nord', 'Dark', 'White'
weatherUnit: "C", // 'F', 'C'
language: "en", // More languages in https://openweathermap.org/current#multi
trackLocation: true, // Request location from the browser. If false, or location is denied, use the coordinates below.
defaultLatitude: "37.775",
defaultLongitude: "-122.419",
// Automatic theme switching:
// "system" - Switches based on OS color preference
// "location" - Switches based on local sunrise/sunset (requires OpenWeatherMap API key)
// "preset" - Switches based on set hours
// "none" - No automatic switching
autoTheme: "system",
// If autoTheme is set to "preset", set the hours below.
darkModeOnTime: "18:30",
lightModeOnTime: "07:00",
// Set any of the below options to false to disable drawing the component on the page.
// If themeButton is set to false, the theme can only be set in this file.
// Disabling the weather component may cause issues with location-based light/dark switching.
componentsEnabled: {
searchBar: true,
themeButton: true,
clock: true,
greeter: true,
date: true,
weather: true,
},
// Buttons
// * Prefix brand icons with 'fab-' (e.g. 'fab-github')
buttons: [
// First buttons group
// If you're using the 'bento' layout, this is the only group that will be used.
[
{
name: "Github",
icon: "fab-github",
url: "https://github.com",
},
{
name: "Proxer",
icon: "play",
url: "https://proxer.me",
},
{
name: "YouTube",
icon: "fab-youtube",
url: "https://youtube.com",
},
{
name: "Reddit",
icon: "fab-reddit",
url: "https://reddit.com",
},
{
name: "Instagram",
icon: "fab-instagram",
url: "https://www.instagram.com",
},
{
name: "X",
icon: "fab-x-twitter",
url: "https://x.com/home",
},
],
// Second buttons group
// You muse use the 'buttons' layout to use this group.
[
{
name: "Music",
icon: "fab-spotify",
url: "https://open.spotify.com",
},
{
name: "twitter",
icon: "fab-twitter",
url: "https://twitter.com/",
},
{
name: "bot",
icon: "fab-discord",
url: "https://discord.com/app",
},
{
name: "Amazon",
icon: "fab-amazon",
url: "https://amazon.com/",
},
{
name: "Hashnode",
icon: "fab-hashnode",
url: "https://hashnode.com/",
},
{
name: "Figma",
icon: "fab-figma",
url: "https://figma.com/",
},
],
],
// Lists
lists: [
// First list group
// If you're using the 'bento' layout, this is the only group that will be used.
[
{
icon: "toolbox", // Icon for the list to use. The same as the buttons.
links: [
{
name: "Cobalt", // Display text for the link
url: "https://cobalt.tools", // URL to the page
},
{
name: "PDF Tools",
url: "https://tools.pdf24.org",
},
{
name: "Translator",
url: "https://www.deepl.com",
},
{
name: "Google Drive",
url: "https://drive.google.com/drive/home",
},
],
},
{
icon: "building-columns",
links: [
{
name: "S-Plan",
url: "https://splan.hdm-stuttgart.de/",
},
{
name: "Selma",
url: "https://selma.hdm-stuttgart.de/",
},
{
name: "Moodle",
url: "https://moodle.hdm-stuttgart.de",
},
{
name: "ILIAS",
url: "https://learn.mi.hdm-stuttgart.de",
},
],
},
],
// Second list group
// You muse use the 'lists' layout to use this group.
[
{
icon: "house-user",
links: [
{
name: "Spotify",
url: "https://www.spotify.com",
},
{
name: "Reddit",
url: "https://www.reddit.com",
},
{
name: "Hashnode",
url: "https://www.hashnode.com",
},
{
name: "Pocket",
url: "https://www.pocket.com",
},
],
},
{
icon: "fab-github",
links: [
{
name: "Front",
url: "https://www.reddit.com/r/Frontend/",
},
{
name: "Rust",
url: "https://www.reddit.com/r/rust/",
},
{
name: "Go",
url: "https://www.reddit.com/r/golang/",
},
{
name: "Repos",
url: "https://github.com/migueravila",
},
],
},
],
],
};