startpage/js/config.js
2025-01-28 20:47:40 -08:00

230 lines
5.3 KiB
JavaScript

const CONFIG = {
/**
* The category, name, key, url, search path, color, icon, and quicklaunch properties for your commands.
* Icons must be added to "icons" folder and their values/names must be updated.
* If none of the specified keys are matched, the '*' key is used.
* Commands without a category don't show up in the help menu.
* Update line 11 and 13 if you prefer using Google.
*/
commands: [
{
name: "leta",
key: "*",
url: "https://leta.mullvad.net/",
search: "/?q={}",
},
{
category: "my accounts",
name: "mail",
key: "m",
url: "https://mail.shilohcode.com",
search: "/#search/text={}",
color: "linear-gradient(135deg, #dd5145, #dd5145)",
icon: "mail",
quickLaunch: true,
},
{
category: "my accounts",
name: "cloud",
key: "c",
url: "https://cloud.shilohcode.com",
search: "/drive/search?q={}",
color: "linear-gradient(135deg, #FFD04B, #1EA362, #4688F3)",
icon: "cloud",
quickLaunch: true,
},
{
category: "my accounts",
name: "meet",
key: "mtg",
url: "https://jitsi.remnant.chat",
color: "#5682a3",
icon: "meet",
quickLaunch: false,
},
{
category: "my accounts",
name: "projects",
key: "p",
url: "https://taiga.shilohcode.com",
color: "linear-gradient(135deg, #25D366, #128C7E, #075E54)",
icon: "projects",
quickLaunch: true,
},
{
category: "my accounts",
name: "passwords",
key: "ps",
url: "https://vault.shilohcode.com",
color: "#7289da",
icon: "vault",
quickLaunch: false,
},
{
category: "dev",
name: "share secrets",
key: "sh",
url: "https://yopass.se/",
color: "#7289da",
icon: "share",
quickLaunch: false,
},
{
category: "dev",
name: "share files",
key: "sh",
url: "https://wormhole.app/",
color: "#7289da",
icon: "share",
quickLaunch: false,
},
{
category: "dev",
name: "githaven",
key: "g",
url: "https://githaven.org",
search: "/search?q={}",
color: "linear-gradient(135deg, #2b2b2b, #3b3b3b)",
icon: "githaven",
quickLaunch: true,
},
{
category: "dev",
name: "last hour hosting",
key: "hc",
url: "https://my.lasthourhosting.org",
search: "/search?q={}",
color: "linear-gradient(135deg, #53341C, #F48024)",
icon: "lasthour",
quickLaunch: true,
},
{
category: "dev",
name: "ai tools",
key: "hc",
url: "https://huggingface.co/chat/",
search: "/search?q={}",
color: "linear-gradient(135deg, #53341C, #F48024)",
icon: "huggingchat",
quickLaunch: true,
},
{
category: "dev",
name: "crm",
key: "crm",
url: "https://crm.shilohcode.com",
search: "/search?q={}",
color: "linear-gradient(135deg, #53341C, #F48024)",
icon: "share",
quickLaunch: true,
},
{
category: "Uptime",
name: "check status",
key: "st",
url: "https://status.shilohcode.com",
search: "/search?q={}",
color: "linear-gradient(135deg, #53341C, #F48024)",
icon: "status",
quickLaunch: false,
},
],
/**
* Get suggestions as you type.
*/
suggestions: true,
suggestionsLimit: 4,
/**
* The order and limit for each suggestion influencer. An "influencer" is
* just a suggestion source. The following influencers are available:
*
* - "Commands" suggestions come from CONFIG.commands
* - "Default" suggestions come from CONFIG.defaultSuggestions
* - "DuckDuckGo" suggestions come from the duck duck go search api
* - "History" suggestions come from your previously entered queries
*/
influencers: [
{
name: "Commands",
limit: 2,
},
{
name: "Default",
limit: 4,
},
{
name: "History",
limit: 1,
},
{
name: "DuckDuckGo",
limit: 4,
},
],
/**
* Default search suggestions for the specified queries.
*/
defaultSuggestions: {
g: ["githaven.org"],
m: ["mail.shilohcode.com"],
},
/**
* Instantly redirect when a key is matched. Put a space before any other
* queries to prevent unwanted redirects.
*/
instantRedirect: false,
/**
* Open triggered queries in a new tab.
*/
newTab: true,
/**
* Dynamic overlay background colors when command domains are matched.
*/
colors: true,
/**
* Invert color theme
*/
invertedColors: false,
/**
* Show keys instead of icons
*/
showKeys: false,
/**
* The delimiter between a command key and your search query. For example,
* to search GitHub for potatoes, you'd type "g:potatoes".
*/
searchDelimiter: ":",
/**
* The delimiter between a command key and a path. For example, you'd type
* "r/r/unixporn" to go to "https://reddit.com/r/unixporn".
*/
pathDelimiter: "/",
/**
* The delimiter between the hours and minutes on the clock.
*/
clockDelimiter: " ",
/**
* Show a twenty-four-hour clock instead of a twelve-hour clock with AM/PM.
*/
twentyFourHourClock: true,
/**
* File extension for icon images
*/
iconExtension: "png",
};