summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Noll <nnoll523@gmail.com>2020-07-19 09:46:48 -0700
committerNicholas Noll <nnoll523@gmail.com>2020-07-19 09:46:48 -0700
commitb0ffe472b4ff01bc036f68216e2be2f8c49130ad (patch)
tree0938e37190e7275e23b77d0bec6c40e4424e694a
parentfe7a3f08f7dd2a23caa0253fdc603a833ab606c0 (diff)
chore: update
-rw-r--r--.config/fish/fish_variables32
-rwxr-xr-x.config/homelayout.sh2
-rw-r--r--.config/nvim/init.vim32
-rw-r--r--.config/nvim/leaders.vim4
-rw-r--r--.config/nvim/macros.vim25
-rw-r--r--.config/nvim/plugins.vim21
-rw-r--r--.config/picom/config2
-rw-r--r--.config/qutebrowser/bookmarks/urls1
-rw-r--r--.config/qutebrowser/config.py295
-rw-r--r--.config/qutebrowser/quickmarks3
-rw-r--r--.config/tmux/config8
-rw-r--r--.config/zathura/zathurarc1
-rw-r--r--.profile5
-rw-r--r--.xinitrc74
14 files changed, 127 insertions, 378 deletions
diff --git a/.config/fish/fish_variables b/.config/fish/fish_variables
deleted file mode 100644
index fa8bff9..0000000
--- a/.config/fish/fish_variables
+++ /dev/null
@@ -1,32 +0,0 @@
-# This file contains fish universal variable definitions.
-# VERSION: 3.0
-SETUVAR __fish_initialized:3100
-SETUVAR fish_color_autosuggestion:555\x1ebrblack
-SETUVAR fish_color_cancel:\x2dr
-SETUVAR fish_color_command:005fd7
-SETUVAR fish_color_comment:990000
-SETUVAR fish_color_cwd:green
-SETUVAR fish_color_cwd_root:red
-SETUVAR fish_color_end:009900
-SETUVAR fish_color_error:ff0000
-SETUVAR fish_color_escape:00a6b2
-SETUVAR fish_color_history_current:\x2d\x2dbold
-SETUVAR fish_color_host:normal
-SETUVAR fish_color_host_remote:yellow
-SETUVAR fish_color_match:\x2d\x2dbackground\x3dbrblue
-SETUVAR fish_color_normal:normal
-SETUVAR fish_color_operator:00a6b2
-SETUVAR fish_color_param:00afff
-SETUVAR fish_color_quote:999900
-SETUVAR fish_color_redirection:00afff
-SETUVAR fish_color_search_match:bryellow\x1e\x2d\x2dbackground\x3dbrblack
-SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
-SETUVAR fish_color_status:red
-SETUVAR fish_color_user:brgreen
-SETUVAR fish_color_valid_path:\x2d\x2dunderline
-SETUVAR fish_greeting:Welcome\x20to\x20fish\x2c\x20the\x20friendly\x20interactive\x20shell\x0aType\x20\x60help\x60\x20for\x20instructions\x20on\x20how\x20to\x20use\x20fish
-SETUVAR fish_key_bindings:fish_default_key_bindings
-SETUVAR fish_pager_color_completion:\x1d
-SETUVAR fish_pager_color_description:B3A06D\x1eyellow
-SETUVAR fish_pager_color_prefix:white\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
-SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
diff --git a/.config/homelayout.sh b/.config/homelayout.sh
deleted file mode 100755
index 83cf76e..0000000
--- a/.config/homelayout.sh
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-xrandr --output DP-1 --off --output DP-2 --off --output DP-3 --mode 1920x1080 --pos 1920x0 --rotate normal --output HDMI-1 --mode 1920x1080 --pos 0x0 --rotate normal
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
index f0c41a5..05ad1c6 100644
--- a/.config/nvim/init.vim
+++ b/.config/nvim/init.vim
@@ -1,12 +1,11 @@
""""""""""""""""""""""""""""""""""""""""""""""""
-" VIM PLUGINS
-""""""""""""""""""""""""""""""""""""""""""""""""
+" plugins
+
call plug#begin('~/.config/nvim/plugged')
" Themes & ornamentation
Plug 'junegunn/seoul256.vim'
-Plug 'mhartington/oceanic-next'
-Plug 'gilgigilgil/anderson.vim'
+Plug 'noahfrederick/vim-noctu'
" Universal coding help
Plug 'tpope/vim-surround' " Extend vim's ability to change surronding marks.
@@ -17,14 +16,17 @@ Plug 'nathanaelkane/vim-indent-guides' " Indent blocks.
Plug 'unblevable/quick-scope' " Quick horizontal movements.
Plug 'https://github.com/adelarsq/vim-matchit' " Extended match operations for % operator
+Plug 'neovim/nvim-lsp'
+Plug 'haorenW1025/diagnostic-nvim'
+Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
+Plug 'Shougo/deoplete-lsp'
+
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim' " Fuzzy file searchs
+Plug 'junegunn/vim-easy-align'
Plug 'simeji/winresizer' " Nice window resize
-" Writing help
-Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
-
" Version control
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
@@ -32,8 +34,6 @@ Plug 'tpope/vim-fugitive'
" Language specific
Plug 'lervag/vimtex' " LaTeX
Plug 'plasticboy/vim-markdown' " Markdown
-Plug 'dag/vim-fish' " Fish
-Plug 'fatih/vim-go' " Go
Plug 'vim-python/python-syntax' " Python
" Formatting
@@ -44,21 +44,21 @@ call plug#end()
packadd termdebug
""""""""""""""""""""""""""""""""""""""""""""""""
-" VIM COLOR SCHEME
-""""""""""""""""""""""""""""""""""""""""""""""""
+" color scheme
syntax enable
-if (has("termguicolors"))
+if $DISPLAY == ""
+ colorscheme noctu
+else
set termguicolors
+ colorscheme seoul256
+ let g:seoul256_srgb=1
endif
-" colo seoul256
-colorscheme seoul256
set laststatus=2
""""""""""""""""""""""""""""""""""""""""""""""""
-" PARTITIONED FILES
-""""""""""""""""""""""""""""""""""""""""""""""""
+" modules
source ~/.config/nvim/leaders.vim
source ~/.config/nvim/normalmode.vim
diff --git a/.config/nvim/leaders.vim b/.config/nvim/leaders.vim
index 6b8b290..2c72a41 100644
--- a/.config/nvim/leaders.vim
+++ b/.config/nvim/leaders.vim
@@ -11,10 +11,6 @@ nnoremap <Leader>o :only<CR>
nnoremap <Leader>\| :wincmd \|<CR>
nnoremap <Leader>= :wincmd =<CR>
nnoremap <Leader>r :wincmd R<CR>
-nnoremap <Leader>h :wincmd h<CR>
-nnoremap <Leader>j :wincmd j<CR>
-nnoremap <Leader>k :wincmd k<CR>
-nnoremap <Leader>l :wincmd l<CR>
" remove highlights
diff --git a/.config/nvim/macros.vim b/.config/nvim/macros.vim
index 45e49bf..016a067 100644
--- a/.config/nvim/macros.vim
+++ b/.config/nvim/macros.vim
@@ -1,10 +1,15 @@
"""""""""""""""""""""""""""""""""""""""""""""
" GENERAL
-"""""""""""""""""""""""""""""""""""""""""""""
" TERMINAL HOTKEYS
:tnoremap <Esc> <C-\><C-n>
+" Start interactive EasyAlign in visual mode (e.g. vipga)
+xmap ga <Plug>(EasyAlign)
+
+" Start interactive EasyAlign for a motion/text object (e.g. gaip)
+nmap ga <Plug>(EasyAlign)
+
" Tmux integration.
if empty($TMUX)
nmap <silent> <c-k> :wincmd k<CR>
@@ -44,11 +49,25 @@ else
endif
+" pipe buffer to stdin and capture stdout to a new window
+function! FilterToNewWindow()
+ let TempFile = tempname()
+ let SaveModified = &modified
+ exe 'w ' . TempFile
+ exe '!chmod +x ' . TempFile
+ let &modified = SaveModified
+ exe ':e ' . TempFile
+ exe '%! ' . @%
+ exe 'w!'
+endfunction
+
+" bash execute contents of current buffer and filter it to a new window
+command! FW call FilterToNewWindow()
+
"""""""""""""""""""""""""""""""""""""""""""""
" CODING SPECFIC
-"""""""""""""""""""""""""""""""""""""""""""""
-" GOLANG
+" golang
command GoProfCPU execute "!go tool pprof --web $GOPATH/bin/%:r cpu.pprof"
command GoProfMEM execute "!go tool pprof --web $GOPATH/bin/%:r mem.pprof"
diff --git a/.config/nvim/plugins.vim b/.config/nvim/plugins.vim
index 00e1c11..57400f1 100644
--- a/.config/nvim/plugins.vim
+++ b/.config/nvim/plugins.vim
@@ -1,6 +1,27 @@
""""""""""""""""""""""""""""""""""""""
" Generic coding plugins
""""""""""""""""""""""""""""""""""""""
+lua <<
+ local lsp = require 'nvim_lsp'
+ local dig = require 'diagnostic'
+
+ local function on_attach()
+ dig.on_attach()
+ end
+
+ lsp.clangd.setup{on_attach=on_attach}
+ lsp.pyls.setup{on_attach=on_attach}
+.
+
+nnoremap <silent> gd <cmd>lua vim.lsp.buf.declaration()<CR>
+nnoremap <silent> gD <cmd>lua vim.lsp.buf.definition()<CR>
+nnoremap <silent> gr <cmd>lua vim.lsp.buf.references()<CR>
+nnoremap <silent> gi <cmd>lua vim.lsp.buf.implementation()<CR>
+nnoremap <silent> K <cmd>lua vim.lsp.buf.hover()<CR>
+nnoremap <silent> g0 <cmd>lua vim.lsp.buf.document_symbol()<CR>
+
+nnoremap <silent> ]c :NextDiagnosticCycle<CR>
+nnoremap <silent> [c :PrevDiagnostic<CR>
let g:deoplete#enable_at_startup = 1
let g:diagnostic_insert_delay = 1
diff --git a/.config/picom/config b/.config/picom/config
index a402f2f..0440832 100644
--- a/.config/picom/config
+++ b/.config/picom/config
@@ -32,5 +32,5 @@ opacity-rule = [
"99:class_g = 'Gimp'",
];
-vsync = true;
+vsync = false;
xrender-sync-fence = true;
diff --git a/.config/qutebrowser/bookmarks/urls b/.config/qutebrowser/bookmarks/urls
index 1e7497d..385d21a 100644
--- a/.config/qutebrowser/bookmarks/urls
+++ b/.config/qutebrowser/bookmarks/urls
@@ -2,3 +2,4 @@ https://stackoverflow.com/questions/1083172/how-to-mmap-the-stack-for-the-clone-
http://www.sandpile.org/x86/gpr.htm sandpile.org -- x86 architecture -- general purpose registers
https://github.com/danistefanovic/build-your-own-x danistefanovic/build-your-own-x: 🤓 Build your own (insert technology here)
https://chryswoods.com/vector_c++/immintrin.html chryswoods.com | Part 2: AVX Intrinsics
+https://superuser.com/questions/227991/where-to-upload-pgp-public-key-are-keyservers-still-surviving Where to upload PGP public key? Are KeyServers still surviving? - Super User
diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py
index 10af9ec..1f4ee49 100644
--- a/.config/qutebrowser/config.py
+++ b/.config/qutebrowser/config.py
@@ -1,3 +1,6 @@
+# ------------------------------------------------------------------------
+# colors
+
nord = {
# Polar Night
'nord0': '#2e3440',
@@ -21,337 +24,148 @@ nord = {
'nord15': '#b48ead',
}
-## Background color of the completion widget category headers.
-## Type: QssColor
c.colors.completion.category.bg = nord['nord0']
-
-## Bottom border color of the completion widget category headers.
-## Type: QssColor
c.colors.completion.category.border.bottom = nord['nord0']
-
-## Top border color of the completion widget category headers.
-## Type: QssColor
c.colors.completion.category.border.top = nord['nord0']
-
-## Foreground color of completion widget category headers.
-## Type: QtColor
c.colors.completion.category.fg = nord['nord5']
-
-## Background color of the completion widget for even rows.
-## Type: QssColor
c.colors.completion.even.bg = nord['nord1']
-
-## Background color of the completion widget for odd rows.
-## Type: QssColor
c.colors.completion.odd.bg = nord['nord2']
-
-## Text color of the completion widget.
-## Type: QtColor
c.colors.completion.fg = nord['nord4']
-
-## Background color of the selected completion item.
-## Type: QssColor
c.colors.completion.item.selected.bg = nord['nord3']
-
-## Bottom border color of the selected completion item.
-## Type: QssColor
c.colors.completion.item.selected.border.bottom = nord['nord3']
-
-## Top border color of the completion widget category headers.
-## Type: QssColor
c.colors.completion.item.selected.border.top = nord['nord3']
-
-## Foreground color of the selected completion item.
-## Type: QtColor
c.colors.completion.item.selected.fg = nord['nord6']
-
-## Foreground color of the matched text in the completion.
-## Type: QssColor
c.colors.completion.match.fg = nord['nord13']
-
-## Color of the scrollbar in completion view
-## Type: QssColor
c.colors.completion.scrollbar.bg = nord['nord1']
-
-## Color of the scrollbar handle in completion view.
-## Type: QssColor
c.colors.completion.scrollbar.fg = nord['nord5']
-## Background color for the download bar.
-## Type: QssColor
c.colors.downloads.bar.bg = nord['nord0']
-
-## Background color for downloads with errors.
-## Type: QtColor
c.colors.downloads.error.bg = nord['nord11']
-
-## Foreground color for downloads with errors.
-## Type: QtColor
c.colors.downloads.error.fg = nord['nord5']
-
-## Color gradient stop for download backgrounds.
-## Type: QtColor
c.colors.downloads.stop.bg = nord['nord15']
-
-## Color gradient interpolation system for download backgrounds.
-## Type: ColorSystem
-## Valid values:
-## - rgb: Interpolate in the RGB color system.
-## - hsv: Interpolate in the HSV color system.
-## - hsl: Interpolate in the HSL color system.
-## - none: Don't show a gradient.
c.colors.downloads.system.bg = 'none'
-## Background color for hints. Note that you can use a `rgba(...)` value
-## for transparency.
-## Type: QssColor
c.colors.hints.bg = nord['nord13']
-
-## Font color for hints.
-## Type: QssColor
c.colors.hints.fg = nord['nord0']
-
-## Font color for the matched part of hints.
-## Type: QssColor
c.colors.hints.match.fg = nord['nord10']
-## Background color of the keyhint widget.
-## Type: QssColor
c.colors.keyhint.bg = nord['nord1']
-
-## Text color for the keyhint widget.
-## Type: QssColor
c.colors.keyhint.fg = nord['nord5']
-
-## Highlight color for keys to complete the current keychain.
-## Type: QssColor
c.colors.keyhint.suffix.fg = nord['nord13']
-
-## Background color of an error message.
-## Type: QssColor
c.colors.messages.error.bg = nord['nord11']
-## Border color of an error message.
-## Type: QssColor
c.colors.messages.error.border = nord['nord11']
-
-## Foreground color of an error message.
-## Type: QssColor
c.colors.messages.error.fg = nord['nord5']
-
-## Background color of an info message.
-## Type: QssColor
c.colors.messages.info.bg = nord['nord8']
-
-## Border color of an info message.
-## Type: QssColor
c.colors.messages.info.border = nord['nord8']
-
-## Foreground color an info message.
-## Type: QssColor
c.colors.messages.info.fg = nord['nord5']
-
-## Background color of a warning message.
-## Type: QssColor
c.colors.messages.warning.bg = nord['nord12']
-
-## Border color of a warning message.
-## Type: QssColor
c.colors.messages.warning.border = nord['nord12']
-
-## Foreground color a warning message.
-## Type: QssColor
c.colors.messages.warning.fg = nord['nord5']
-## Background color for prompts.
-## Type: QssColor
c.colors.prompts.bg = nord['nord2']
-
-# ## Border used around UI elements in prompts.
-# ## Type: String
c.colors.prompts.border = '1px solid ' + nord['nord0']
-
-## Foreground color for prompts.
-## Type: QssColor
c.colors.prompts.fg = nord['nord5']
-
-## Background color for the selected item in filename prompts.
-## Type: QssColor
c.colors.prompts.selected.bg = nord['nord3']
-## Background color of the statusbar in caret mode.
-## Type: QssColor
c.colors.statusbar.caret.bg = nord['nord15']
-
-## Foreground color of the statusbar in caret mode.
-## Type: QssColor
c.colors.statusbar.caret.fg = nord['nord5']
-## Background color of the statusbar in caret mode with a selection.
-## Type: QssColor
c.colors.statusbar.caret.selection.bg = nord['nord15']
-
-## Foreground color of the statusbar in caret mode with a selection.
-## Type: QssColor
c.colors.statusbar.caret.selection.fg = nord['nord5']
-
-## Background color of the statusbar in command mode.
-## Type: QssColor
c.colors.statusbar.command.bg = nord['nord2']
-
-## Foreground color of the statusbar in command mode.
-## Type: QssColor
c.colors.statusbar.command.fg = nord['nord5']
-
-## Background color of the statusbar in private browsing + command mode.
-## Type: QssColor
c.colors.statusbar.command.private.bg = nord['nord2']
-
-## Foreground color of the statusbar in private browsing + command mode.
-## Type: QssColor
c.colors.statusbar.command.private.fg = nord['nord5']
-
-## Background color of the statusbar in insert mode.
-## Type: QssColor
c.colors.statusbar.insert.bg = nord['nord14']
-
-## Foreground color of the statusbar in insert mode.
-## Type: QssColor
c.colors.statusbar.insert.fg = nord['nord1']
-
-## Background color of the statusbar.
-## Type: QssColor
c.colors.statusbar.normal.bg = nord['nord0']
-
-## Foreground color of the statusbar.
-## Type: QssColor
c.colors.statusbar.normal.fg = nord['nord5']
-
-## Background color of the statusbar in passthrough mode.
-## Type: QssColor
c.colors.statusbar.passthrough.bg = nord['nord10']
-
-## Foreground color of the statusbar in passthrough mode.
-## Type: QssColor
c.colors.statusbar.passthrough.fg = nord['nord5']
-
-## Background color of the statusbar in private browsing mode.
-## Type: QssColor
c.colors.statusbar.private.bg = nord['nord3']
-
-## Foreground color of the statusbar in private browsing mode.
-## Type: QssColor
c.colors.statusbar.private.fg = nord['nord5']
-
-## Background color of the progress bar.
-## Type: QssColor
c.colors.statusbar.progress.bg = nord['nord5']
-
-## Foreground color of the URL in the statusbar on error.
-## Type: QssColor
c.colors.statusbar.url.error.fg = nord['nord11']
-
-## Default foreground color of the URL in the statusbar.
-## Type: QssColor
c.colors.statusbar.url.fg = nord['nord5']
-
-## Foreground color of the URL in the statusbar for hovered links.
-## Type: QssColor
c.colors.statusbar.url.hover.fg = nord['nord8']
-
-## Foreground color of the URL in the statusbar on successful load
-## (http).
-## Type: QssColor
c.colors.statusbar.url.success.http.fg = nord['nord5']
-
-## Foreground color of the URL in the statusbar on successful load
-## (https).
-## Type: QssColor
c.colors.statusbar.url.success.https.fg = nord['nord14']
-
-## Foreground color of the URL in the statusbar when there's a warning.
-## Type: QssColor
c.colors.statusbar.url.warn.fg = nord['nord12']
-
-## Background color of the tab bar.
-## Type: QtColor
c.colors.tabs.bar.bg = nord['nord3']
-
-## Background color of unselected even tabs.
-## Type: QtColor
c.colors.tabs.even.bg = nord['nord3']
-
-## Foreground color of unselected even tabs.
-## Type: QtColor
c.colors.tabs.even.fg = nord['nord5']
-
-## Color for the tab indicator on errors.
-## Type: QtColor
c.colors.tabs.indicator.error = nord['nord11']
-## Color gradient start for the tab indicator.
-## Type: QtColor
-# c.colors.tabs.indicator.start = nord['violet']
-
-## Color gradient end for the tab indicator.
-## Type: QtColor
-# c.colors.tabs.indicator.stop = nord['orange']
-
-## Color gradient interpolation system for the tab indicator.
-## Type: ColorSystem
-## Valid values:
-## - rgb: Interpolate in the RGB color system.
-## - hsv: Interpolate in the HSV color system.
-## - hsl: Interpolate in the HSL color system.
-## - none: Don't show a gradient.
c.colors.tabs.indicator.system = 'none'
-
-## Background color of unselected odd tabs.
-## Type: QtColor
c.colors.tabs.odd.bg = nord['nord3']
-
-## Foreground color of unselected odd tabs.
-## Type: QtColor
c.colors.tabs.odd.fg = nord['nord5']
-
-# ## Background color of selected even tabs.
-# ## Type: QtColor
c.colors.tabs.selected.even.bg = nord['nord0']
-
-# ## Foreground color of selected even tabs.
-# ## Type: QtColor
c.colors.tabs.selected.even.fg = nord['nord5']
-
-# ## Background color of selected odd tabs.
-# ## Type: QtColor
c.colors.tabs.selected.odd.bg = nord['nord0']
-
-# ## Foreground color of selected odd tabs.
-# ## Type: QtColor
c.colors.tabs.selected.odd.fg = nord['nord5']
-## Background color for webpages if unset (or empty to use the theme's
-## color)
-## Type: QtColor
-# c.colors.webpage.bg = 'white'
+# ------------------------------------------------------------------------
+# fonts
-# Fonts
-c.completion.height = "33%"
+font = "14pt consolas"
+
+c.fonts.statusbar = font
+c.fonts.prompts = font
+c.fonts.completion.category = font
+c.fonts.completion.entry = font
+c.fonts.tabs.selected = font
+c.fonts.tabs.unselected = font
+
+# ------------------------------------------------------------------------
+# paths
+
+c.downloads.location.directory = "~/pulls"
+
+# ------------------------------------------------------------------------
+# features
-c.fonts.tabs = "14pt consolas"
-c.fonts.statusbar = "14pt consolas"
-c.fonts.prompts = "14pt consolas"
-c.fonts.completion.category = "14pt consolas"
-c.fonts.completion.entry = "14pt consolas"
+c.spellcheck.languages = ["en-US"]
c.content.pdfjs = True
-# Security - look generic.
+c.completion.height = "33%"
+c.completion.open_categories = ["quickmarks", "history"]
+
+# ------------------------------------------------------------------------
+# aliases
+
+c.aliases = {'q': 'quit', 'w': 'session-save', 'wq': 'quit --save'}
+
+# ------------------------------------------------------------------------
+# keybinds
+
+config.bind(',c', 'spawn -d chromium {url}')
+config.bind(',js', 'config-cycle content.javascript.enabled')
+
+# ------------------------------------------------------------------------
+# search engines
+
+c.url.searchengines['w'] = 'https://en.wikipedia.org/w/index.php?search={}&title=Special%3ASearch&fulltext=1&ns0=1'
+c.url.searchengines['g'] = 'https://www.google.com/search?q={}'
+c.url.searchengines['sx'] = 'https://searx.info/?q={}&categories=general&language=en-US'
+c.url.searchengines['sc'] = 'https://scholar.google.com/scholar?hl=en-US&as_sdt=0%2C5&q={}&btnG='
+c.url.searchengines['os'] = 'https://wiki.archlinux.org/index.php?title=Special%3ASearch&search={}&go=Go'
+c.url.searchengines['am'] = 'https://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords={}'
+c.url.searchengines['py'] = 'https://docs.python.org/3/library/{}.html'
+
+# ------------------------------------------------------------------------
+# security
+
c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 6.1; rv:52.0) Gecko/20100101 Firefox/52.0"
c.content.headers.accept_language = "en-US,en;q=0.5"
c.content.headers.custom = {"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"}
+c.content.cookies.store = False
+c.content.canvas_reading = False
+c.content.webgl = False
c.content.javascript.enabled = False
+
js_whitelist = [
"*://localhost/*",
"*://github.com/*",
@@ -363,6 +177,7 @@ js_whitelist = [
"*://covid19-scenarios.org/*",
"*://*.wolfram.alpha.com/*",
"*://software.intel.com/*",
+ "*://*.kitp.ucsb.edu/*",
]
for site in js_whitelist:
diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks
index e97b73b..58942ae 100644
--- a/.config/qutebrowser/quickmarks
+++ b/.config/qutebrowser/quickmarks
@@ -1,11 +1,8 @@
hn https://news.ycombinator.com/
git https://git.sr.ht/
-weather https://www.wunderground.com/weather/us/ca/goleta/93117
blas http://www.netlib.org/blas/
intel https://software.intel.com/sites/landingpage/IntrinsicsGuide/#techs=MMX,SSE,SSE2,SSE3,SSSE3,SSE4_1,SSE4_2,AVX,AVX2&text=xorpd&expand=6141,6144
-review https://submit-dev.biologists.org/review/queue?queueName=accepted_reviews&roleName=&pageCreated=1589382259386
c http://www.quut.com/c/ANSI-C-grammar-y-2011.html
-gemm https://github.com/flame/how-to-optimize-gemm/wiki/Optimization_1x4_3
edo https://viewsourcecode.org/snaptoken/kilo/03.rawInputAndOutput.html
quanta https://www.quantamagazine.org/
ttf https://formats.kaitai.io/ttf/ttf.svg
diff --git a/.config/tmux/config b/.config/tmux/config
index bda146e..f4cd9e0 100644
--- a/.config/tmux/config
+++ b/.config/tmux/config
@@ -30,10 +30,10 @@ bind C-L send-keys 'C-L'
bind R source-file ~/.config/tmux/config
# Pane-switching (interfaces with vim)
-bind -n C-j run "fish -c tmux_send_down"
-bind -n C-k run "fish -c tmux_send_up"
-bind -n C-h run "fish -c tmux_send_left"
-bind -n C-l run "fish -c tmux_send_right"
+bind -n C-j run "tmux-send down"
+bind -n C-k run "tmux-send up"
+bind -n C-h run "tmux-send left"
+bind -n C-l run "tmux-send right"
# Layout rotation
bind-key C-o rotate-window
diff --git a/.config/zathura/zathurarc b/.config/zathura/zathurarc
index 17c68ab..d1382d1 100644
--- a/.config/zathura/zathurarc
+++ b/.config/zathura/zathurarc
@@ -21,7 +21,6 @@ set selection-clipboard clipboard
set incremental-search true
# Smooth scrolling
-set smooth-scroll "true"
set scroll-step 80
#####################
diff --git a/.profile b/.profile
index 693ed53..4791753 100644
--- a/.profile
+++ b/.profile
@@ -2,7 +2,7 @@
export LC_CTYPE=en_US.UTF-8
# paths
-export PATH=~/root/bin:$PATH
+export PATH=~/root/bin:~/code/bio/pangraph/bin:~/.local/bin:$PATH
export SHELL=/bin/mksh
export MAILCAPS=~/.config/mutt/mailcap
@@ -19,3 +19,6 @@ export VISUAL=$EDITOR
export BROWSER=qutebrowser
export PAGER="less -R"
export MANWIDTH=80
+
+# misc
+export VIRTUAL_ENV_DISABLE_PROMPT=1
diff --git a/.xinitrc b/.xinitrc
index a7314f3..01b28db 100644
--- a/.xinitrc
+++ b/.xinitrc
@@ -1,77 +1,9 @@
#!/bin/sh
-# 1: last minute
-cpu() {
- CPULOAD=$(cut -d " " -f 1 /proc/loadavg)
- printf " (%s%%)" $CPULOAD
-}
-
-mail() {
- NEWMAIL=$(ls -s ~/mail/*/INBOX/new | awk '{if ($1 == "total") { sum += $2} }; END {print sum}')
-
- if [ "${NEWMAIL%% *}" -eq 0 ]; then
- printf " (%s)" "${NEWMAIL%% *}"
- else
- printf " (%s)" "${NEWMAIL%% *}"
- fi
-}
-
-battery() {
- CHARGE=$(cat /sys/class/power_supply/BAT0/capacity)
- STATUS=$(cat /sys/class/power_supply/BAT0/status)
- if [ "$STATUS" = "Charging" ]; then
- printf " %s%%" "$CHARGE"
- else
- if [ "$CHARGE" -le 30 ]; then
- printf " %s%%" "$CHARGE"
- elif [ "$CHARGE" -le 60 ]; then
- printf " %s%%" "$CHARGE"
- elif [ "$CHARGE" -le 90 ]; then
- printf " %s%%" "$CHARGE"
- else
- printf " %s%%" "$CHARGE"
- fi
- fi
-}
-
-volume() {
- VOL=$(amixer get Master | tail -n1 | sed -r "s/.*\[(.*)%\].*/\1/")
-
- if [ "$VOL" -eq 0 ]; then
- printf "🔇"
- elif [ "$VOL" -gt 0 ] && [ "$VOL" -le 33 ]; then
- printf "🔈%s%%" "$VOL"
- elif [ "$VOL" -gt 33 ] && [ "$VOL" -le 66 ]; then
- printf "🔉%s%%" "$VOL"
- else
- printf "🔊%s%%" "$VOL"
- fi
-}
-
-memory() {
- USED=$(free | awk '(NR == 2) {print $3}')
- TOTL=$(free | awk '(NR == 2) {print $2}')
- FRAC=$(tail -c 3 <<< $((${USED}00/$TOTL)))
- USED=$(free -h | awk '(NR == 2) {print $3}')
-
- printf " %s(%d%%)" $USED $FRAC
-}
-
-datetime() {
- date '+%Y-%m-%d %A %H:%M'
-}
-
-ipaddr() {
- for i in `ip r`; do echo $i; done | grep -A 1 src | tail -n1
-}
-
-while true
-do
- xsetroot -name "$(volume)│$(battery)│$(memory)│$(ipaddr)│$(cpu)│$(mail)│$(datetime)"
- sleep 20s
-done &
-
picom --config ~/.config/picom/config &
feh --bg-scale ~/media/pics/surf.jpg
+xbanish &
+status &
+
exec dwm