Merge branch 'master' of ssh://git.lyte.dev:2222/lytedev/dotfiles
This commit is contained in:
commit
3490ebdd59
|
@ -118,11 +118,6 @@ nnoremap <leader>l :Buffers<CR>
|
||||||
" switch to previous buffer
|
" switch to previous buffer
|
||||||
nnoremap <leader>h :b#<CR>
|
nnoremap <leader>h :b#<CR>
|
||||||
|
|
||||||
" go to definitions
|
|
||||||
nnoremap <leader>gd :ALEGoToDefinition<CR>
|
|
||||||
nnoremap <leader>gh :ALEGoToDefinitionInSplit<CR>
|
|
||||||
nnoremap <leader>gv :ALEGoToDefinitionInVSplit<CR>
|
|
||||||
|
|
||||||
" use leader j and k to switch buffers as well
|
" use leader j and k to switch buffers as well
|
||||||
nnoremap <leader>k :bnext<CR>
|
nnoremap <leader>k :bnext<CR>
|
||||||
nnoremap <leader>j :bprevious<CR>
|
nnoremap <leader>j :bprevious<CR>
|
||||||
|
@ -211,7 +206,25 @@ xnoremap < <gv
|
||||||
xnoremap > >gv
|
xnoremap > >gv
|
||||||
|
|
||||||
" distraction-free mode
|
" distraction-free mode
|
||||||
nnoremap <silent> <Leader>df :DistractionFreeMode<CR>
|
nnoremap <silent> <leader>df :DistractionFreeMode<CR>
|
||||||
|
|
||||||
" recalc syntax highlighting
|
" recalc syntax highlighting
|
||||||
nnoremap <leader>gs :syntax sync fromstart<CR>
|
nnoremap <leader>gs :syntax sync fromstart<CR>
|
||||||
|
|
||||||
|
" lsp bindings
|
||||||
|
|
||||||
|
" coc
|
||||||
|
|
||||||
|
" open coc config
|
||||||
|
nnoremap <leader><space>c :CocConfig<CR>
|
||||||
|
|
||||||
|
" go to definitions
|
||||||
|
nnoremap <leader>d <Plug>(coc-jump-definition)
|
||||||
|
|
||||||
|
" ale
|
||||||
|
|
||||||
|
" go to definitions
|
||||||
|
" nnoremap <leader>gd :ALEGoToDefinition<CR>
|
||||||
|
" nnoremap <leader>gh :ALEGoToDefinitionInSplit<CR>
|
||||||
|
" nnoremap <leader>gv :ALEGoToDefinitionInVSplit<CR>
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,8 @@ Plug 'sheerun/vim-polyglot' " vim plugin loa
|
||||||
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']} " moonscript language
|
Plug 'leafo/moonscript-vim', {'for': ['moon', 'moonscript']} " moonscript language
|
||||||
Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']} " C# language
|
Plug 'OmniSharp/omnisharp-vim', {'for': ['cs']} " C# language
|
||||||
Plug 'neoclide/coc.nvim', {'branch': 'release'} " language server completion
|
Plug 'neoclide/coc.nvim', {'branch': 'release'} " language server completion
|
||||||
Plug 'JakeBecker/elixir-ls', {'for': ['elixir'], 'do': { -> g:elixirls.compile() }}
|
Plug 'neoclide/coc-json' " coc config ft
|
||||||
|
Plug 'JakeBecker/elixir-ls', {'for': ['elixir', 'eelixir'], 'do': { -> g:elixirls.compile() }}
|
||||||
Plug 'tpope/vim-dadbod' " databasing in vim
|
Plug 'tpope/vim-dadbod' " databasing in vim
|
||||||
Plug 'lytedev/elm-vim' " elm lang
|
Plug 'lytedev/elm-vim' " elm lang
|
||||||
Plug 'ssh://git@git.lyte.dev:2222/lytedev/vim-lytlang.git'
|
Plug 'ssh://git@git.lyte.dev:2222/lytedev/vim-lytlang.git'
|
||||||
|
|
|
@ -2,7 +2,6 @@ scriptencoding utf8
|
||||||
|
|
||||||
" ALE completeopt recommendation
|
" ALE completeopt recommendation
|
||||||
set completeopt=menu,menuone,preview,noselect,noinsert
|
set completeopt=menu,menuone,preview,noselect,noinsert
|
||||||
" set completeopt=noinsert,menuone,noselect,longest,preview
|
|
||||||
|
|
||||||
" line number defaults
|
" line number defaults
|
||||||
set nonumber
|
set nonumber
|
||||||
|
@ -156,3 +155,13 @@ highlight CursorLineNr ctermbg=18 ctermfg=gray
|
||||||
hi IndentGuidesEven ctermbg=18
|
hi IndentGuidesEven ctermbg=18
|
||||||
|
|
||||||
hi Normal ctermbg=NONE
|
hi Normal ctermbg=NONE
|
||||||
|
|
||||||
|
" lsp config
|
||||||
|
|
||||||
|
" ale
|
||||||
|
|
||||||
|
" set completeopt=noinsert,menuone,noselect,longest,preview
|
||||||
|
|
||||||
|
" coc
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -140,10 +140,14 @@ super + alt + minus
|
||||||
super + r
|
super + r
|
||||||
bspc node -R 90
|
bspc node -R 90
|
||||||
|
|
||||||
# balance the current node
|
# balance the current node's leaves
|
||||||
super + shift + b
|
super + shift + b
|
||||||
bspc node -B
|
bspc node -B
|
||||||
|
|
||||||
|
# balance the current node's sibling leaves
|
||||||
|
super + ctrl + b
|
||||||
|
bspc node -f parent && bspc node -B
|
||||||
|
|
||||||
# wm-independant shortcuts
|
# wm-independant shortcuts
|
||||||
|
|
||||||
# spawn a transparent node
|
# spawn a transparent node
|
||||||
|
@ -252,7 +256,7 @@ super + d
|
||||||
xdotool key super+4 && sleep 0.1 && xdotool key shift+4 && xdotool key shift+4 && xdotool key shift+4 && sleep 0.2 && xdotool key super+1 && xdotool key super+3
|
xdotool key super+4 && sleep 0.1 && xdotool key shift+4 && xdotool key shift+4 && xdotool key shift+4 && sleep 0.2 && xdotool key super+1 && xdotool key super+3
|
||||||
|
|
||||||
super + ctrl + c
|
super + ctrl + c
|
||||||
bspc rule -a '*' -o state=floating && urxvtc --geometry 80x16 -e sh -c "khal calendar && bash"
|
bspc rule -a '*' -o state=floating && urxvtc --geometry 64x9 -e sh -c "cal -n 3 && bash"
|
||||||
|
|
||||||
super + shift + v
|
super + shift + v
|
||||||
kill -USR1 $(cat "/var/run/user/$UID/polybar-mic-script.pid")
|
kill -USR1 $(cat "/var/run/user/$UID/polybar-mic-script.pid")
|
||||||
|
|
|
@ -44,7 +44,7 @@ pacaur --needed -S \
|
||||||
jq `# CLI for Interacting with JSON` \
|
jq `# CLI for Interacting with JSON` \
|
||||||
ranger `# CLI File Manager` \
|
ranger `# CLI File Manager` \
|
||||||
bash-completion `# Handy Scripts for Tab-Completion in Bash` \
|
bash-completion `# Handy Scripts for Tab-Completion in Bash` \
|
||||||
python-neovim python-jedi python-mistune python-psutil python-setproctitle httpie \
|
python-neovim python-jedi python-mistune python-psutil python-setproctitle httpie `# httpie and neovim dependencies` \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
||||||
# install rxvt-unicode script for resizing font on-the-fly
|
# install rxvt-unicode script for resizing font on-the-fly
|
||||||
|
|
|
@ -22,7 +22,7 @@ pacaur --needed -S \
|
||||||
audacity `# Audio Editing Application` \
|
audacity `# Audio Editing Application` \
|
||||||
cmake `# Cross-Platform Make` \
|
cmake `# Cross-Platform Make` \
|
||||||
accountsservice `# Mainly for User Avatars with LightDM` \
|
accountsservice `# Mainly for User Avatars with LightDM` \
|
||||||
deluge `# GUI Torrent Client` \
|
deluge cairo python-cairo `# GUI Torrent Client` \
|
||||||
lightdm lightdm-gtk-greeter `# Nice User Login` \
|
lightdm lightdm-gtk-greeter `# Nice User Login` \
|
||||||
polybar-git `# Bar` \
|
polybar-git `# Bar` \
|
||||||
php `# PHP Language` \
|
php `# PHP Language` \
|
||||||
|
@ -41,4 +41,5 @@ pacaur --needed -S \
|
||||||
gnome-shell `# Guh-nome Guh-shell` \
|
gnome-shell `# Guh-nome Guh-shell` \
|
||||||
redshift `# Save Your Eyes` \
|
redshift `# Save Your Eyes` \
|
||||||
vlc `# Video Viewer` \
|
vlc `# Video Viewer` \
|
||||||
|
ncdu `# Disk Usage Analyzer` \
|
||||||
--noconfirm --noedit
|
--noconfirm --noedit
|
||||||
|
|
13
scripts/bin/countdown
Executable file
13
scripts/bin/countdown
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
d=$((`date +%s` + $1));
|
||||||
|
echo "Countdown started $(date)"
|
||||||
|
|
||||||
|
while [ "$d" -ge $(date +%s) ]; do
|
||||||
|
_dt=$(($d - `date +%s`))
|
||||||
|
days=$((_dt / 86400))
|
||||||
|
echo -ne "\r${days}d $(date -u --date @$((_dt)) +%H:%M:%S) ";
|
||||||
|
sleep 0.1
|
||||||
|
done
|
||||||
|
|
||||||
|
echo -ne "\rCountdown finished $(date)\n"
|
11
scripts/bin/sw
Executable file
11
scripts/bin/sw
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
d="$(date +%s)"
|
||||||
|
echo "Stopwatch started $(date)"
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
_dt=$((`date +%s` - d))
|
||||||
|
days=$((_dt / 86400))
|
||||||
|
echo -ne "\r${days}d $(date -u --date @$((_dt)) +%H:%M:%S) "
|
||||||
|
sleep 0.1
|
||||||
|
done
|
Reference in a new issue