From 43f9769f63a98efe50b94886bf7a501c011d871d Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Sun, 22 Oct 2023 18:51:41 +0000 Subject: aaaaaaaaaa --- .bashrc | 12 +++++++-- .config/i3/config | 16 +++++++----- .config/nvim/coc-settings.json | 13 ++++++++++ .config/nvim/init.vim | 57 +++++++++++++++++++++++++++++++++++++++++- 4 files changed, 89 insertions(+), 9 deletions(-) create mode 100644 .config/nvim/coc-settings.json diff --git a/.bashrc b/.bashrc index 22178df..4f87462 100644 --- a/.bashrc +++ b/.bashrc @@ -13,8 +13,15 @@ export d="/mnt/D" function swap() { mv "$1" "$1._tmp" && mv "$2" "$1" && mv "$1._tmp" "$2"; } -function kboff() { xinput float 22; } -function kbon() { xinput reattach 22 3; } +function kboff() { xinput float `xinput \ + | grep "AT Translated" \ + | sed -r 's/.+id=([0-9]+).+/\1/'`; } +function kbon() { xinput reattach `xinput \ + | grep "AT Translated" \ + | sed -r 's/.+id=([0-9]+).+/\1/'` \ + `xinput \ + | grep "Virtual core keyboard" \ + | sed -r 's/.+id=([0-9]+).+/\1/'` ; } # dotfiles alias config='/usr/bin/git --git-dir=$HOME/.cfg --work-tree=$HOME' @@ -23,3 +30,4 @@ GHC_PACKAGE_PATH="/usr/lib/ghc-9.0.2/package.conf.d" # Created by `pipx` on 2023-08-09 18:40:17 export PATH="$PATH:/home/main/.local/bin" export VISUAL=vim + diff --git a/.config/i3/config b/.config/i3/config index 39d5c37..7909229 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -26,6 +26,9 @@ bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status +bindsym $mod+b exec sudo systemctl start bluetooth.service +bindsym $mod+Shift+b exec sudo systemctl stop bluetoth.service + # Use Mouse+$mod to drag floating windows to their wanted position floating_modifier $mod @@ -118,7 +121,7 @@ set $ws4 "4: file manager" set $ws5 "5: office" set $ws6 "6" set $ws7 "7" -set $ws8 "8" +set $ws8 "8: media player" set $ws9 "9: code assisting" set $ws10 "10: code editors" @@ -155,10 +158,13 @@ assign [class="discord"] workspace $ws3 assign [class="TelegramDesktop"] workspace $ws3 assign [class="fm"] workspace $ws4 assign [class="Double Commander"] workspace $ws4 +assign [class="org.gnome.Nautilus"] workspace $ws4 assign [class="QtCreator"] workspace $ws10 assign [class="tm"] workspace $ws5 assign [class="pr"] workspace $ws5 assign [class="pm"] workspace $ws5 +assign [class="vlc"] workspace $ws8 +assign [class="libreoffice"] workspace $ws5 #assign [class="GigaQt"] workspace $ws9 @@ -247,9 +253,10 @@ default_border pixel 3 exec xrandr --setprovideroutputsource NVIDIA-G0 Intel exec ~/.screenlayout/doublemonitor.layout.sh -#disable integrated keyboard input +# disable integrated keyboard input +# please, just work (check out that function in bashrc lmao) exec kboff -#switch keyboard colors +# switch keyboard colors exec openrgb --color "00FFFF" exec $terminal @@ -268,6 +275,3 @@ exec_always xset r rate 333 25 # empty lines at the EOF - - - diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json new file mode 100644 index 0000000..e2621cd --- /dev/null +++ b/.config/nvim/coc-settings.json @@ -0,0 +1,13 @@ +{ + "languageserver" : { + "haskell": { + "command": "haskell-language-server-wrapper", + "args": ["--lsp"], + "rootPatterns": ["*.cabal", "stack.yaml", "cabal.project", "package.yaml", "hie.yaml"], + "filetypes": ["hs", "haskell", "lhaskell"], + "settings": { + + } + } + } +} diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 58fa1d6..117b258 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -19,13 +19,68 @@ Plug 'https://github.com/ryanoasis/vim-devicons' " icons for some plugins????? Plug 'https://github.com/terryma/vim-multiple-cursors' " this is gonna be tough to learn... " Plug 'ycm-core/YouCompleteMe' " autocompletion (REQUIRES PYTHON3 VENV) Plug 'neoclide/coc.nvim', {'branch': 'release'} " Language-server +call plug#end() + +set nobackup +set nowritebackup +set updatetime=420 cmap w!! w !sudo tee % > /dev/null nnoremap :NERDTreeFocus +inoremap + \ coc#pum#visible() ? coc#pum#next(1) : + \ CheckBackspace() ? "\" : + \ coc#refresh() +inoremap coc#pum#visible() ? coc#pum#confirm() + \: "u\=coc#on_enter()\" +function! CheckBackspace() abort + let col = col('.') - 1 + return !col || getline('.')[col - 1] =~# '\s' +endfunction -call plug#end() +inoremap coc#refresh() +nmap [g (coc-diagnostic-prev) +nmap ]g (coc-diagnostic-next) + +nmap gd (coc-definition) +nmap gy (coc-type-definition) +nmap gi (coc-implementation) +nmap gr (coc-references) + +nnoremap K :call ShowDocumentation() + +function! ShowDocumentation() + if CocAction('hasProvider', 'hover') + call CocActionAsync('doHover') + else + call feedkeys('K', 'in') + endif +endfunction + +autocmd CursorHold * silent call CocActionAsync('highlight') +nmap rn (coc-rename) + +set statusline^=%{coc#status()}%{get(b:,'coc_current_function','')} + +" Mappings for CoCList +" Show all diagnostics +nnoremap a :CocList diagnostics +" Manage extensions +nnoremap e :CocList extensions +" Show commands +nnoremap c :CocList commands +" Find symbol of current document +nnoremap o :CocList outline +" Search workspace symbols +nnoremap s :CocList -I symbols +" Do default action for next item +nnoremap j :CocNext +" Do default action for previous item +nnoremap k :CocPrev +" Resume latest coc list +nnoremap p :CocListResume :colo evening -- cgit v1.2.3-70-g09d2