Bunch of updates

ae0833b980308be465ab3e006e559004262dea68
Alexis Sellier committed ago 1 parent 790c74d7
.config/flameshot/flameshot.ini +1 -1
1 1
[General]
2 2
buttons=@Variant(\0\0\0\x7f\0\0\0\vQList<int>\0\0\0\0\x12\0\0\0\0\0\0\0\x1\0\0\0\x2\0\0\0\x3\0\0\0\x5\0\0\0\x6\0\0\0\x12\0\0\0\xf\0\0\0\x16\0\0\0\x13\0\0\0\a\0\0\0\b\0\0\0\t\0\0\0\x10\0\0\0\n\0\0\0\v\0\0\0\x17\0\0\0\f)
3 3
contrastOpacity=173
4 -
drawColor=#7fffd4
4 +
drawColor=#ff7f8f
5 5
savePath=/home/cloudhead
6 6
uiColor=#7fffd4
7 7
uploadHistoryMax=18
8 8
userColors=picker, #7fffd4, #ff0000, #ffff00, #00ff00, #008000, #00ffff, #0000ff, #ff00ff, #800080
.config/fontconfig/fonts.conf +6 -1
6 6
  <edit name="lcdfilter" mode="assign">
7 7
    <const>lcddefault</const>
8 8
  </edit>
9 9
</match>
10 10
11 +
<match target="pattern">
12 +
   <edit name="dpi" mode="assign">
13 +
      <double>144</double>
14 +
   </edit>
15 +
</match>
16 +
11 17
<match target="font">
12 18
  <edit name="rgba" mode="assign">
13 19
    <const>rgb</const>
14 20
  </edit>
15 21
</match>
214 220
 <match target="pattern">
215 221
   <test qual="any" name="family"><string>Twitter Color Emoji</string></test>
216 222
   <edit name="family" mode="assign" binding="same"><string>Twemoji</string></edit>
217 223
 </match>
218 224
219 -
220 225
 <dir>~/.fonts</dir>
221 226
</fontconfig>
222 227
.config/nvim/coc-settings.json +1 -1
15 15
  "diagnostic.floatConfig.shadow": false,
16 16
  "diagnostic.floatConfig.maxWidth": 80,
17 17
  "diagnostic.floatConfig.maxHeight": 24,
18 18
  "codeLens.enable": false,
19 19
  "codeLens.separator": " ",
20 +
  "inlayHint": false,
20 21
  "coc.preferences.useQuickfixForLocations": true,
21 22
  "coc.preferences.bracketEnterImprove": false,
22 23
  "coc.preferences.snippets.enable": false,
23 24
  "coc.preferences.enableMessageDialog": true,
24 25
  "coc.preferences.formatOnSaveFiletypes": [
44 45
  "rust-analyzer.diagnostics.disabled": [
45 46
    "macro-error",
46 47
    "unresolved-proc-macro"
47 48
  ],
48 49
  "rust-analyzer.lens.enable": true,
49 -
  "rust-analyzer.checkOnSave.command": "clippy",
50 50
51 51
  "list.maxHeight": 10,
52 52
  "list.autoResize": false,
53 53
  "list.extendedSearchMode": false,
54 54
.profile +2 -1
1 1
#!/bin/sh
2 2
3 3
if command -v keychain >/dev/null; then
4 -
  eval $(keychain --eval --agents ssh -Q --quiet ~/.ssh/id_rsa)
4 +
  eval $(keychain --eval --agents ssh -Q --quiet ~/.ssh/id_rsa ~/.radicle/keys/radicle)
5 5
fi
6 6
7 7
export PATH=~/bin:~/.local/bin:~/.yarn/bin:~/.gcloud/bin:~/.cabal/bin:~/.radicle/bin:~/.cargo/bin:~/.gem/ruby/2.6.0/bin:~/.npm-packages/bin:$PATH
8 8
export PATH=$PATH:~/.foundry/bin
9 +
export PATH=$PATH:~/.local/share/gem/ruby/3.0.0/bin
9 10
export NODE_PATH=/usr/lib/node_modules
10 11
export EDITOR=nvim
11 12
export VISUAL=nvim
12 13
export MOZ_USE_XINPUT2=1 # Pixel scrolling in Firefox
13 14
export RIPGREP_CONFIG_PATH=$HOME/.rgrc
.vimrc +13 -1
59 59
set guicursor=n-v-c:block-Cursor/lCursor-blinkon0,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor
60 60
set spelllang=en_us,en_gb
61 61
set completeopt=menu
62 62
set shell=/bin/sh
63 63
set signcolumn=yes
64 +
set notermguicolors
64 65
65 66
" Copy all yanked text to system clipboard (requires `xclip`)
66 67
" set clipboard+=unnamedplus
67 68
68 69
" We don't use tabs much, but at least try and show less cruft
296 297
  tnoremap <Esc> <C-\><C-n>
297 298
endif
298 299
299 300
if executable('rg')
300 301
  let g:ackprg = 'rg -F -S --no-heading --vimgrep'
301 -
  set grepprg=rg\ -S\ -F\ --no-heading\ --vimgrep\ $*
302 +
  set grepprg=rg\ -S\ -F\ --no-heading\ --vimgrep
302 303
endif
303 304
304 305
" Syntax coloring
305 306
syntax enable
306 307
405 406
  nmap <silent> gj           <Plug>(coc-diagnostic-next)
406 407
  nmap <silent> gk           <Plug>(coc-diagnostic-prev)
407 408
  nmap <silent> <leader>/    :CocList --interactive symbols<CR>
408 409
  nmap <silent> <leader>r    <Plug>(coc-rename)
409 410
411 +
  " Use K to show documentation in preview window
412 +
  nnoremap <silent> K :call <SID>show_documentation()<CR>
413 +
414 +
  function! s:show_documentation()
415 +
    if (index(['vim','help'], &filetype) >= 0)
416 +
      execute 'h '.expand('<cword>')
417 +
    else
418 +
      call CocAction('doHover')
419 +
    endif
420 +
  endfunction
421 +
410 422
  inoremap <expr> <cr> coc#pum#visible() ? coc#_select_confirm() : "\<CR>"
411 423
endfunction
412 424
413 425
autocmd User CocNvimInit call SetupCoc()
414 426
command! CocStop call coc#rpc#stop()
.zshenv +4 -4
1 1
##
2 2
# cloudhead - .zshenv
3 3
#
4 -
[ -f ~/.profile ] && source ~/.profile
5 -
[ -f ~/.env ]     && source ~/.env
6 -
[ -f ~/.awsrc ]   && source ~/.awsrc
4 +
[ -f ~/.profile ]   && source ~/.profile
5 +
[ -f ~/.env ]       && source ~/.env
6 +
[ -f ~/.awsrc ]     && source ~/.awsrc
7 +
[ -f ~/.cargo/env ] && source ~/.cargo/env
7 8
8 9
export GOPATH=~
9 10
export PAGER="less -s -M +Gg"
10 11
11 12
if command -v nvim >/dev/null 2>&1; then
14 15
else
15 16
  export VISUAL=vim
16 17
  export EDITOR=vim
17 18
fi
18 19
19 -
. "$HOME/.cargo/env"
.zshrc +1 -0
81 81
alias cloc='tokei'
82 82
alias shred='shred -uvz'
83 83
alias diskusage='ncdu'
84 84
alias calc=kalk
85 85
alias t=tree-git-ignore
86 +
alias sql3='sqlite3 -box'
86 87
87 88
function weather {
88 89
  curl "https://v2.wttr.in/$1"
89 90
}
90 91
bin/record-window +19 -11
1 1
#!/bin/sh
2 +
set -e
2 3
3 4
unset x y w h
4 5
5 -
mkdir -p $HOME/recordings
6 -
7 -
FPS=${FPS:-6}
6 +
FPS=${FPS:-12}
8 7
SCALE=${SCALE:-1}
9 8
NAME=${1:-unknown}
10 -
EXT=${2:webm}
9 +
EXT=${2:-webm}
10 +
11 +
if ! command -v xwininfo >/dev/null 2>&1; then
12 +
  printf "fatal: command 'xwininfo' not found"
13 +
  exit 1
14 +
fi
15 +
16 +
ID="$(xwininfo | grep "Window id" | cut -d' ' -f4 -)"
11 17
12 18
# NOTE: To get the active window: `xwininfo -id $(xdotool getactivewindow)`
13 19
14 -
eval $(xwininfo -name "$NAME" |
20 +
eval $(xwininfo -id "$ID" |
15 21
    sed -n -e "s/^ \+Absolute upper-left X: \+\([0-9]\+\).*/x=\1/p" \
16 22
           -e "s/^ \+Absolute upper-left Y: \+\([0-9]\+\).*/y=\1/p" \
17 23
           -e "s/^ \+Width: \+\([0-9]\+\).*/w=\1/p" \
18 24
           -e "s/^ \+Height: \+\([0-9]\+\).*/h=\1/p" )
19 25
24 30
let y=$y+1
25 31
26 32
OUT="$NAME-$now.$EXT"
27 33
28 34
ffmpeg -v warning \
29 -
         -video_size ${w}x${h} \
30 -
             -framerate 6 \
31 -
             -f x11grab \
32 -
             -i :0.0+${x},${y} \
33 -
             -vf fps=$FPS,scale=iw*$SCALE:ih*$SCALE \
34 -
             "$OUT"
35 +
       -video_size ${w}x${h} \
36 +
       -framerate $FPS \
37 +
       -f x11grab \
38 +
       -i :0.0+${x},${y} \
39 +
       -vcodec libvpx-vp9 \
40 +
       -b:v 1M \
41 +
       -vf fps=$FPS,scale=iw*$SCALE:ih*$SCALE \
42 +
       "$OUT"
35 43
36 44
echo "saved to '$OUT'"
37 45
38 46
# TIP: convert FILE.gif -strip -coalesce -layers Optimize OPTIMIZED.gif