Various changes
bb1afd6f2905619e58d30c5dac5747fd2d6e44c9
1 parent
1714cb18
.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=#ff7f8f |
|
| 4 | + | drawColor=#0012ff |
|
| 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/systemd/user/dropbox.service
deleted
+0 -12
| 1 | - | [Unit] |
|
| 2 | - | Description=Dropbox |
|
| 3 | - | After=network.target |
|
| 4 | - | ||
| 5 | - | [Service] |
|
| 6 | - | Environment="PATH=/usr/local/bin:/usr/bin" |
|
| 7 | - | ExecStart=/usr/bin/unison dropbox |
|
| 8 | - | Restart=always |
|
| 9 | - | RestartSec=10 |
|
| 10 | - | ||
| 11 | - | [Install] |
|
| 12 | - | WantedBy=default.target |
.config/systemd/user/share-sync.service
deleted
+0 -13
| 1 | - | [Unit] |
|
| 2 | - | Description=Backup Service |
|
| 3 | - | ||
| 4 | - | [Service] |
|
| 5 | - | Type=simple |
|
| 6 | - | WorkingDirectory=/home/cloudhead |
|
| 7 | - | Environment=PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
|
| 8 | - | ExecStart=/home/cloudhead/bin/share-sync |
|
| 9 | - | Restart=always |
|
| 10 | - | RestartSec=1000ms |
|
| 11 | - | ||
| 12 | - | [Install] |
|
| 13 | - | WantedBy=multi-user.target |
.gtkrc-2.0.mine
deleted
+0 -15
| 1 | - | gtk-theme-name="Adwaita" |
|
| 2 | - | gtk-icon-theme-name="Adwaita" |
|
| 3 | - | gtk-font-name="Arial 12" |
|
| 4 | - | gtk-cursor-theme-name="Adwaita" |
|
| 5 | - | gtk-cursor-theme-size=0 |
|
| 6 | - | gtk-toolbar-style=GTK_TOOLBAR_BOTH |
|
| 7 | - | gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR |
|
| 8 | - | gtk-button-images=0 |
|
| 9 | - | gtk-menu-images=0 |
|
| 10 | - | gtk-enable-event-sounds=0 |
|
| 11 | - | gtk-enable-input-feedback-sounds=0 |
|
| 12 | - | gtk-xft-antialias=1 |
|
| 13 | - | gtk-xft-hinting=1 |
|
| 14 | - | gtk-xft-hintstyle="hintfull" |
|
| 15 | - | gtk-xft-rgba="rgb" |
.profile
+2 -2
| 13 | 13 | export MOZ_USE_XINPUT2=1 # Pixel scrolling in Firefox |
|
| 14 | 14 | export RIPGREP_CONFIG_PATH=$HOME/.rgrc |
|
| 15 | 15 | export NNN_FIFO=/tmp/nnn.fifo |
|
| 16 | 16 | export CARGO_BUILD_JOBS=12 |
|
| 17 | 17 | ||
| 18 | - | systemctl --user start share-sync |
|
| 19 | - | ||
| 20 | 18 | if [ -e ~/.nix-profile/etc/profile.d/nix.sh ]; then |
|
| 21 | 19 | . ~/.nix-profile/etc/profile.d/nix.sh; |
|
| 22 | 20 | fi # added by Nix installer |
|
| 21 | + | ||
| 22 | + | export LD_LIBRARY_PATH="/opt/cuda/lib64:$LD_LIBRARY_PATH" |
.vimrc
+17 -8
| 139 | 139 | au FileType markdown setlocal nonumber conceallevel=0 |
|
| 140 | 140 | au FileType rst setlocal nonumber sw=2 expandtab wrap linebreak textwidth=80 |
|
| 141 | 141 | au FileType todo setlocal nonumber sw=2 expandtab nolinebreak nowrap textwidth=0 |
|
| 142 | 142 | au FileType fountain setlocal nonumber noai nocin nosi inde= wrap linebreak |
|
| 143 | 143 | au FileType tex setlocal |
|
| 144 | + | au FileType verilog setlocal commentstring=//\ %s |
|
| 145 | + | au FileType riscv setlocal number sts=4 sw=4 expandtab noautoindent commentstring=#\ %s |
|
| 144 | 146 | ||
| 145 | 147 | au BufRead,BufNewFile *.md setf markdown |
|
| 146 | 148 | au BufRead,BufNewFile *.tex setf tex |
|
| 147 | 149 | au BufRead,BufNewFile *.todo setf todo |
|
| 148 | 150 | au BufRead,BufNewFile *.tikz setf tex |
| 272 | 274 | ||
| 273 | 275 | " Actually easier to type and I do it by mistake anyway |
|
| 274 | 276 | cnoreabbrev W w |
|
| 275 | 277 | cnoreabbrev Q q |
|
| 276 | 278 | ||
| 277 | - | " Ack |
|
| 278 | - | cnoreabbrev ack Ack! |
|
| 279 | - | ||
| 280 | 279 | " File navigation/search |
|
| 281 | 280 | nnoremap <Leader>o :FuzzyOpen<CR> |
|
| 282 | 281 | nnoremap <Leader>f :FuzzyGrep<CR> |
|
| 283 | 282 | nnoremap <Leader>t :FuzzyTodo<CR> |
|
| 284 | 283 |
| 298 | 297 | ||
| 299 | 298 | if has("nvim") |
|
| 300 | 299 | tnoremap <Esc> <C-\><C-n> |
|
| 301 | 300 | endif |
|
| 302 | 301 | ||
| 302 | + | " Grep |
|
| 303 | 303 | if executable('rg') |
|
| 304 | - | let g:ackprg = 'rg -F -S --no-heading --vimgrep' |
|
| 305 | - | set grepprg=rg\ -S\ -F\ --no-heading\ --vimgrep |
|
| 304 | + | set grepprg=rg\ --vimgrep |
|
| 305 | + | set grepformat=%f:%l:%c:%m |
|
| 306 | 306 | endif |
|
| 307 | + | command! -nargs=+ Rg execute 'silent grep! <args>' | copen 12 |
|
| 308 | + | autocmd FileType qf nnoremap <buffer> <CR> <CR> |
|
| 307 | 309 | ||
| 308 | 310 | " Syntax coloring |
|
| 309 | 311 | syntax enable |
|
| 310 | 312 | ||
| 311 | 313 | " Profiling |
| 332 | 334 | call plug#begin() |
|
| 333 | 335 | ||
| 334 | 336 | Plug 'tpope/vim-commentary' |
|
| 335 | 337 | Plug 'evanleck/vim-svelte', { 'for': ['svelte'], 'branch': 'main' } |
|
| 336 | 338 | Plug 'pangloss/vim-javascript', { 'for': ['javascript'] } |
|
| 337 | - | Plug 'mileszs/ack.vim' |
|
| 338 | 339 | Plug 'bronson/vim-visual-star-search' |
|
| 339 | 340 | Plug 'cloudhead/neovim-fuzzy' |
|
| 340 | 341 | Plug 'cloudhead/shady.vim' |
|
| 341 | 342 | Plug 'tikhomirov/vim-glsl' |
|
| 342 | 343 | Plug 'junegunn/goyo.vim' |
|
| 343 | 344 | Plug 'exu/pgsql.vim' |
|
| 344 | 345 | Plug 'lervag/vimtex', { 'for': ['tex'] } |
|
| 345 | 346 | Plug 'itchyny/vim-gitbranch' |
|
| 346 | 347 | Plug 'cespare/vim-toml' |
|
| 347 | 348 | Plug 'rust-lang/rust.vim' |
|
| 348 | - | Plug 'neoclide/coc.nvim', { 'branch': 'release', 'for': ['rust', 'typescript', 'svelte'] } |
|
| 349 | + | Plug 'neoclide/coc.nvim', { 'branch': 'release', 'for': ['rust', 'typescript', 'svelte', 'c'] } |
|
| 349 | 350 | Plug 'neovim/nvim-lspconfig' |
|
| 350 | 351 | Plug 'lewis6991/gitsigns.nvim' |
|
| 351 | 352 | Plug 'leafgarland/typescript-vim', { 'for': ['typescript'] } |
|
| 352 | 353 | Plug 'lambdalisue/fern.vim' |
|
| 353 | 354 | Plug 'lervag/wiki.vim' |
|
| 355 | + | Plug 'laurelmay/riscv.vim' |
|
| 354 | 356 | ||
| 355 | 357 | call plug#end() |
|
| 356 | 358 | endif |
|
| 357 | 359 | ||
| 358 | 360 | " |
| 364 | 366 | ||
| 365 | 367 | " autocmd BufWrite * sign unplace * |
|
| 366 | 368 | autocmd CursorHold *.rs silent QuickfixSigns |
|
| 367 | 369 | ||
| 368 | 370 | function! s:QuickfixSigns() |
|
| 369 | - | silent! cgetfile |
|
| 371 | + | " Only try to read from .errors if it exists and is non-empty |
|
| 372 | + | if filereadable('.errors') && getfsize('.errors') > 0 |
|
| 373 | + | silent! cgetfile |
|
| 374 | + | endif |
|
| 375 | + | ||
| 370 | 376 | sign unplace * |
|
| 371 | 377 | for dict in getqflist() |
|
| 372 | 378 | if dict.type != 'E' |
|
| 373 | 379 | continue |
|
| 374 | 380 | endif |
| 408 | 414 | nmap <silent> gj <Plug>(coc-diagnostic-next) |
|
| 409 | 415 | nmap <silent> gk <Plug>(coc-diagnostic-prev) |
|
| 410 | 416 | nmap <silent> <leader>/ :CocList --interactive symbols<CR> |
|
| 411 | 417 | nmap <silent> <leader>r <Plug>(coc-rename) |
|
| 412 | 418 | ||
| 419 | + | " Auto-format C files. |
|
| 420 | + | autocmd BufWritePre *.c,*.h :call CocAction('format') |
|
| 421 | + | ||
| 413 | 422 | " Use K to show documentation in preview window |
|
| 414 | 423 | nnoremap <silent> K :call <SID>show_documentation()<CR> |
|
| 415 | 424 | ||
| 416 | 425 | function! s:show_documentation() |
|
| 417 | 426 | if (index(['vim','help'], &filetype) >= 0) |
.zshrc
+2 -0
| 51 | 51 | # |
|
| 52 | 52 | # Aliases |
|
| 53 | 53 | # |
|
| 54 | 54 | alias g='git' |
|
| 55 | 55 | alias n='sudo netctl' |
|
| 56 | + | alias b='yazi' |
|
| 57 | + | alias f='fd' |
|
| 56 | 58 | alias mk='make' |
|
| 57 | 59 | alias mv='/bin/mv -i' |
|
| 58 | 60 | alias ..='cd ..' |
|
| 59 | 61 | alias img='sxiv -a' |
|
| 60 | 62 | alias df='df -h' |
bin/share-sync
+2 -2
| 25 | 25 | exit 0 |
|
| 26 | 26 | fi |
|
| 27 | 27 | ||
| 28 | 28 | echo "Backup service started.." | systemd-cat -p info |
|
| 29 | 29 | ||
| 30 | - | while inotifywait -qqr \ |
|
| 31 | - | -e modify -e moved_to -e moved_from -e create -e delete "$dir"; |
|
| 30 | + | while inotifywait -t 60 -qqr \ |
|
| 31 | + | -e close_write -e moved_to -e moved_from -e delete "$dir"; |
|
| 32 | 32 | do |
|
| 33 | 33 | rsync --del -avz $dir $user@box:share |
|
| 34 | 34 | done |