Skip to content

Instantly share code, notes, and snippets.

@brynedwards
Last active September 20, 2017 11:20
Show Gist options
  • Save brynedwards/460098b837bde402636ba43af3c0b626 to your computer and use it in GitHub Desktop.
Save brynedwards/460098b837bde402636ba43af3c0b626 to your computer and use it in GitHub Desktop.
Surfingkeys config
// Surfingkeys 0.9.1
/*
for (let k of [ "sb", "sw", "ob"
, "ow", "cp", ";cp"
, ";ap", "spa", "spb"
, "spd", "sps", "spc"
, "spi", "sfr", "zQ"
, "zz", "zR", "ab" , "Q", "q", "ag"
// , "af"
]) { unmap(k); }
*/
map('w', 'k');
map('s', 'j');
map('o', 'go');
Hints.style('border: solid 1px #fff; color:#fff; background: #000; font-size: 9pt');
removeSearchAliasX('w');
addSearchAlias('w', 'Wikipedia', 'https://en.wikipedia.org/w/index.php?search=', 'https://en.wikipedia.org/w/api.php?action=opensearch&format=json&search=', function(response) {
var res = JSON.parse(response.text);
Omnibar.listWords(res[1]);
});
addSearchAliasX('s', 'StartPage', 'https://www.startpage.com/do/dsearch?cat=web&pl=opensearch&language=english&query=');
settings.defaultSearchEngine = 's'
settings.theme = `
.sk_theme {
background: #000;
color: #aaa;
}
.sk_theme input {
color: #ffdd33;
}
.sk_theme ul > li > .title {
color: #fff;
}
.sk_theme ul > li > .url {
color: #ddd;
}
.sk_theme .focused {
background: #ffdd33 !important;
}
.sk_theme ul > li.focused > .title,
.sk_theme ul > li.focused > .url {
color: #000;
}
#sk_omnibar > #sk_omnibarSearchResult > ul > li:nth-child(odd) {
background: #212121;
}
#sk_omnibar > #sk_omnibarSearchResult > ul > li:nth-child(even) {
background: #333;
}
.sk_theme .url {
color: #eee;
}
.sk_theme .annotation {
color: #eee;
}
#sk_richKeystroke {
z-index: 2147483001;
position: absolute;
background: #000;
max-width: 18%;
bottom: -4px;
right: -4px;
padding: 4px 20px 8px 4px;
// border: 3px solid #fff;
// border-radius: 16px;
}`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment