Compare commits

..

8 Commits

Author SHA1 Message Date
b0c5edc100 increase basedness of keybinds 2025-03-17 08:45:23 -06:00
f8fe872aff command updates 2024-12-08 21:20:13 -07:00
3900d6e89d use nvim by default 2024-08-30 05:21:00 +00:00
a03739b204 make sure the new user has a home 2024-08-05 21:01:39 +00:00
e8daa5f7f7 Update .local/bin/chroot-gen 2024-08-05 20:46:41 +00:00
4df4be69b7 add coc plugins 2024-07-25 16:25:15 +00:00
5a9d8f991d add cursor line back 2024-05-14 18:28:30 +00:00
Oliver Atkinson
4b4fcd7e0a move xresources to new x11 folder 2024-04-30 13:13:52 -06:00
8 changed files with 22 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ alias cura="cura5 -platformtheme gtk3"
alias cp="cp -iv"
alias mv="mv -iv"
alias rm="rm -vI"
alias vim="nvim"
# User lfcd by default (it should exist), fall back
# to ranger if lfcd isn't found. IDK why you wouldn't

View File

@@ -25,7 +25,6 @@ set tabstop=4 shiftwidth=4 smarttab
highlight Comment ctermfg=Grey
nnoremap <silent> <leader>p :split +term <CR>
" =============== NERDTree ================================================
" Toggle file browser
nnoremap <silent> <leader>e :NERDTreeToggle<CR>
@@ -37,7 +36,7 @@ let g:onedark_config = {
colorscheme onedark
hi CocFloating guibg=#151515 guifg=clear
hi Pmenu guibg=#151515 guifg=clear
hi @parameter guifg=#ed6215
" hi @parameter guifg=#ed6215
hi CursorColumn guibg=#e2c792 guifg=#232326
" =============== NERDTree Config ================================================
@@ -63,16 +62,16 @@ endfunction
autocmd CursorHold * silent call CocActionAsync('highlight')
" coc rename
nnoremap <silent> <leader>r <Plug>(coc-rename)
nmap <leader>r <Plug>(coc-rename)
" Jump between references and definiton
nnoremap <silent> <C-k> :call CocActionAsync('jumpReferences')<CR>
nnoremap <silent> K :call CocActionAsync('jumpDefinition')<CR>
nnoremap <leader>j :call CocActionAsync('jumpReferences')<CR>
nnoremap <leader>k :call CocActionAsync('jumpDefinition')<CR>
" show help menu
nnoremap <C-u> :call CocActionAsync('codeAction', 'cursor')<CR>
nnoremap <leader>d :call CocActionAsync('codeAction', 'cursor')<CR>
nnoremap <leader>a :call CocActionAsync('runCommand', 'editor.action.formatDocument')<CR>
" Show Documentation
nnoremap <silent> J :call ShowDocumentation()<CR>
nnoremap <leader>f :call ShowDocumentation()<CR>
function! ShowDocumentation() " Show hover when provider exists, fallback to vim's builtin behavior.
if CocAction('hasProvider', 'hover')
call CocActionAsync('definitionHover')

View File

@@ -1,3 +1,2 @@
#!/bin/bash
paplay /usr/share/sounds/freedesktop/stereo/complete.oga
pw-play /usr/share/sounds/freedesktop/stereo/complete.oga

2
.local/bin/brightness Executable file
View File

@@ -0,0 +1,2 @@
#!/bin/bash
xrandr | grep " connected" | awk '{print $1}' | xargs -I% xrandr --output % --brightness $1

View File

@@ -1,6 +1,8 @@
#!/bin/bash
# Adapted from LinuxConfig.org
# GNU GPL v3.0+
# cmds build into bash: echo, cd
CMDS="bash clear mkdir touch mv rm ls grep cat vim"
USER=$1
@@ -9,7 +11,7 @@ CMDS=($CMDS) # convert to array
if ! id "$USER" 2&>/dev/null; then
echo 'INFO: User not found'
echo 'Creating...'
useradd --shell /usr/bin/bash $USER
useradd --create-home --shell /usr/bin/bash $USER
echo "Password for $USER:"
passwd $USER
fi

View File

@@ -2,3 +2,4 @@
tar cvf $1.tar $1
gzip --best $1.tar
rm $1.tar

View File

@@ -7,3 +7,7 @@ sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
```
otherwise just copy the .local and .config folders into your system's
## Coc plugins
* coc-pyright
* coc-rust-analyzer