From a639d6e63f752e7f26401e114fb371311ffa5ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Mon, 20 Nov 2023 09:55:52 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(browser):=20added=20surfingkey?= =?UTF-8?q?s=20configuration?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/browser/surfing-keys/surfingkeys.js | 52 +++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 .config/browser/surfing-keys/surfingkeys.js diff --git a/.config/browser/surfing-keys/surfingkeys.js b/.config/browser/surfing-keys/surfingkeys.js new file mode 100644 index 00000000..7ae6a4ff --- /dev/null +++ b/.config/browser/surfing-keys/surfingkeys.js @@ -0,0 +1,52 @@ +// an example to create a new mapping `ctrl-y` +api.mapkey("", "Show me the money", function () { + Front.showPopup( + "a well-known phrase uttered by characters in the 1996 film Jerry Maguire (Escape to close).", + ); +}); + +// an example to replace `T` with `gt`, click `Default mappings` to see how `T` works. +api.map("gt", "T"); + +// an example to remove mapkey `Ctrl-i` +api.unmap(""); + +// set theme +settings.theme = ` +.sk_theme { + font-family: JetBrainsMono Nerd Font; + font-size: 10pt; + background: #24273a; + color: #cad3f5; +} +.sk_theme tbody { + color: #cad3f5; +} +.sk_theme input { + color: #d0d0d0; +} +.sk_theme .url { + color: #61afef; +} +.sk_theme .annotation { + color: #56b6c2; +} +.sk_theme .omnibar_highlight { + color: #528bff; +} +.sk_theme .omnibar_timestamp { + color: #e5c07b; +} +.sk_theme .omnibar_visitcount { + color: #98c379; +} +.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) { + background: #303030; +} +.sk_theme #sk_omnibarSearchResult ul li.focused { + background: #3e4452; +} +#sk_status, #sk_find { + font-size: 20pt; +}`; +// click `Save` button to make above settings to take effect.