Squash to remove unnecessary binary blobs

This commit is contained in:
Tyler Beckman 2021-11-28 23:30:33 -05:00
commit 7e5a385474
Signed by: Ty
GPG key ID: 2813440C772555A4
21 changed files with 2135 additions and 0 deletions

2
.gitattributes vendored Normal file
View file

@ -0,0 +1,2 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.asc filter=lfs diff=lfs merge=lfs -text

3
README.md Normal file
View file

@ -0,0 +1,3 @@
# Ty's dotfiles (and other assorted non-dotted files)
This is my repo I use to backup a lot of my configurations for my computer, such as dotfile setups and the such.

1641
dotfiles/.p10k.zsh Executable file

File diff suppressed because it is too large Load diff

25
dotfiles/.zinit.zsh Normal file
View file

@ -0,0 +1,25 @@
zinit ice depth=1; zinit light romkatv/powerlevel10k; # Powerlevel10k theme
#zinit light anatolykopyl/doas-zsh-plugin; # Double-escape adds doas to command
zinit light Tarrasch/zsh-command-not-found; # Shows command suggestions on invalid
zinit light Game4Move78/zsh-bitwarden; # Bitwarden cli utilities
zinit light ianthehenry/zsh-autoquoter; # Auto adds quotes around some commands
zinit light zdharma-continuum/fast-syntax-highlighting; # Syntax highlighting
zinit light zsh-users/zsh-autosuggestions; # Command suggestions
zinit light Tarrasch/zsh-bd; # bd command
zinit light zpm-zsh/colorize; # Colorizes a handfull of comands
if command -v atuin &> /dev/null; then
zinit light ellie/atuin; # Add atuin (better cmd history) support to zsh
# Declare a custom autosuggestion strategy for zsh-autosuggestions
_zsh_autosuggest_strategy_atuin() {
local results
results=("${(@f)$(atuin search -e 0 --cmd-only $1)}")
typeset -g suggestion="${results[-1]}"
}
fi
export ZSH_AUTOSUGGEST_STRATEGY=(atuin completion) # Use atuin history when available, then completion
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # Load Powerlevel10k config

22
dotfiles/.zprofile Normal file
View file

@ -0,0 +1,22 @@
[[ ! -f ~/.zenv.zsh ]] || source ~/.zenv.zsh
#---------------------------------------------------------------------------------#
### Fixes
export MOZ_USE_XINPUT2=1 # Use pixel-by-pixel touchpad scrolling in Firefox
if [[ $XDG_SESSION_TYPE = 'wayland' ]]; then
export MOZ_ENABLE_WAYLAND=1 # Use experimental native Wayland support for Firefox and Thunderbird
export QT_QPA_PLATFORM=wayland # Enable QT wayland plugin
else
export PLASMA_USE_QT_SCALING=1 # Make Plasma work properly with high DPI scaling on X11
fi
## Below is disabled because it causes firefox to stop antialiasing fonts in wayland for some reason
#export GTK_USE_PORTAL=1 # Try to use native file pickers in GTK programs
#---------------------------------------------------------------------------------#
### Load pyenv
if command -v pyenv &> /dev/null; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
#---------------------------------------------------------------------------------#
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
echo "bye" | gpg-connect-agent &> /dev/null

37
dotfiles/.zsh_aliases Normal file
View file

@ -0,0 +1,37 @@
alias ga="git add -A"
gc() {
git commit -S -m "$@"
}
alias gp="git push"
alias fmt="yarn format"
alias ..="cd .."
alias ....="cd ../.."
alias ......="cd ../../.."
psh() {
fmt && ga && gc "$@" && gp
}
alias stop="sudo systemctl stop"
alias start="sudo systemctl start"
alias ls="exa"
alias la="exa -a"
alias lal="exa -al"
alias tree="exa --tree"
if [[ $XDG_SESSION_TYPE = 'wayland' ]]; then
alias clip="wl-copy"
else
alias clip="xclip -selection clipboard"
fi
alias 2fa="TOKEN=\$(yad --title=\"Authy\" --text=\"What code would you like to copy?\" --entry) && mambembe-cli get-token --service-name \$TOKEN | tr -dc '0-9' | clip"
ytp() { AUDIOFILE="$(mktemp -u)" && yt-dlp --default-search ytsearch "$@" -f ba --output $AUDIOFILE && cvlc $AUDIOFILE --play-and-exit && rm $AUDIOFILE }
zshdir() {
zsh -c "cd $@; zsh -i"
}
mgc ()
{
mambembe-cli get-token -s "$@" | fzf --reverse -0 -1 | rg -oP 'Token: "\K\d+' | xclip -i -selection clipboard
}
alias yarn-classic="corepack prepare yarn@1.22.19 --activate"
alias yarn-modern="corepack prepare yarn@3.6.1 --activate"
ckdir() {
mkdir $1 && cd $1
}

86
dotfiles/.zshrc Normal file
View file

@ -0,0 +1,86 @@
[[ ! -f ~/.zenv.zsh ]] || source ~/.zenv.zsh
#---------------------------------------------------------------------------------#
### Powerlevel10k instant prompt
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
#---------------------------------------------------------------------------------#
### Load nvm if script is in aur location
if [[ -f /usr/share/nvm/init-nvm.sh ]]; then
source /usr/share/nvm/init-nvm.sh
fi
#---------------------------------------------------------------------------------#
### Add things to PATH
path+=("$XDG_DATA_HOME/pyenv/bin")
path+=("$HOME/.local/bin")
path+=("$HOME/Android/Sdk/platform-tools")
path+=("$XDG_DATA_HOME/cargo/bin")
export PATH
#--------------------------------------------------------------------------------#
### Zsh config
# Configure command history saving (if atuin is not found)
if ! command -v atuin &> /dev/null; then
HISTFILE="$HOME/.zsh_history"
HISTSIZE=500000
SAVEHIST=500000
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
fi
# Configure emacs keys
bindkey -e
#---------------------------------------------------------------------------------#
### Load pyenv
if command -v pyenv &> /dev/null; then
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
fi
#---------------------------------------------------------------------------------#
### Aliases
source "$HOME/.zsh_aliases"
#eval $(thefuck --alias) # `fuck` alias
#---------------------------------------------------------------------------------#
### Setup zinit
# Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
# End of Zinit's installer chunk
[[ ! -f ~/.zinit.zsh ]] || source ~/.zinit.zsh # Load zinit plugins and themes
#---------------------------------------------------------------------------------#
### Fixes
export GPG_TTY=$TTY # Fix gpg signing
## A giant handful of key fixes
bindkey "^[[3~" delete-char
bindkey "^[[3;2~" delete-char
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^Z" undo
bindkey "^[[3;5~" kill-word
bindkey "^H" backward-kill-word
bindkey "^[[1;5D" backward-word
bindkey "^[[1;5C" forward-word
#--------------------------------------------------------------------------------#
### Idk ssh or something
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
echo "bye" | gpg-connect-agent &> /dev/null

280
dotfiles/nvim/init.vim Normal file
View file

@ -0,0 +1,280 @@
call plug#begin()
Plug 'liuchengxu/space-vim-dark' " Theme
Plug 'vim-airline/vim-airline' " Status bar
Plug 'sheerun/vim-polyglot' " Collection of language packs
Plug 'leafgarland/typescript-vim' " Typescript syntax support
Plug 'rust-lang/rust.vim' " Rust support
Plug 'preservim/tagbar' " Tag menu to show program layout
Plug 'universal-ctags/ctags' " Generates tags
Plug 'luochen1990/rainbow' " Rainbow parentheses
Plug 'vim-syntastic/syntastic' " Syntax checking plugin
Plug 'itchyny/lightline.vim' " Simple bottom bar
Plug 'tpope/vim-surround' " Allows changing surrounding quotes and things
Plug 'neoclide/coc.nvim', { 'branch': 'release' } " Language server support
Plug 'tommcdo/vim-lion' " Allow aligning code by an amount of chars
Plug 'Shirk/vim-gas' " GNU syntax support
Plug 'ntpeters/vim-better-whitespace' " Shows whitespace at the end of lines
Plug 'chrisbra/SudoEdit.vim' " Allow editing root files
Plug 'mg979/vim-visual-multi', {'branch': 'master'} " Multi curser vim
call plug#end()
" Get syntax files from config folder
set runtimepath+=~/.config/nvim/syntax
" Theme
colorscheme space-vim-dark
hi Normal ctermbg=NONE guibg=NONE
hi LineNr ctermbg=NONE guibg=NONE
hi SignColumn ctermbg=NONE guibg=NONE
hi Comment guifg=#5C6370 ctermfg=59
" Disable C-z from job-controlling neovim
nnoremap <c-z> <nop>
" Remap C-c to <esc>
nmap <c-c> <esc>
imap <c-c> <esc>
vmap <c-c> <esc>
omap <c-c> <esc>
" Syntax highlighting
syntax on
" Position in code
set number
set ruler
" Don't make noise
set visualbell
" default file encoding
set encoding=utf-8
" Line wrap
set wrap
" Function to set tab width to n spaces
function! SetTab(n)
let &l:tabstop=a:n
let &l:softtabstop=a:n
let &l:shiftwidth=a:n
set expandtab
endfunction
command! -nargs=1 SetTab call SetTab(<f-args>)
" Function to trim extra whitespace in whole file
function! Trim()
let l:save = winsaveview()
keeppatterns %s/\s\+$//e
call winrestview(l:save)
endfun
command! -nargs=0 Trim call Trim()
set laststatus=2
" Highlight search results
set hlsearch
set incsearch
" auto + smart indent for code
set autoindent
set smartindent
set t_Co=256
" ASM == JDH8
augroup jdh8_ft
au!
autocmd BufNewFile,BufRead *.asm set filetype=jdh8
augroup END
" SQL++ == SQL
augroup sqlpp_ft
au!
autocmd BufNewFile,BufRead *.sqlp set syntax=sql
augroup END
" .S == gas
augroup gas_ft
au!
autocmd BufNewFile,BufRead *.S set syntax=gas
augroup END
" JFlex syntax highlighting
augroup jfft
au BufRead,BufNewFile *.flex,*.jflex set filetype=jflex
augroup END
au Syntax jflex so ~/.vim/syntax/jflex.vim
" Mouse support
set mouse=a
" Map F8 to Tagbar
nmap <F8> :TagbarToggle<CR>
" CTags config
let g:Tlist_Ctags_Cmd='/usr/local/Cellar/ctags/5.8_1/bin/ctags'
" disable backup files
set nobackup
set nowritebackup
" no delays!
set updatetime=300
set cmdheight=1
set shortmess+=c
set signcolumn=yes
" Use tab for trigger completion with characters ahead and navigate.
" NOTE: Use command ':verbose imap <tab>' to make sure tab is not mapped by
" other plugin before putting this into your config.
inoremap <silent><expr> <TAB>
\ pumvisible() ? "\<C-n>" :
\ <SID>check_back_space() ? "\<TAB>" :
\ coc#refresh()
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
function! s:check_back_space() abort
let col = col('.') - 1
return !col || getline('.')[col - 1] =~# '\s'
endfunction
" Use <c-space> to trigger completion.
if has('nvim')
inoremap <silent><expr> <c-space> coc#refresh()
else
inoremap <silent><expr> <c-@> coc#refresh()
endif
" Make <CR> auto-select the first completion item and notify coc.nvim to
" format on enter, <cr> could be remapped by other vim plugin
"inoremap <silent><expr> <cr> pumvisible() ? coc#_select_confirm()
" \: "\<C-g>u\<CR>\<c-r>=coc#on_enter()\<CR>"
" Use `[g` and `]g` to navigate diagnostics
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
nmap <silent> [g <Plug>(coc-diagnostic-prev)
nmap <silent> ]g <Plug>(coc-diagnostic-next)
" GoTo code navigation.
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
" Use K to show documentation in preview window.
nnoremap <silent> K :call <SID>show_documentation()<CR>
function! s:show_documentation()
if (index(['vim','help'], &filetype) >= 0)
execute 'h '.expand('<cword>')
elseif (coc#rpc#ready())
call CocActionAsync('doHover')
else
execute '!' . &keywordprg . " " . expand('<cword>')
endif
endfunction
" Highlight the symbol and its references when holding the cursor.
autocmd CursorHold * silent call CocActionAsync('highlight')
" Symbol renaming.
nmap <leader>rn <Plug>(coc-rename)
" Formatting selected code.
xmap <leader>f <Plug>(coc-format-selected)
nmap <leader>f <Plug>(coc-format-selected)
augroup mygroup
autocmd!
" Setup formatexpr specified filetype(s).
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
" Update signature help on jump placeholder.
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
augroup end
" Applying codeAction to the selected region.
" Example: `<leader>aap` for current paragraph
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)
" Remap keys for applying codeAction to the current buffer.
nmap <leader>ac <Plug>(coc-codeaction)
" Apply AutoFix to problem on the current line.
nmap <leader>qf <Plug>(coc-fix-current)
" Map function and class text objects
" NOTE: Requires 'textDocument.documentSymbol' support from the language server.
xmap if <Plug>(coc-funcobj-i)
omap if <Plug>(coc-funcobj-i)
xmap af <Plug>(coc-funcobj-a)
omap af <Plug>(coc-funcobj-a)
xmap ic <Plug>(coc-classobj-i)
omap ic <Plug>(coc-classobj-i)
xmap ac <Plug>(coc-classobj-a)
omap ac <Plug>(coc-classobj-a)
" Remap <C-f> and <C-b> for scroll float windows/popups.
if has('nvim-0.4.0') || has('patch-8.2.0750')
nnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
nnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
inoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(1)\<cr>" : "\<Right>"
inoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? "\<c-r>=coc#float#scroll(0)\<cr>" : "\<Left>"
vnoremap <silent><nowait><expr> <C-f> coc#float#has_scroll() ? coc#float#scroll(1) : "\<C-f>"
vnoremap <silent><nowait><expr> <C-b> coc#float#has_scroll() ? coc#float#scroll(0) : "\<C-b>"
endif
" Use CTRL-S for selections ranges.
" Requires 'textDocument/selectionRange' support of language server.
nmap <silent> <C-s> <Plug>(coc-range-select)
xmap <silent> <C-s> <Plug>(coc-range-select)
" Add `:Format` command to format current buffer.
command! -nargs=0 Format :call CocAction('format')
" Add `:Fold` command to fold current buffer.
command! -nargs=? Fold :call CocAction('fold', <f-args>)
" Add `:OR` command for organize imports of the current buffer.
command! -nargs=0 OR :call CocAction('runCommand', 'editor.action.organizeImport')
" Add (Neo)Vim's native statusline support.
" NOTE: Please see `:h coc-status` for integrations with external plugins that
" provide custom statusline: lightline.vim, vim-airline.
set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')}
" Mappings for CoCList
" Show all diagnostics.
nnoremap <silent><nowait> <space>a :<C-u>CocList diagnostics<cr>
" Manage extensions.
nnoremap <silent><nowait> <space>e :<C-u>CocList extensions<cr>
" Show commands.
nnoremap <silent><nowait> <space>c :<C-u>CocList commands<cr>
" Find symbol of current document.
nnoremap <silent><nowait> <space>o :<C-u>CocList outline<cr>
" Search workspace symbols.
nnoremap <silent><nowait> <space>s :<C-u>CocList -I symbols<cr>
" Do default action for next item.
nnoremap <silent><nowait> <space>j :<C-u>CocNext<CR>
" Do default action for previous item.
nnoremap <silent><nowait> <space>k :<C-u>CocPrev<CR>
" Resume latest coc list.
nnoremap <silent><nowait> <space>p :<C-u>CocListResume<CR>
" add cocstatus into lightline
let g:lightline = {
\ 'colorscheme': 'wombat',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'cocstatus', 'readonly', 'filename', 'modified' ] ]
\ },
\ 'component_function': {
\ 'cocstatus': 'coc#status'
\ },
\ }
autocmd User CocStatusChange,CocDiagnosticChange call lightline#update()

BIN
keys/A6299C20250223DCDEBA5E2C933B9437A97A56B8.asc (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Grand Canyon, Arizona, USA.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Honolulu, Hawaii.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Lagos, Portugal.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Malolo Barrier Reef.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Monument Valley, Utah.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Mount Pilatus, Switzerland.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Mount Vesuvius, Italy.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,3 @@
I got these wallpapers from a [reddit post](https://www.reddit.com/r/GooglePixel/comments/dnv9bk/google_pixel_wallpapers_uhd_4k_desktop/) I found a while ago, so all credit goes to them, they are 4k desktop versions of the default google pixel wallpapers.
The drive link from the reddit post appears to not exist anymore, but I still have the files here so yay I guess

BIN
wallpapers/pixel-4k-desktop/Scwyz, Switzerland Night.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Scwyz, Switzerland.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Tarout Bay, Saudi Arabia.png (Stored with Git LFS) Normal file

Binary file not shown.

BIN
wallpapers/pixel-4k-desktop/Urulu, Australia.png (Stored with Git LFS) Normal file

Binary file not shown.