Lots of small changes
80a2970254893056cabebe433771aeadd5b2c2cc
1 parent
8c98be57
.cargo/config
deleted
+0 -3
| 1 | - | [target.x86_64-unknown-linux-gnu] |
|
| 2 | - | linker = "/usr/bin/clang" |
|
| 3 | - | rustflags = ["-Clink-arg=-fuse-ld=lld"] |
.config/kitty/kitty.conf
+1 -1
| 1 | 1 | font_family JetBrains Mono Regular |
|
| 2 | 2 | bold_font JetBrains Mono Medium |
|
| 3 | 3 | italic_font JetBrains Mono Italic |
|
| 4 | 4 | bold_italic_font JetBrains Mono Medium Italic |
|
| 5 | - | font_size 14.0 |
|
| 5 | + | font_size 18.0 |
|
| 6 | 6 | adjust_line_height 0 |
|
| 7 | 7 | enable_audio_bell no |
|
| 8 | 8 | ||
| 9 | 9 | scrollback_lines 8192 |
|
| 10 | 10 | input_delay 3 |
.config/nvim/coc-settings.json
+2 -0
| 24 | 24 | ], |
|
| 25 | 25 | "coc.source.snippets.enable": false, |
|
| 26 | 26 | "coc.source.buffer.enable": false, |
|
| 27 | 27 | "coc.source.file.enable": false, |
|
| 28 | 28 | ||
| 29 | + | "svelte.enable-ts-plugin": true, |
|
| 30 | + | ||
| 29 | 31 | "rust-analyzer.inlayHints.typeHintsSeparator": "", |
|
| 30 | 32 | "rust-analyzer.inlayHints.chainingHintsSeparator": " ", |
|
| 31 | 33 | "rust-analyzer.updates.prompt": false, |
|
| 32 | 34 | "rust-analyzer.diagnostics.enableExperimental": true, |
|
| 33 | 35 | "rust-analyzer.diagnostics.disabled": [ |
.gitconfig
+14 -3
| 35 | 35 | untracked = cyan |
|
| 36 | 36 | ||
| 37 | 37 | [core] |
|
| 38 | 38 | excludesfile = /home/cloudhead/.gitignore |
|
| 39 | 39 | editor = /usr/bin/nvim |
|
| 40 | + | pager = less -F -X |
|
| 40 | 41 | ||
| 41 | 42 | [alias] |
|
| 42 | 43 | b = branch -v |
|
| 43 | 44 | c = commit -v |
|
| 44 | 45 | s = status -sb |
| 49 | 50 | ll = log -p |
|
| 50 | 51 | lol = log --graph --decorate --pretty=oneline --abbrev-commit |
|
| 51 | 52 | lola = log --graph --decorate --pretty=oneline --abbrev-commit --all |
|
| 52 | 53 | hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short |
|
| 53 | 54 | changes = log -c --reverse |
|
| 55 | + | lg = "!f() { \ |
|
| 56 | + | git log --all --color --graph --pretty=format:'%C(bold yellow)<sig>%G?</sig>%C(reset) %C(red)%h%C(reset) -%C(yellow)%d%C(reset) %s %C(green)(%cr) %C(blue)<%an>%C(reset)' | \ |
|
| 57 | + | sed \ |
|
| 58 | + | -e 's#<sig>G</sig>#Good#' \ |
|
| 59 | + | -e 's#<sig>B</sig>#\\nBAD \\nBAD \\nBAD \\nBAD \\nBAD#' \ |
|
| 60 | + | -e 's#<sig>U</sig>#Unknown#' \ |
|
| 61 | + | -e 's#<sig>X</sig>#Expired#' \ |
|
| 62 | + | -e 's#<sig>Y</sig>#Expired Key#' \ |
|
| 63 | + | -e 's#<sig>R</sig>#Revoked#' \ |
|
| 64 | + | -e 's#<sig>E</sig>#Missing Key#' \ |
|
| 65 | + | -e 's#<sig>N</sig>#None#' | \ |
|
| 66 | + | less -r; \ |
|
| 67 | + | }; f" |
|
| 54 | 68 | ||
| 55 | 69 | [gpg] |
|
| 56 | 70 | format = ssh |
|
| 57 | 71 | ||
| 58 | 72 | [gpg.ssh] |
| 75 | 89 | [diff] |
|
| 76 | 90 | colorMoved = zebra |
|
| 77 | 91 | ||
| 78 | 92 | [fetch] |
|
| 79 | 93 | prune = true |
|
| 80 | - | ||
| 81 | - | [rad] |
|
| 82 | - | seed = https://seed.cloudhead.io/ |
.profile
+0 -1
| 6 | 6 | ||
| 7 | 7 | export PATH=~/bin:~/.local/bin:~/.yarn/bin:~/.gcloud/bin:~/.cabal/bin:~/.cargo/bin:~/.gem/ruby/2.6.0/bin:~/.radicle/bin:~/.npm-packages/bin:$PATH |
|
| 8 | 8 | export PATH=$PATH:~/.foundry/bin |
|
| 9 | 9 | export NODE_PATH=/usr/lib/node_modules |
|
| 10 | 10 | export EDITOR=nvim |
|
| 11 | - | export VISUAL=nvim |
|
| 12 | 11 | export MOZ_USE_XINPUT2=1 # Pixel scrolling in Firefox |
|
| 13 | 12 | export RIPGREP_CONFIG_PATH=$HOME/.rgrc |
|
| 14 | 13 | export PATH="$HOME/.radicle/bin:$PATH" |
|
| 15 | 14 | export NNN_FIFO=/tmp/nnn.fifo |
|
| 16 | 15 |
.vim/spell/en.utf-8.add
+10 -0
| 57 | 57 | Gitea |
|
| 58 | 58 | GitLab |
|
| 59 | 59 | userbase |
|
| 60 | 60 | auth |
|
| 61 | 61 | timestamp |
|
| 62 | + | cloudhead |
|
| 63 | + | neovim |
|
| 64 | + | popol |
|
| 65 | + | PoW |
|
| 66 | + | ASIC |
|
| 67 | + | hashrate |
|
| 68 | + | macOS |
|
| 69 | + | Homebrew |
|
| 70 | + | filetype |
|
| 71 | + | txt |
.vimrc
+6 -2
| 24 | 24 | set incsearch |
|
| 25 | 25 | set autoread " Auto-reload modified files (with no local changes) |
|
| 26 | 26 | set ignorecase " Ignore case in search |
|
| 27 | 27 | set smartcase " Override ignorecase if uppercase is used in search string |
|
| 28 | 28 | set report=0 " Report all changes |
|
| 29 | - | set laststatus=2 " Always show status-line |
|
| 29 | + | set laststatus=3 " Always show status-line |
|
| 30 | 30 | set nocursorline " Highlight current line |
|
| 31 | 31 | set scrolloff=4 |
|
| 32 | 32 | set nofoldenable |
|
| 33 | 33 | set timeoutlen=200 " Set timeout between key sequences |
|
| 34 | 34 | set background=dark |
| 61 | 61 | set completeopt=menu |
|
| 62 | 62 | set clipboard+=unnamedplus " Requires `xclip` |
|
| 63 | 63 | set shell=/bin/sh |
|
| 64 | 64 | set signcolumn=yes |
|
| 65 | 65 | ||
| 66 | + | " Use modern file-type detection |
|
| 67 | + | let g:do_filetype_lua = 1 |
|
| 68 | + | let g:did_load_filetypes = 0 |
|
| 69 | + | ||
| 66 | 70 | " We don't use tabs much, but at least try and show less cruft |
|
| 67 | 71 | function! Tabline() |
|
| 68 | 72 | let s = '' |
|
| 69 | 73 | for i in range(tabpagenr('$')) |
|
| 70 | 74 | let tab = i + 1 |
| 122 | 126 | au FileType javascript setlocal number sts=2 sw=2 expandtab nowrap |
|
| 123 | 127 | au FileType typescript setlocal number sts=2 sw=2 expandtab nowrap |
|
| 124 | 128 | au FileType svelte setlocal number sts=2 sw=2 expandtab nowrap |
|
| 125 | 129 | au FileType css setlocal number ts=2 sw=2 noexpandtab nowrap |
|
| 126 | 130 | au FileType go setlocal number ts=4 sw=4 noexpandtab |
|
| 127 | - | au FileType c,cpp,glsl setlocal number ts=8 sw=8 noexpandtab |
|
| 131 | + | au FileType c,cpp,glsl setlocal number ts=4 sw=4 noexpandtab |
|
| 128 | 132 | au FileType lua setlocal number sw=2 expandtab |
|
| 129 | 133 | au FileType sh,zsh setlocal number sts=2 sw=2 expandtab |
|
| 130 | 134 | au FileType vim,ruby setlocal number sts=2 sw=2 expandtab |
|
| 131 | 135 | au FileType help setlocal number ts=4 sw=4 noexpandtab |
|
| 132 | 136 | au FileType solidity setlocal number ts=4 sw=4 expandtab nowrap |
.xmobarrc
+1 -1
| 1 | 1 | -- Xmobar configuration |
|
| 2 | 2 | -- vim: ft=haskell |
|
| 3 | 3 | -- |
|
| 4 | 4 | Config { |
|
| 5 | - | font = "xft:monospace:size=11,fallback:size=11" |
|
| 5 | + | font = "xft:monospace:size=14,fallback:size=14" |
|
| 6 | 6 | , borderColor = "black" |
|
| 7 | 7 | , border = TopB |
|
| 8 | 8 | , bgColor = "#000000" |
|
| 9 | 9 | , fgColor = "#dddddd" |
|
| 10 | 10 | , position = BottomSize C 100 36 |
.xmonad/xmonad.hs
+1 -0
| 153 | 153 | [ ((modMask, xK_F12), safeSpawn "systemctl" ["suspend"]) |
|
| 154 | 154 | , ((modMask .|. shiftMask, xK_F12), safeSpawn "systemctl" ["hibernate"]) |
|
| 155 | 155 | , ((modMask, xK_F11), safeSpawnProg "slock") |
|
| 156 | 156 | , ((modMask, xK_F10), safeSpawnProg "toggle-displays") |
|
| 157 | 157 | , ((modMask, xK_F5), safeSpawnProg "refresh-display") |
|
| 158 | + | , ((modMask .|. controlMask, xK_r), safeSpawn "killall" ["kitty", "-USR1"]) |
|
| 158 | 159 | , ((modMask, xK_p), runExecutable) |
|
| 159 | 160 | , ((modMask .|. shiftMask, xK_p), editPrompt home) |
|
| 160 | 161 | , ((modMask, xK_o), switchWindow) |
|
| 161 | 162 | , ((modMask, xK_Tab), toggleWS) |
|
| 162 | 163 | , ((modMask .|. controlMask, xK_Return), toggleFloatNext >> (spawn $ XMonad.terminal conf)) |
.zshrc
+4 -0
| 96 | 96 | | tr "\\n" "|") |
|
| 97 | 97 | ||
| 98 | 98 | /usr/bin/tree --prune -I ".git|${ignored_filter: : -1}" "$@" |
|
| 99 | 99 | } |
|
| 100 | 100 | ||
| 101 | + | function find-and-replace { |
|
| 102 | + | rg "$1" --files-with-matches | xargs sed -i "s/$1/$2/g" |
|
| 103 | + | } |
|
| 104 | + | ||
| 101 | 105 | function pdf-slice { |
|
| 102 | 106 | qpdf $1 --pages . $2 -- $3 |
|
| 103 | 107 | } |
|
| 104 | 108 | ||
| 105 | 109 | export NNN_USE_EDITOR=1 |
bin/record-window
+2 -1
| 5 | 5 | mkdir -p $HOME/recordings |
|
| 6 | 6 | ||
| 7 | 7 | FPS=${FPS:-6} |
|
| 8 | 8 | SCALE=${SCALE:-1} |
|
| 9 | 9 | NAME=${1:-unknown} |
|
| 10 | + | EXT=${2:webm} |
|
| 10 | 11 | ||
| 11 | 12 | # NOTE: To get the active window: `xwininfo -id $(xdotool getactivewindow)` |
|
| 12 | 13 | ||
| 13 | 14 | eval $(xwininfo -name "$NAME" | |
|
| 14 | 15 | sed -n -e "s/^ \+Absolute upper-left X: \+\([0-9]\+\).*/x=\1/p" \ |
| 20 | 21 | tmp="$(mktemp).gif" |
|
| 21 | 22 | ||
| 22 | 23 | let x=$x+1 |
|
| 23 | 24 | let y=$y+1 |
|
| 24 | 25 | ||
| 25 | - | OUT="$NAME-$now.webm" |
|
| 26 | + | OUT="$NAME-$now.$EXT" |
|
| 26 | 27 | ||
| 27 | 28 | ffmpeg -v warning \ |
|
| 28 | 29 | -video_size ${w}x${h} \ |
|
| 29 | 30 | -framerate 6 \ |
|
| 30 | 31 | -f x11grab \ |