From ec01c9be65b032da382513b628eb7f2fb9ee6962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yi=C4=9Fit=20=C3=87olako=C4=9Flu?= Date: Wed, 17 Mar 2021 01:57:33 +0300 Subject: [PATCH] Firefox config --- firefox/vimium.json | 26 ++++++++++++++++++++++++++ install.sh | 6 ++++++ 2 files changed, 32 insertions(+) create mode 100644 firefox/vimium.json diff --git a/firefox/vimium.json b/firefox/vimium.json new file mode 100644 index 00000000..9f14cf5b --- /dev/null +++ b/firefox/vimium.json @@ -0,0 +1,26 @@ +{ + "settingsVersion": "1.66", + "exclusionRules": [ + { + "pattern": "https?://mail.google.com/*", + "passKeys": "" + } + ], + "filterLinkHints": false, + "waitForEnterForFilteredHints": true, + "hideHud": false, + "keyMappings": "# Insert your preferred key mappings here.", + "linkHintCharacters": "sadfjklewcmpgh", + "linkHintNumbers": "0123456789", + "newTabUrl": "about:newtab", + "nextPatterns": "next,more,newer,>,›,→,»,≫,>>", + "previousPatterns": "prev,previous,back,older,<,‹,←,«,≪,<<", + "regexFindMode": false, + "ignoreKeyboardLayout": false, + "scrollStepSize": 60, + "smoothScroll": true, + "grabBackFocus": false, + "searchEngines": "w: https://www.wikipedia.org/w/index.php?title=Special:Search&search=%s Wikipedia\n\n# More examples.\n#\n# (Vimium supports search completion Wikipedia, as\n# above, and for these.)\n#\n# g: https://www.google.com/search?q=%s Google\n# l: https://www.google.com/search?q=%s&btnI I'm feeling lucky...\ny: https://www.youtube.com/results?search_query=%s Youtube\n# gm: https://www.google.com/maps?q=%s Google maps\n# b: https://www.bing.com/search?q=%s Bing\n# d: https://duckduckgo.com/?q=%s DuckDuckGo\n# az: https://www.amazon.com/s/?field-keywords=%s Amazon\n# qw: https://www.qwant.com/?q=%s Qwant", + "searchUrl": "https://www.google.com/search?q=", + "userDefinedLinkHintCss": "#vimiumHintMarkerContainer div.internalVimiumHintMarker, #vimiumHintMarkerContainer div.vimiumHintMarker {\n padding: 3px 4px;\n background: #444;\n border: none;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n}\n\n#vimiumHintMarkerContainer div span {\n color: #fff;\n text-shadow: none;\n}\n\n#vimiumHintMarkerContainer div > .matchingCharacter {\n opacity: 0.4;\n}\n\n#vimiumHintMarkerContainer div > .matchingCharacter ~ span {\n color: hotpink;\n}\n\n#vomnibar {\n background: #444;\n border: none;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n animation: show 200ms cubic-bezier(0, 0, 0.2, 1) forwards;\n}\n\n@keyframes show {\n 0% {\n transform: translateY(50px);\n opacity: 0;\n }\n 100% {\n transform: translateY(0);\n opacity: 1;\n }\n}\n\n#vomnibar .vomnibarSearchArea,\n#vomnibar input {\n color: #fff;\n background: transparent;\n border: none;\n}\n\n#vomnibar .vomnibarSearchArea {\n padding: 10px 30px;\n}\n\n#vomnibar input {\n padding: 0;\n}\n\n#vomnibar ul {\n padding: 0;\n background: #444;\n border-top: 1px solid #333;\n}\n\n#vomnibar li {\n padding: 10px;\n border-bottom: 1px solid #333;\n}\n\n#vomnibar li .vomnibarTopHalf,\n#vomnibar li .vomnibarBottomHalf {\n padding: 3px 0;\n}\n\n#vomnibar li .vomnibarSource {\n color: #aaa;\n}\n\n#vomnibar li em,\n#vomnibar li .vomnibarTitle {\n color: #aaa;\n}\n\n#vomnibar li .vomnibarUrl {\n color: #777;\n}\n\n#vomnibar li .vomnibarMatch {\n color: hotpink;\n font-weight: normal;\n}\n\n#vomnibar li .vomnibarTitle .vomnibarMatch {\n color: hotpink;\n}\n\n#vomnibar li.vomnibarSelected {\n background-color: #333;\n}\n\ndiv.vimiumHUD {\n background: #444;\n border: none;\n box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);\n}\n\ndiv.vimiumHUD span#hud-find-input,\ndiv.vimiumHUD .vimiumHUDSearchAreaInner {\n color: #fff;\n}\n\ndiv.vimiumHUD .hud-find {\n background-color: transparent;\n border: none;\n}\n\ndiv.vimiumHUD .vimiumHUDSearchArea {\n background-color: transparent;\n}" +} diff --git a/install.sh b/install.sh index 32d83a28..fff53566 100755 --- a/install.sh +++ b/install.sh @@ -141,6 +141,12 @@ sudo cp ~/.dotfiles/root/nancyj.flf /usr/share/figlet/fonts # Config cp ~/.dotfiles/config.env.def ~/.config.env +# Firefox +firefox-developer-edition -CreateProfile "yeet" +cp -r ~/.dotfiles/firefox/flyingfox/* ~/.mozilla/firefox/*.yeet +cp -r ~/.dotfiles/firefox/extensions ~/.mozilla/firefox/*.yeet +cp ~/.dotfiles/firefox/extensions.json ~/.mozilla/firefox/*.yeet + # Install vim and tmux plugins mkdir -p ~/.tmux/plugins vim -c ':PlugInstall'