commit 1ba8db8cefc4706c4e03c79ff054e6c20c31f269
parent 3f10bc6ef23f3c3ba5ec7bab60ed9a8158d97fd1
Author: jacob@nzxt <jacobouno@protonmail.com>
Date: Mon, 11 May 2020 14:28:54 -0700
Merge branch 'master' of git:/git/config
Diffstat:
2 files changed, 116 insertions(+), 102 deletions(-)
diff --git a/vimb/.config/vimb/config b/vimb/.config/vimb/config
@@ -1,95 +1,95 @@
-# vim: syntax=cfg
+# homepage: does not, unfortunatly, expand `~` or variables.
+set home-page=.config/homepage/index.html
-#set status-bar=false
-#set geolocation=never
-#set hint-timeout=1
-#set media-playback-allows-inline=false
-#set spell-checking
-#set dark-mode=true
+# zoom: full content zoom
+set default-zoom=100
-set scripts=false
-set images=false
+# download path: if none, working directory. supports `~` and varable expansion.
+set download-path=~/dl/
-# default webpage to open
-set home-page=.config/homepage/index.html
+# editor: use -f for graphical editors
+set editor-command=$TERMINAL -e $EDITOR %s
-# Path to the default download directory. If no download directory is set,
-# download will be written into current directory. The following pattern will
-# be expanded if the download is started '~/', '~user', '$VAR' and '${VAR}'.
-set download-path=~/dl/
+# whether tab cycles hrefs
+set tabs-to-links=true
-# Command with placeholder '%s' called if form field is opened with $EDITOR to
-# spawn the editor-like `x-terminal-emulator -e vim %s'. To use Gvim as the
-# editor, it's necessary to call it with `-f' to run it in the foreground.
-set editor-command=$TERMINAL -e "$EDITOR %s"
+# show search results before you've completed entering them.
+set incsearch=true
-# If enabled the inputbox will be hidden whenever it contains no text.
-set input-autohide=true
+# whether webinspecter option, on right click, is available.
+set webinspector=false
-# Enable or disable support for WebGL on pages.
-set webgl=true
+# hide input box providing it's empty.
+set input-autohide=true
-# While typing a search command, show where the pattern typed so far matches.
-set incsearch=true
-# The font family to use as the default for content that does not specify a
-# font.
+# fonts:
set default-font=DejaVu Sans
-
-# The font family used as the default for content using monospace font.
set monospace-font=DejaVu Sans Mono
-
-# The font family used as the default for content using sans-serif font.
set sans-serif-font=DejaVu Sans
-
-# The font family used as the default for content using serif font.
set serif-font=DejaVu Serif
-
-# The default font size used to display text.
set font-size=15
-
-# Default font size for the monospace font.
set monospace-font-size=13
-# Default Full-Content zoom level in percent. Default is 100.
-set default-zoom=100
-# Shortcuts allow the opening of an URI built up from a named template with
-# additional parameters.
-shortcut-add duck=https://duckduckgo.com/?q=$0
-shortcut-add d=http://dict.cc/?s=$0
-shortcut-add g=https://encrypted.google.com/search?q=$0
-shortcut-add y=http://www.youtube.com/results?search_query=$0
-shortcut-add s=https://www.startpage.com/do/dsearch?query=$0
-shortcut-add searx=https://searx.be/?q=$0&categories=general&language=en-US
-
-# Set the shortcut as the default, that is the shortcut to be used if no
-# shortcut is given and the string to open is not an URI.
-shortcut-default duck
-
-# Map page zoom in normal mode to keys commonly used across applications
-# + (zoom in), - (zoom out), = (zoom reset)
-nmap + zI
-nmap - zO
-nmap = zz
+# search engine shortcuts:
+shortcut-add dk=https://duckduckgo.com/lite/?q=$0
+shortcut-add sp=https://www.startpage.com/do/dsearch?query=$0
+shortcut-add x=https://searx.be/?q=$0&categories=general&language=en-US
+
+# set default URI shortcut:
+shortcut-default x
+
+
+# add keybinds: <CR> enters command immidiately. variable! toggles booleans (no equal sign).
+nmap <C-K> :set images!<CR>
+nmap <C-S> :set stylesheet!<CR>
+nmap <C-J> :set scripts!<CR>r<CR>
+
+# css:
set completion-css=color:#fff;background-color:#000;font:10pt monospace
set completion-selected-css=background-color:#ff0000;
set completion-hover-css=background-color:#ff0000;
set input-css=background-color:#000;color:#fff;font:10pt monospace
+
+# performence:
set accelerated-2d-canvas=true
set hardware-acceleration-policy=ondemand
+set webgl=true
+set images=false
+
+
+# security:
+set strict-ssl=true
+set scripts=false
set allow-file-access-from-file-urls=false
set allow-universal-access-from-file-urls=false
-set cookie-accept=never
-set default-font=monospace
-set font-size=15
-set hint-follow-last=false
-set hint-keys=asdfjkl
+# this option is not availible on openBSD as of yet.
+#set geolocation=never
+
+# Notice: Cookies;
+# if anyone knows how to allow cookies for only a specific site, like a searx
+# mirror, please tell me.
+
+# always, never, or origin (only host site)
+set cookie-accept=origin
+
+
+# navigation:
set scroll-step=85
set smooth-scrolling=false
+# basicly, arrow keys to move to various input boxes in general directions using some algerithm.
set spacial-navigation=false
-set strict-ssl=true
-set tabs-to-links=true
-set webinspector=false
+
+
+# hinting:
+# wheather to automaticly select if there is only one hint.
+set hint-follow-last=false
+
+# use the home row for hinting keys
+set hint-keys=asdfjkl
+
+# follow hint after n seconds of inactivity.
+set hint-timeout=1
diff --git a/vimb/.config/vimb/style.css b/vimb/.config/vimb/style.css
@@ -1,23 +1,53 @@
-/* dark theme */
-*,div,pre,textarea,body,input,td,tr,p {
- background-color: #0a0a10!important;
- background-color: #111!important;
- background-image: none !important;
- color: #f1f1f1 !important;
+/*
+ * Vimb specific stylesheet by Jacob R. Edwards. [https://github.com/jacobs-github]
+ * Original: [https://fanglingsu.github.io/vimb/howto.html#commented-sample-config]
+ *
+ * Features:
+ * - variables
+ *
+ * Style:
+ * - mainly dark backgrounds and white text with blue and orange highlights.
+ * - images are dimmed unless you hover over them.
+ * - scrollbar is disabled (when using webkit)
+ * - 90' angle borders
+ */
+
+/* variables */
+:root {
+ --background: #111;
+ --foreground: #f1f1f1;
+ --red: #fa3a3a;
+ --green: #3afa3a;
+ --blue: #3a3afa;
+}
+
+/* global */
+*,span,div,pre,textarea,body,input,td,tr,p {
+ background-color: var(--background)!important;
+ color: var(--foreground)!important;
+ background-image: none!important;
+ border-color: var(--blue)!important;
+ border-radius: 0!important;
+ box-shadow: none!important;
}
+
+/* headers */
h1,h2,h3,h4 {
- /* background-color: #303030 !important; */
- color: #ffffff !important;
+ color: var(--foreground)!important;
}
+
+/* links: normal, hovering, and visited */
a {
- color: #fa3a3a !important;
+ color: var(--red)!important;
}
a:hover,a:focus {
- color: #3afa3a !important;
+ color: var(--green)!important;
}
a:visited {
- color: #3a3afa !important;
+ color: var(--blue)!important;
}
+
+/* image */
img {
opacity: .4;
}
@@ -25,34 +55,18 @@ img:hover {
opacity: 1;
}
-/* Hint mode color styling
- * Color scheme: Base16 Eighties (https://github.com/chriskempson/base16)
- *
- * The precedence of the user style is lower than that of the website so you
- * have to mark your style definition to have higher priority.
- */
+/* scroll bar */
+body::-webkit-scrollbar {
+ display: none;
+}
+
+/* vimb hinting */
span[vimbhint^='label'] {
- background-color: #0a0a0a !important;
- border: 1px solid #3a3a3a !important;
- color: #fff !important;
- font: normal 10pt monospace !important;
- opacity: 1 !important;
+ font: normal 10pt monospace!important;
+ text-transform: uppercase!important;
+ opacity: 1!important;
padding: .1em .4em !important;
- text-transform: uppercase !important;
}
span[vimbhint='label focus'] {
- font: bold 10pt monospace !important;
-}
-*[vimbhint^='hint'] {
- background-color: #2a2a2a !important;
- color: #5a5a5a !important;
-}
-*[vimbhint='hint focus'] {
- background-color: #6699cc !important;
- color: #2d2d2d !important;
-}
-
-/* disable scroll bar */
-body::-webkit-scrollbar {
- display: none;
+ color: var(--red)!important;
}