commit 3fc5a8cea108b186da5690504f295ba688486399
parent 544888a97229ec07282993ab1335c549a0ab15ad
Author: C. Beau Hilton <cbeauhilton@gmail.com>
Date: Sun, 28 Jun 2020 07:01:15 -0500
date fxn to vimrc
Diffstat:
8 files changed, 44 insertions(+), 166 deletions(-)
diff --git a/QtProject.conf b/QtProject.conf
@@ -1,6 +1,6 @@
[FileDialog]
-history=file:///home/beau/dl, file:///home/beau/vids/mov, file:///home/beau/game, file:///home/beau/.local/share, file:///home/beau/.local/share/virtualbox
-lastVisited=file:///home/beau/dl
+history=file:///home/beau/vids/mov, file:///home/beau/game, file:///home/beau/.local/share, file:///home/beau/.local/share/virtualbox, file:///home/beau
+lastVisited=file:///home/beau
qtVersion=5.15.0
shortcuts=file:, file:///home/beau
sidebarWidth=82
diff --git a/calcurse/.calcurse.pid b/calcurse/.calcurse.pid
@@ -0,0 +1 @@
+66664
diff --git a/cron/crontab.bak b/cron/crontab.bak
@@ -16,9 +16,6 @@
3 13 * * * newsboat -E "/home/beau/.config/newsboat/read_articles"
# newsboat sync read articles
2 14 * * * newsboat -I "/home/beau/.config/newsboat/read_articles"
-# regularly git push dotfiles
-7 16 * * * cd /home/beau/ ; git add -u ; git commit -m "crontab autocommit" ; git push
-
################===YT-DL===################
# Luke Smith
#* */2 * * * cd /home/beau/vids/instructional/luke_smith && /bin/youtube-dl --add-metadata --download-archive '/home/beau/vids/instructional/luke_smith/downloadedxyz.txt' -f best -ciw -o "\%(upload_date)s_\%(uploader)s_\%(title)s.\%(ext)s" -v https://www.youtube.com/channel/UC2eYFnH61tmytImy1mTYvhA/ && rm *.part
diff --git a/newsboat/read_articles b/newsboat/read_articles
@@ -1577,13 +1577,6 @@ http://tastetesterdoc.com/?p=131
http://tastetesterdoc.com/?p=136
http://tastetesterdoc.com/?p=147
http://tastetesterdoc.com/?p=162
-https://beauhilton.com/on-making-this-website
-https://beauhilton.com/on-the-slogan
-https://beauhilton.com/a-workflow-for-remembering-all-that-science-and-also-everything
-https://beauhilton.com/Artificial-Intelligence-Definitions-and-Indefinitions
-https://beauhilton.com/python-write-my-paper
-https://beauhilton.com/r-markdown-python-friends
-https://beauhilton.com/chrome-extensions
https://erikbern.com/2012/10/21/luigi-build-complex-pipelines-of-tasks.html
https://erikbern.com/2012/10/29/a-neat-little-trick-with-time-decay.html
https://erikbern.com/2012/11/18/tumblrs-awesome-project-names.html
@@ -2009,7 +2002,6 @@ https://standardebooks.org/ebooks/william-shakespeare/poetry
https://aiweirdness.com/post/616292784700276736
https://standardebooks.org/ebooks/robert-frost/new-hampshire
PubMed:32333753
-https://beauhilton.com/nih-get-you-funded
https://jvns.ca/blog/2020/04/27/new-zine-how-containers-work/
https://jvns.ca/blog/2020/04/29/why-strace-doesnt-work-in-docker/
https://standardebooks.org/ebooks/diogenes-laertius/the-lives-and-opinions-of-eminent-philosophers/c-d-yonge
@@ -2089,3 +2081,4 @@ http://www.spoon-tamago.com/?p=48369
https://distill.pub/2020/circuits/curve-detectors
https://aiweirdness.com/post/621186154843324416
http://www.spoon-tamago.com/?p=48384
+/
diff --git a/newsboat/urls b/newsboat/urls
@@ -28,7 +28,8 @@ https://fharrell.com/post/index.xml "Statistics" "Medicine"
https://davebucklin.com/feed.xml "Tech" "Gopher"
http://feeds.feedburner.com/MrMoneyMustache "Finance"
# https://www.jpsmjournal.com/current.rss "Medicine" "Palliative Care"
-https://beauhilton.com/feed.xml
+https://www.romanzolotarev.com/rss.xml
+https://beauhilton.com/rss.xml
https://standardebooks.org/rss/new-releases "Literature"
https://emptysqua.re/blog/index.xml "Tech" "Programming" "Buddhism"
https://jvns.ca/atom.xml "Tech" "Teaching"
diff --git a/nvim/init.vim b/nvim/init.vim
@@ -13,6 +13,7 @@ call plug#begin('~/.config/nvim/plugged')
Plug 'machakann/vim-sandwich'
Plug 'tpope/vim-commentary'
+ Plug 'tpope/vim-surround'
Plug 'junegunn/goyo.vim'
Plug 'junegunn/limelight.vim'
@@ -139,20 +140,41 @@ call plug#end()
" Open corresponding .pdf/.html or preview
map <leader>p :!opout <c-r>%<CR><CR>
-
autocmd BufRead,BufNewFile /tmp/calcurse* set filetype=markdown
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
autocmd BufRead,BufNewFile *.tex set filetype=tex
-" Goyo and Limelight activate and deactivated together
- autocmd! User GoyoEnter Limelight
- autocmd! User GoyoLeave Limelight!
-
" Enable Goyo by default for mutt writting
" Goyo's width will be the line limit in mutt.
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80
autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo
+" Leave goyo with a single :wq, rather than two (two is intended behavior
+" but it's annoying, especially when composing emails)
+ function! s:goyo_enter()
+ let b:quitting = 0
+ let b:quitting_bang = 0
+ autocmd QuitPre <buffer> let b:quitting = 1
+ cabbrev <buffer> q! let b:quitting_bang = 1 <bar> q!
+ endfunction
+
+ function! s:goyo_leave()
+ if b:quitting && len(filter(range(1, bufnr('$')), 'buflisted(v:val)')) == 1
+ if b:quitting_bang
+ qa!
+ else
+ qa
+ endif
+ endif
+ endfunction
+
+ autocmd! User GoyoEnter call <SID>goyo_enter()
+ autocmd! User GoyoLeave call <SID>goyo_leave()
+
+" Goyo and Limelight activate and deactivated together
+ autocmd! User GoyoEnter Limelight
+ autocmd! User GoyoLeave Limelight!
+
" Color name (:help cterm-colors) or ANSI code
let g:limelight_conceal_ctermfg = 'gray'
let g:limelight_conceal_ctermfg = 240
@@ -186,6 +208,7 @@ call plug#end()
cnoremap w!! execute 'silent! write !sudo tee % >/dev/null' <bar> edit!
" markdown
+ autocmd Filetype markdown,rmd inoremap ,d last updated: <C-r>=strftime('%F')<CR>
autocmd Filetype markdown,rmd map <leader>w yiWi[<esc>Ea](<esc>pa)
autocmd Filetype markdown,rmd inoremap ,n ---<Enter><Enter>
autocmd Filetype markdown,rmd inoremap ,b ****<++><Esc>F*hi
diff --git a/profile b/profile
@@ -1,26 +1,25 @@
#!/usr/bin/env sh
-# Profile file for Arch Linux. Runs on login.
-
-# Adds ruby to path
-PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
-
-# Adds `~/.local/bin/` and all subdirectories to $PATH
-export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
-
export EDITOR="nvim"
export TERMINAL="st"
export BROWSER="chromium"
export READER="zathura"
export FILE="nnn"
+# Adds ruby to path
+PATH="$PATH:$(ruby -e 'puts Gem.user_dir')/bin"
+# Adds `~/.local/bin/` and all subdirectories to $PATH
+export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':' | sed 's/:*$//')"
+
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share"
export XDG_CACHE_HOME="$HOME/.cache"
+export VIMWIKI_HOME="$HOME/repos/vimwiki/index.md"
-# export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # mess with this sometime
-
-export BIB="$HOME/repos/life/dox/acad.bib"
+export CONDARC="${XDG_CONFIG_HOME:-$HOME/.config}/conda/.condarc"
+export IPYTHONDIR="${XDG_CONFIG_HOME:-$HOME/.config}/jupyter"
+export JUPYTER_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/jupyter"
+export R_ENVIRON_USER="${XDG_CONFIG_HOME:-$HOME/.config}/R/Renviron"
export CARGO_HOME="$XDG_DATA_HOME"/cargo
export GEM_HOME="$XDG_DATA_HOME"/gem
@@ -36,14 +35,8 @@ export WGETRC="${XDG_CONFIG_HOME:-$HOME/.config}/wget/wgetrc"
export INPUTRC="${XDG_CONFIG_HOME:-$HOME/.config}/inputrc"
export PASSWORD_STORE_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/password-store"
export XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
-export WAKATIME_HOME="$XDG_CONFIG_HOME"/wakatime
export MAILCAPS="$XDG_CONFIG_HOME"/tuir/mailcap
-export CONDARC="${XDG_CONFIG_HOME:-$HOME/.config}/conda/.condarc"
-export IPYTHONDIR="${XDG_CONFIG_HOME:-$HOME/.config}/jupyter"
-export JUPYTER_CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/jupyter"
-
-export R_ENVIRON_USER="${XDG_CONFIG_HOME:-$HOME/.config}/R/Renviron"
export GPG_TTY=$(tty)
export GPG_AGENT_INFO=""
diff --git a/sxhkd/sxhkdrc b/sxhkd/sxhkdrc
@@ -1,42 +1,11 @@
-# Basic binds
super + Return
$TERMINAL -e tmux
-super + d
- dmenu_run
-super + r
- $TERMINAL -e $FILE
-super + e
- $TERMINAL -e neomutt; pkill -RTMIN+12 blocks
-super + m
- $TERMINAL -e ncmpcpp
-super + n
- $TERMINAL -e newsboat
super + i
$TERMINAL -e htop
super + c
$TERMINAL -e calcurse -D ~/.config/calcurse
-super + v
- $TERMINAL -e $EDITOR ~/repos/vimwiki/index.md
-super + shift + a
- $TERMINAL -e pulsemixer; pkill -RTMIN+10 i3blocks
-super + shift + c
- camtoggle
-super + shift + e
- tutorialvids
-super + w
- $BROWSER
-super + shift + w
- $TERMINAL -e sudo nmtui
super + shift + g
gimp
-
-# Et cetera...
-super + grave
- dmenuunicode
-super + Scroll_Lock
- killall screenkey || screenkey
-super + Insert
- showclip
super + Pause
xcqr
super + shift + x
@@ -45,106 +14,7 @@ super + shift + BackSpace
prompt "Reboot computer?" "sudo -A shutdown -r now"
super + x
mpc pause; pauseallmpv; i3lock -e -f -c 1d2021; xset dpms force off
-XF86Launch1
- xset dpms force off
-XF86AudioMute
- lmc mute
-XF86AudioLowerVolume
- lmc down 5
-shift+XF86AudioLowerVolume
- lmc down 10
-control+XF86AudioLowerVolume
- lmc down 1
-XF86AudioRaiseVolume
- lmc up 5
-shift+XF86AudioRaiseVolume
- lmc up 10
-control+XF86AudioRaiseVolume
- lmc up 1
-XF86AudioNext
- lmc next
-XF86AudioPlay
- lmc toggle
-XF86AudioPrev
- lmc prev
-XF86AudioStop
- lmc toggle
-XF86MonBrightnessDown
- xbacklight -dec 15
-XF86MonBrightnessUp
- xbacklight -inc 15
-
-
-# Recording
-# Take screenshot
-Print
- maim pic-full-$(date '+%y%m%d-%H%M-%S').png
-# Pick screenshot type
-shift + Print
- maimpick
-# Record audio or video
-super + Print
- dmenurecord
-super + End
- dmenurecord
-# kill active recording
-super + Delete
- dmenurecord kill
-
-# Pause audio
-super + {_,shift +} p
- lmc {toggle,pause}
-# Changes to next/previous tracks
-super + {comma,period}
- lmc {prev,next}
-# Restart track
-super + shift + less
- lmc replay
-# Increase volume
-super + {equal,plus}
- lmc up {5,15}
-# Decrease volume
-super {_,shift +} + minus
- lmc down {5,15}
-# Seek foward in song
-super + {_,shift +} bracketright
- lmc forward {10,120}
-# Seek backward in song
-super + {_,shift +} bracketleft
- lmc back {10,120}
-
-# Function keys
-# Show readme
-super + F1
- groff -mom $HOME/.local/share/larbs/readme.mom -Tpdf | zathura -
-# F2 is restart in dwm.
-# Change display
-super + F3
- displayselect
-# Hibernate
super + F4
prompt 'Hibernate computer?' 'sudo systemctl suspend'
-# Restart/rescan wifi/eth networks
super + F5
sudo -A systemctl restart NetworkManager
-# Start torrent daemon/open interface
-super + F6
- torwrap
-# toggle torrent daemon
-super + F7
- td-toggle
-# sync email
-super + F8
- mailsync
-# Mount a USB drive or Android device
-super + F9
- dmenumount
-# Unmount a USB drive or Android device
-super + F10
- dmenuumount
-# Search with Duckduckgo
-super + F11
- ducksearch
-# Network Manager interface
-super + F12
- $TERMINAL -e sudo -A nmtui