diff --git a/.Xresources b/.Xresources index 7902631..c68b474 100644 --- a/.Xresources +++ b/.Xresources @@ -7,7 +7,7 @@ URxvt.scrollBar: false URxvt.internalBorder: 10 ! Font styles -URxvt.font: xft:MesloLGS NF:size=12 +URxvt.font: xft:MesloLGS NF:size=16 URxvt.cursorColor: #d50505 URxvt.highlightColor: #303030 URxvt.highlightTextColor: #A0A0A0 @@ -17,5 +17,11 @@ URxvt.saveLines: 200000 URxvt.perl-ext-common: resize-font ! Resize terminal -URxvt.resize-font.smaller: C-j -URxvt.resize-font.bigger: C-k +URxvt.keysym.Shift-Control-J: resize-font:smaller +URxvt.keysym.Shift-Control-K: resize-font:bigger + +! Ctrl-HJKL +URxvt.keysym.Control-j: \033[1;5A +URxvt.keysym.Control-k: \033[1;5B +URxvt.keysym.Control-h: \033[1;5D +URxvt.keysym.Control-l: \033[1;5C diff --git a/i3/config b/i3/config index c81fe1c..798aa4a 100644 --- a/i3/config +++ b/i3/config @@ -42,7 +42,7 @@ floating_modifier $mod # start applications bindsym $mod+Return exec i3-sensible-terminal -bindsym $mod+Shift+f exec firefox +bindsym $mod+Shift+f exec chromium bindsym $mod+Shift+d exec discord bindsym Print exec "flameshot gui" diff --git a/vim/init.vim b/vim/init.vim index 26a641b..1473dc4 100644 --- a/vim/init.vim +++ b/vim/init.vim @@ -11,6 +11,7 @@ set nohlsearch set hidden set incsearch set scrolloff=8 +set colorcolumn=80 set signcolumn=yes " Remove arrow keys to train my fingers @@ -23,6 +24,9 @@ noremap nnoremap let mapleader=" " +" Grammarous keybindings +noremap :GrammarousCheck + " Add key bindings for fuzzy finder nnoremap pf Telescope find_files nnoremap pg Telescope live_grep @@ -34,6 +38,9 @@ call plug#begin('~/.vim/plugged') Plug 'neovim/nvim-lspconfig' Plug 'nvim-lua/completion-nvim' +" Grammar checker +Plug 'rhysd/vim-grammarous' + " Nvim fuzzy finder Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' @@ -49,8 +56,10 @@ call plug#end() " Load the clangd server as the interpreter set completeopt=menuone,noinsert,noselect let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy'] + +" Language server for nvim-lsp lua require'lspconfig'.clangd.setup{on_attach=require'completion'.on_attach} -lua require'lspconfig'.pyls.setup{on_attach=require'completion'.on_attach} +"lua require'lspconfig'.pyls.setup{on_attach=require'completion'.on_attach} " Set colorscheme colorscheme gruvbox diff --git a/zsh/.zshrc b/zsh/.zshrc index 5452196..1209fe7 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -208,16 +208,35 @@ zplug load source /usr/share/fzf/completion.zsh source /usr/share/fzf/key-bindings.zsh source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh + # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # CUSTOM ALIASES & FUNCTIONS alias open='xdg-open' -alias cewl='ruby -W0 /opt/CeWL/cewl.rb' -alias up='sudo python -m http.server 80' +alias listen='rlwrap nc -lnvp' alias vim='nvim' +# Cd multiple directoryies alias. +function .. () {cd ..} +function ... () {cd ../../} +function .... () {cd ../../../} +function ..... () {cd ../../../../} +function ...... () {cd ../../../../../} + +function up() { + for ip in $(ip addr | awk "/inet .*$1/ {print \$2}" | cut -d / -f 1) + do + for filepath in $(find . -maxdepth 1 -type f -name '[^.]*' -printf '%f\n') + do + echo "http://$ip/$filepath" + done + done + sudo python -m http.server 80 +} + # Wordlists export rockyou="/usr/share/seclists/Passwords/Leaked-Databases/rockyou.txt" export fasttrack="/usr/share/seclists/Passwords/fasttrack.txt"