Compare commits
3 Commits
8a376d12eb
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56a65081a4 | ||
|
|
4557f2e97f | ||
|
|
8275315dc9 |
@@ -38,4 +38,13 @@
|
|||||||
<family>Braille</family>
|
<family>Braille</family>
|
||||||
</prefer>
|
</prefer>
|
||||||
</alias>
|
</alias>
|
||||||
|
<!-- REAPER fonts patch -->
|
||||||
|
<match target="pattern">
|
||||||
|
<test name="prgname">
|
||||||
|
<string>reaper</string>
|
||||||
|
</test>
|
||||||
|
<edit name="family" mode="assign">
|
||||||
|
<string>Noto Sans CJK TC</string>
|
||||||
|
</edit>
|
||||||
|
</match>
|
||||||
</fontconfig>
|
</fontconfig>
|
||||||
|
|||||||
@@ -1,12 +1,8 @@
|
|||||||
[Default Applications]
|
[Default Applications]
|
||||||
|
|
||||||
# xdg-open will use these settings to determine how to open filetypes.
|
|
||||||
# These .desktop entries can also be seen and changed in ~/.local/share/applications/
|
|
||||||
|
|
||||||
text/x-shellscript=text.desktop;
|
text/x-shellscript=text.desktop;
|
||||||
x-scheme-handler/magnet=torrent.desktop;
|
x-scheme-handler/magnet=torrent.desktop;
|
||||||
application/x-bittorrent=torrent.desktop;
|
application/x-bittorrent=torrent.desktop;
|
||||||
x-scheme-handler/mailto=mail.desktop;
|
x-scheme-handler/mailto=userapp-Thunderbird-9TU2N1.desktop
|
||||||
text/plain=text.desktop;
|
text/plain=text.desktop;
|
||||||
application/postscript=pdf.desktop;
|
application/postscript=pdf.desktop;
|
||||||
application/pdf=pdf.desktop;
|
application/pdf=pdf.desktop;
|
||||||
@@ -17,3 +13,12 @@ application/rss+xml=rss.desktop
|
|||||||
video/x-matroska=video.desktop
|
video/x-matroska=video.desktop
|
||||||
x-scheme-handler/lbry=lbry.desktop
|
x-scheme-handler/lbry=lbry.desktop
|
||||||
inode/directory=file.desktop
|
inode/directory=file.desktop
|
||||||
|
message/rfc822=userapp-Thunderbird-9TU2N1.desktop
|
||||||
|
x-scheme-handler/mid=userapp-Thunderbird-9TU2N1.desktop
|
||||||
|
x-scheme-handler/notion=notion-app.desktop
|
||||||
|
x-scheme-handler/tg=userapp-Telegram Desktop-6L1RO1.desktop
|
||||||
|
|
||||||
|
[Added Associations]
|
||||||
|
x-scheme-handler/mailto=userapp-Thunderbird-9TU2N1.desktop;
|
||||||
|
x-scheme-handler/mid=userapp-Thunderbird-9TU2N1.desktop;
|
||||||
|
x-scheme-handler/tg=userapp-Telegram Desktop-6L1RO1.desktop;
|
||||||
|
|||||||
166
.config/nvim/coc.vim
Normal file
166
.config/nvim/coc.vim
Normal file
@@ -0,0 +1,166 @@
|
|||||||
|
" Set internal encoding of vim, not needed on neovim, since coc.nvim using some
|
||||||
|
" unicode characters in the file autoload/float.vim
|
||||||
|
set encoding=utf-8
|
||||||
|
|
||||||
|
" TextEdit might fail if hidden is not set.
|
||||||
|
set hidden
|
||||||
|
|
||||||
|
" Some servers have issues with backup files, see #649.
|
||||||
|
set nobackup
|
||||||
|
set nowritebackup
|
||||||
|
|
||||||
|
" Give more space for displaying messages.
|
||||||
|
set cmdheight=2
|
||||||
|
|
||||||
|
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
||||||
|
" delays and poor user experience.
|
||||||
|
set updatetime=300
|
||||||
|
|
||||||
|
" Don't pass messages to |ins-completion-menu|.
|
||||||
|
set shortmess+=c
|
||||||
|
|
||||||
|
" Always show the signcolumn, otherwise it would shift the text each time
|
||||||
|
" diagnostics appear/become resolved.
|
||||||
|
if has("nvim-0.5.0") || has("patch-8.1.1564")
|
||||||
|
" Recently vim can merge signcolumn and number column into one
|
||||||
|
set signcolumn=number
|
||||||
|
else
|
||||||
|
set signcolumn=yes
|
||||||
|
endif
|
||||||
|
|
||||||
|
" 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>" :
|
||||||
|
\ CheckBackspace() ? "\<TAB>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||||
|
|
||||||
|
function! CheckBackspace() 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 ShowDocumentation()<CR>
|
||||||
|
|
||||||
|
function! ShowDocumentation()
|
||||||
|
if CocAction('hasProvider', 'hover')
|
||||||
|
call CocActionAsync('doHover')
|
||||||
|
else
|
||||||
|
call feedkeys('K', 'in')
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Highlight the symbol and its references when holding the cursor.
|
||||||
|
autocmd CursorHold * silent call CocActionAsync('highlight')
|
||||||
|
|
||||||
|
" Symbol renaming.
|
||||||
|
nmap <F2> <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)
|
||||||
|
|
||||||
|
" Run the Code Lens action on the current line.
|
||||||
|
nmap <leader>cl <Plug>(coc-codelens-action)
|
||||||
|
|
||||||
|
" 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 CocActionAsync('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 CocActionAsync('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>
|
||||||
@@ -17,18 +17,29 @@ Plug 'vimwiki/vimwiki'
|
|||||||
Plug 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
|
" Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
|
" Plug 'leafOfTree/vim-vue-plugin'
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
set title
|
set title
|
||||||
set bg=light
|
set bg=light
|
||||||
set go=a
|
set go=a
|
||||||
set mouse=a
|
set mouse=a
|
||||||
set nohlsearch
|
|
||||||
set clipboard+=unnamedplus
|
set clipboard+=unnamedplus
|
||||||
set noshowmode
|
set noshowmode
|
||||||
set noruler
|
set noruler
|
||||||
set laststatus=0
|
set laststatus=0
|
||||||
set noshowcmd
|
set noshowcmd
|
||||||
|
set tabstop=4 expandtab softtabstop=4 shiftwidth=4
|
||||||
|
set scrolloff=5
|
||||||
|
|
||||||
|
" Tab
|
||||||
|
nnoremap H gT
|
||||||
|
nnoremap L gt
|
||||||
|
|
||||||
|
" Rename
|
||||||
|
nnoremap <F2> :GoRename<CR>
|
||||||
|
|
||||||
" Some basics:
|
" Some basics:
|
||||||
nnoremap c "_c
|
nnoremap c "_c
|
||||||
@@ -39,6 +50,7 @@ set noshowcmd
|
|||||||
set number relativenumber
|
set number relativenumber
|
||||||
" Enable autocompletion:
|
" Enable autocompletion:
|
||||||
set wildmode=longest,list,full
|
set wildmode=longest,list,full
|
||||||
|
set completeopt=longest,menuone
|
||||||
" Disables automatic commenting on newline:
|
" Disables automatic commenting on newline:
|
||||||
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
|
||||||
" Perform dot commands over visual blocks:
|
" Perform dot commands over visual blocks:
|
||||||
@@ -57,7 +69,8 @@ set noshowcmd
|
|||||||
let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks'
|
let NERDTreeBookmarksFile = stdpath('data') . '/NERDTreeBookmarks'
|
||||||
else
|
else
|
||||||
let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks'
|
let NERDTreeBookmarksFile = '~/.vim' . '/NERDTreeBookmarks'
|
||||||
endif
|
endif" Open the existing NERDTree on each new tab.
|
||||||
|
autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif
|
||||||
|
|
||||||
" vimling:
|
" vimling:
|
||||||
nm <leader><leader>d :call ToggleDeadKeys()<CR>
|
nm <leader><leader>d :call ToggleDeadKeys()<CR>
|
||||||
@@ -97,7 +110,7 @@ set noshowcmd
|
|||||||
" Ensure files are read as what I want:
|
" Ensure files are read as what I want:
|
||||||
let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
|
let g:vimwiki_ext2syntax = {'.Rmd': 'markdown', '.rmd': 'markdown','.md': 'markdown', '.markdown': 'markdown', '.mdown': 'markdown'}
|
||||||
map <leader>v :VimwikiIndex<CR>
|
map <leader>v :VimwikiIndex<CR>
|
||||||
let g:vimwiki_list = [{'path': '~/.local/share/nvim/vimwiki', 'syntax': 'markdown', 'ext': '.md'}]
|
let g:vimwiki_list = [{'path': '~/Notes', 'syntax': 'markdown', 'ext': '.md'}]
|
||||||
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
|
autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown
|
||||||
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
|
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
|
||||||
autocmd BufRead,BufNewFile *.tex set filetype=tex
|
autocmd BufRead,BufNewFile *.tex set filetype=tex
|
||||||
@@ -112,11 +125,11 @@ set noshowcmd
|
|||||||
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q!<CR>
|
||||||
|
|
||||||
" Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position
|
" Automatically deletes all trailing whitespace and newlines at end of file on save. & reset cursor position
|
||||||
autocmd BufWritePre * let currPos = getpos(".")
|
" autocmd BufWritePre * let currPos = getpos(".")
|
||||||
autocmd BufWritePre * %s/\s\+$//e
|
" autocmd BufWritePre * %s/\s\+$//e
|
||||||
autocmd BufWritePre * %s/\n\+\%$//e
|
" autocmd BufWritePre * %s/\n\+\%$//e
|
||||||
autocmd BufWritePre *.[ch] %s/\%$/\r/e
|
" autocmd BufWritePre *.[ch] %s/\%$/\r/e
|
||||||
autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
|
" autocmd BufWritePre * cal cursor(currPos[1], currPos[2])
|
||||||
|
|
||||||
" When shortcut files are updated, renew bash and ranger configs with new material:
|
" When shortcut files are updated, renew bash and ranger configs with new material:
|
||||||
autocmd BufWritePost bm-files,bm-dirs !shortcuts
|
autocmd BufWritePost bm-files,bm-dirs !shortcuts
|
||||||
@@ -154,3 +167,8 @@ nnoremap <leader>h :call ToggleHiddenAll()<CR>
|
|||||||
" So ":vs ;cfz" will expand into ":vs /home/<user>/.config/zsh/.zshrc"
|
" So ":vs ;cfz" will expand into ":vs /home/<user>/.config/zsh/.zshrc"
|
||||||
" if typed fast without the timeout.
|
" if typed fast without the timeout.
|
||||||
source ~/.config/nvim/shortcuts.vim
|
source ~/.config/nvim/shortcuts.vim
|
||||||
|
au filetype go inoremap <buffer> . .<C-x><C-o>
|
||||||
|
inoremap {<CR> {<CR>}<ESC>O
|
||||||
|
|
||||||
|
source ~/.config/nvim/coc.vim
|
||||||
|
command! -nargs=0 Prettier :CocCommand prettier.forceFormatDocument
|
||||||
|
|||||||
@@ -21,9 +21,9 @@ context.properties = {
|
|||||||
core.name = pipewire-0 # core name and socket name
|
core.name = pipewire-0 # core name and socket name
|
||||||
|
|
||||||
## Properties for the DSP configuration.
|
## Properties for the DSP configuration.
|
||||||
#default.clock.rate = 48000
|
default.clock.rate = 48000
|
||||||
#default.clock.allowed-rates = [ 48000 ]
|
#default.clock.allowed-rates = [ 48000 ]
|
||||||
#default.clock.quantum = 1024
|
default.clock.quantum = 128
|
||||||
#default.clock.min-quantum = 32
|
#default.clock.min-quantum = 32
|
||||||
#default.clock.max-quantum = 8192
|
#default.clock.max-quantum = 8192
|
||||||
#default.video.width = 640
|
#default.video.width = 640
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
# Use neovim for vim if present.
|
# Use neovim for vim if present.
|
||||||
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
|
||||||
|
|
||||||
@@ -21,6 +20,8 @@ alias \
|
|||||||
yt="yt-dlp --embed-metadata -i" \
|
yt="yt-dlp --embed-metadata -i" \
|
||||||
yta="yt -x -f bestaudio/best" \
|
yta="yt -x -f bestaudio/best" \
|
||||||
ffmpeg="ffmpeg -hide_banner"
|
ffmpeg="ffmpeg -hide_banner"
|
||||||
|
xclip="xclip -selection clipboard"
|
||||||
|
dig="drill"
|
||||||
|
|
||||||
# Colorize commands when possible.
|
# Colorize commands when possible.
|
||||||
alias \
|
alias \
|
||||||
|
|||||||
@@ -10,5 +10,10 @@ m ${XDG_MUSIC_DIR:-$HOME/Music}
|
|||||||
mn /mnt
|
mn /mnt
|
||||||
pp ${XDG_PICTURES_DIR:-$HOME/Pictures}
|
pp ${XDG_PICTURES_DIR:-$HOME/Pictures}
|
||||||
sc $HOME/.local/bin
|
sc $HOME/.local/bin
|
||||||
src $HOME/.local/src
|
src $HOME/src
|
||||||
vv ${XDG_VIDEOS_DIR:-$HOME/Videos}
|
vv ${XDG_VIDEOS_DIR:-$HOME/Videos}
|
||||||
|
idx $HOME/src/indexer
|
||||||
|
lg $HOME/Notes/ledger
|
||||||
|
api $HOME/src/api
|
||||||
|
app $HOME/src/app-like-co
|
||||||
|
sp $HOME/src/likenft-sample
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ bf ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-files # This file, a list of bookm
|
|||||||
bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs # A list of bookmarked directories similar to this file
|
bd ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs # A list of bookmarked directories similar to this file
|
||||||
cfx ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources # Colors, themes and variables for X11
|
cfx ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources # Colors, themes and variables for X11
|
||||||
cfb ~/.local/src/dwmblocks/config.h # dwmblocks: the status bar for dwm
|
cfb ~/.local/src/dwmblocks/config.h # dwmblocks: the status bar for dwm
|
||||||
|
lgv $HOME/Notes/ledger/wancat.txt
|
||||||
|
|
||||||
|
|
||||||
# These do not update automatically, but on the next new instance of a program:
|
# These do not update automatically, but on the next new instance of a program:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
# to clean up.
|
# to clean up.
|
||||||
|
|
||||||
# Adds `~/.local/bin` to $PATH
|
# Adds `~/.local/bin` to $PATH
|
||||||
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}"
|
export PATH="$PATH:${$(find ~/.local/bin -type d -printf %p:)%%:}:$HOME/.local/share/go/bin"
|
||||||
|
|
||||||
unsetopt PROMPT_SP
|
unsetopt PROMPT_SP
|
||||||
|
|
||||||
|
|||||||
36
.config/shell/shortcutrc
Normal file
36
.config/shell/shortcutrc
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
# vim: filetype=sh
|
||||||
|
alias cac="cd /home/wancat/.cache && ls -a" \
|
||||||
|
cf="cd /home/wancat/.config && ls -a" \
|
||||||
|
D="cd /home/wancat/Downloads && ls -a" \
|
||||||
|
d="cd /home/wancat/Documents && ls -a" \
|
||||||
|
dt="cd /home/wancat/.local/share && ls -a" \
|
||||||
|
rr="cd /home/wancat/.local/src && ls -a" \
|
||||||
|
h="cd /home/wancat && ls -a" \
|
||||||
|
m="cd /home/wancat/Music && ls -a" \
|
||||||
|
mn="cd /mnt && ls -a" \
|
||||||
|
pp="cd /home/wancat/Pictures && ls -a" \
|
||||||
|
sc="cd /home/wancat/.local/bin && ls -a" \
|
||||||
|
src="cd /home/wancat/src && ls -a" \
|
||||||
|
vv="cd /home/wancat/Videos && ls -a" \
|
||||||
|
idx="cd /home/wancat/src/indexer && ls -a" \
|
||||||
|
lg="cd /home/wancat/Notes/ledger && ls -a" \
|
||||||
|
api="cd /home/wancat/src/api && ls -a" \
|
||||||
|
app="cd /home/wancat/src/app-like-co && ls -a" \
|
||||||
|
sp="cd /home/wancat/src/likenft-sample && ls -a" \
|
||||||
|
bf="$EDITOR /home/wancat/.config/shell/bm-files" \
|
||||||
|
bd="$EDITOR /home/wancat/.config/shell/bm-dirs" \
|
||||||
|
cfx="$EDITOR /home/wancat/.config/x11/xresources" \
|
||||||
|
cfb="$EDITOR ~/.local/src/dwmblocks/config.h" \
|
||||||
|
lgv="$EDITOR /home/wancat/Notes/ledger/wancat.txt" \
|
||||||
|
cfv="$EDITOR /home/wancat/.config/nvim/init.vim" \
|
||||||
|
cfz="$EDITOR /home/wancat/.config/zsh/.zshrc" \
|
||||||
|
cfa="$EDITOR /home/wancat/.config/shell/aliasrc" \
|
||||||
|
cfp="$EDITOR /home/wancat/.config/shell/profile" \
|
||||||
|
cfm="$EDITOR /home/wancat/.config/mutt/muttrc" \
|
||||||
|
cfn="$EDITOR /home/wancat/.config/newsboat/config" \
|
||||||
|
cfu="$EDITOR /home/wancat/.config/newsboat/urls" \
|
||||||
|
cfmb="$EDITOR /home/wancat/.config/ncmpcpp/bindings" \
|
||||||
|
cfmc="$EDITOR /home/wancat/.config/ncmpcpp/config" \
|
||||||
|
cfl="$EDITOR /home/wancat/.config/lf/lfrc" \
|
||||||
|
cfL="$EDITOR /home/wancat/.config/lf/scope" \
|
||||||
|
cfX="$EDITOR /home/wancat/.config/sxiv/exec/key-handler" \
|
||||||
35
.config/shell/zshnameddirrc
Normal file
35
.config/shell/zshnameddirrc
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
hash -d cac=/home/wancat/.cache
|
||||||
|
hash -d cf=/home/wancat/.config
|
||||||
|
hash -d D=/home/wancat/Downloads
|
||||||
|
hash -d d=/home/wancat/Documents
|
||||||
|
hash -d dt=/home/wancat/.local/share
|
||||||
|
hash -d rr=/home/wancat/.local/src
|
||||||
|
hash -d h=/home/wancat
|
||||||
|
hash -d m=/home/wancat/Music
|
||||||
|
hash -d mn=/mnt
|
||||||
|
hash -d pp=/home/wancat/Pictures
|
||||||
|
hash -d sc=/home/wancat/.local/bin
|
||||||
|
hash -d src=/home/wancat/src
|
||||||
|
hash -d vv=/home/wancat/Videos
|
||||||
|
hash -d idx=/home/wancat/src/indexer
|
||||||
|
hash -d lg=/home/wancat/Notes/ledger
|
||||||
|
hash -d api=/home/wancat/src/api
|
||||||
|
hash -d app=/home/wancat/src/app-like-co
|
||||||
|
hash -d sp=/home/wancat/src/likenft-sample
|
||||||
|
hash -d bf=/home/wancat/.config/shell/bm-files
|
||||||
|
hash -d bd=/home/wancat/.config/shell/bm-dirs
|
||||||
|
hash -d cfx=/home/wancat/.config/x11/xresources
|
||||||
|
hash -d cfb=~/.local/src/dwmblocks/config.h
|
||||||
|
hash -d lgv=/home/wancat/Notes/ledger/wancat.txt
|
||||||
|
hash -d cfv=/home/wancat/.config/nvim/init.vim
|
||||||
|
hash -d cfz=/home/wancat/.config/zsh/.zshrc
|
||||||
|
hash -d cfa=/home/wancat/.config/shell/aliasrc
|
||||||
|
hash -d cfp=/home/wancat/.config/shell/profile
|
||||||
|
hash -d cfm=/home/wancat/.config/mutt/muttrc
|
||||||
|
hash -d cfn=/home/wancat/.config/newsboat/config
|
||||||
|
hash -d cfu=/home/wancat/.config/newsboat/urls
|
||||||
|
hash -d cfmb=/home/wancat/.config/ncmpcpp/bindings
|
||||||
|
hash -d cfmc=/home/wancat/.config/ncmpcpp/config
|
||||||
|
hash -d cfl=/home/wancat/.config/lf/lfrc
|
||||||
|
hash -d cfL=/home/wancat/.config/lf/scope
|
||||||
|
hash -d cfX=/home/wancat/.config/sxiv/exec/key-handler
|
||||||
@@ -3,12 +3,12 @@
|
|||||||
# This file runs when a DM logs you into a graphical session.
|
# This file runs when a DM logs you into a graphical session.
|
||||||
# If you use startx/xinit like a Chad, this file will also be sourced.
|
# If you use startx/xinit like a Chad, this file will also be sourced.
|
||||||
|
|
||||||
xrandr --dpi 192 # Set DPI. User may want to use a larger number for larger screens.
|
xrandr --dpi 144 -r 75 # Set DPI. User may want to use a larger number for larger screens.
|
||||||
setbg & # set the background with the `setbg` script
|
setbg & # set the background with the `setbg` script
|
||||||
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup
|
xrdb ${XDG_CONFIG_HOME:-$HOME/.config}/x11/xresources & xrdbpid=$! # Uncomment to use Xresources colors/settings on startup
|
||||||
remaps & # run the remaps script, switching caps/esc and more; check it for more info
|
remaps & # run the remaps script, switching caps/esc and more; check it for more info
|
||||||
|
|
||||||
autostart="mpd xcompmgr dunst unclutter pipewire"
|
autostart="mpd xcompmgr dunst unclutter pipewire wireplumber"
|
||||||
|
|
||||||
for program in $autostart; do
|
for program in $autostart; do
|
||||||
pidof -s "$program" || "$program" &
|
pidof -s "$program" || "$program" &
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
*.alpha: 0.9
|
*.alpha: 0.9
|
||||||
|
|
||||||
!! Set a default font and font size as below:
|
!! Set a default font and font size as below:
|
||||||
*.font: monospace:size=10:antialias=true
|
*.font: monospace:size=6:antialias=true
|
||||||
|
|
||||||
/* name dark light */
|
/* name dark light */
|
||||||
/* black 0 8 */
|
/* black 0 8 */
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
/* *.color14: #0f7ddb */
|
/* *.color14: #0f7ddb */
|
||||||
/* *.color7: #d6dbe5 */
|
/* *.color7: #d6dbe5 */
|
||||||
/* *.color15: #ffffff */
|
/* *.color15: #ffffff */
|
||||||
/* *.colorBD: #d6dbe5 */
|
/* *.colorbd: #d6dbe5 */
|
||||||
|
|
||||||
/* ! base16 */
|
/* ! base16 */
|
||||||
/* *.color0: #181818 */
|
/* *.color0: #181818 */
|
||||||
|
|||||||
@@ -20,6 +20,10 @@ HISTFILE="${XDG_CACHE_HOME:-$HOME/.cache}/zsh/history"
|
|||||||
# Basic auto/tab complete:
|
# Basic auto/tab complete:
|
||||||
autoload -U compinit
|
autoload -U compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
zstyle -e ':completion:*:hosts' hosts 'reply=(
|
||||||
|
${=${${(f)"$(cat {/etc/ssh_,~/.ssh/known_}hosts(|2)(N) 2>/dev/null)"}%%[#| ]*}//,/ }
|
||||||
|
${=${${${${(@M)${(f)"$(cat ~/.ssh/config 2>/dev/null)"}:#Host *}#Host }:#*\**}:#*\?*}}
|
||||||
|
)'
|
||||||
zmodload zsh/complist
|
zmodload zsh/complist
|
||||||
compinit
|
compinit
|
||||||
_comp_options+=(globdots) # Include hidden files.
|
_comp_options+=(globdots) # Include hidden files.
|
||||||
@@ -80,3 +84,6 @@ bindkey -M visual '^[[P' vi-delete
|
|||||||
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
source /usr/share/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
|
||||||
bindkey "^[[A" history-beginning-search-backward
|
bindkey "^[[A" history-beginning-search-backward
|
||||||
bindkey "^[[B" history-beginning-search-forward
|
bindkey "^[[B" history-beginning-search-forward
|
||||||
|
bindkey "^[[H" beginning-of-line
|
||||||
|
bindkey "^[[4~" end-of-line
|
||||||
|
source /usr/share/nvm/init-nvm.sh
|
||||||
|
|||||||
@@ -9,3 +9,5 @@ setxkbmap -option caps:super,altwin:menu_win
|
|||||||
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
|
killall xcape 2>/dev/null ; xcape -e 'Super_L=Escape'
|
||||||
# Turn off caps lock if on since there is no longer a key for it.
|
# Turn off caps lock if on since there is no longer a key for it.
|
||||||
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
xset -q | grep "Caps Lock:\s*on" && xdotool key Caps_Lock
|
||||||
|
xinput --set-prop 'pointer:Razer Razer Basilisk X HyperSpeed' 'libinput Accel Speed' -1
|
||||||
|
xinput --set-prop 'pointer:MM731 Hybrid Mouse' 'libinput Accel Speed' -1
|
||||||
|
|||||||
@@ -7,4 +7,4 @@ PID="$(pstree -lpA "$PID")"
|
|||||||
PID="${PID##*"${SHELL##*/}"(}"
|
PID="${PID##*"${SHELL##*/}"(}"
|
||||||
PID="${PID%%)*}"
|
PID="${PID%%)*}"
|
||||||
cd "$(readlink /proc/"$PID"/cwd)" || return 1
|
cd "$(readlink /proc/"$PID"/cwd)" || return 1
|
||||||
"$TERMINAL"
|
"$TERMINAL" &
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
thiemeyer_road_to_samarkand.jpg
|
spyxfamily.png
|
||||||
Reference in New Issue
Block a user