all repos

dotfiles @ 1f5249ea789001925ac90fade0ab98d430f59555

i use rach linux btw
25 files changed, 183 insertions(+), 663 deletions(-)
Minimaze nvim config, update git config, clean configs
Author: Smirnov Olexandr ss2316544@gmail.com
Committed at: 2021-02-14 18:06:43 +0200
Parent: 9b2871d
M README.md
···
        5
        5
         

      
        6
        6
         #### System configuration

      
        7
        7
         - `OS` Arch

      
        8
        
        -- `WM` bspwm, i3

      
        9
        
        -- `Terminal` Alacritty

      
        
        8
        +- `WM` bspwm, qtile

      
        
        9
        +- `Terminal` alacritty

      
        10
        10
         - `Shell` zsh

      
        11
        
        -- `Editor` nvim

      
        12
        
        -- `File manager` ranger, mc

      
        13
        
        -- `Browser` firefox

      
        
        11
        +- `Editor` nvim, vscode

      
        
        12
        +- `File manager` ranger

      
        
        13
        +- `Browser` firefox,

      
        14
        14
         - `Font` Jatbrains Mono

      
        15
        
        -- `Icon font` FontAwesome5

      
        16
        
        -- `Launcher` dmenu, rofi

      
        
        15
        +- `Icon font` FontAwesome

      
        
        16
        +- `Launcher` rofi

      
        17
        17
         

      
        18
        
        -#### Install configs

      
        
        18
        +#### Install config

      
        19
        19
         Since i use **[rcm](https://github.com/thoughtbot/rcm)** set it:

      
        20
        20
         ~~~bash

      
        21
        21
         yay -S rcm

      
        22
        22
         ~~~

      
        23
        23
         

      
        24
        
        -Install deps:

      
        25
        
        -~~~bash

      
        26
        
        -sudo pacman -S neovim tmux git i3wm bspwm sxhkd qtile alacritty picom dunst ranger firefox ttf-font-awesome ttf-jetbrains-mono rofi zsh zathura redshift

      
        27
        
        -yay -S polybar

      
        28
        
        -pip install -U castero

      
        29
        
        -~~~

      
        30
        
        -

      
        
        24
        +Install dependency:

      
        
        25
        +```bash

      
        
        26
        +sudo pacman -S neovim tmux git bspwm sxhkd alacritty picom dunst zsh rofi ranger firefox ttf-font-awesome ttf-jetbrains

      
        
        27
        +yay -S polybar xkblayout

      
        
        28
        +```

      
        31
        29
         

      
        32
        
        -And install configs:

      
        
        30
        +And install config:

      
        33
        31
         ~~~bash

      
        34
        32
         git clone https://github.com/Smirnov-O/dotfiles .dotfiles

      
        35
        33
         rcup

      
        36
        
        -mv ~/.bin ~/bin

      
        37
        
        -~~~
      
        
        34
        +~~~

      
D bashrc
···
        1
        
        -export PATH="$HOME/bin:$HOME/.local/bin:$PATH"

      
        2
        
        -source ~/.profile

      
        3
        
        -#source ~/.env

      
        4
        
        -

      
        5
        
        -# Prompt generator - ezprompt.net

      
        6
        
        -export PS1="\[\e[36m\]\u\[\e[m\]@\[\e[32m\]\w\[\e[m\] \\$ "

      
        7
        
        -

      
        8
        
        -### Variables ###

      
        9
        
        -export EDITOR='nvim'

      
        10
        
        -export VISUAL='nvim'

      
        11
        
        -

      
        12
        
        -### Aliases ###

      
        13
        
        -alias cls='clear'

      
        14
        
        -alias ls='ls --color=auto'

      
        15
        
        -alias sl="ls"

      
        16
        
        -alias tmux="tmux -2"

      
        17
        
        -alias mkdir="mkdir -p"

      
        18
        
        -alias du="du -sh"

      
        19
        
        -alias df="df -h"

      
        20
        
        -alias cp="cp -r" 

      
        21
        
        -alias :q="exit"

      
        22
        
        -alias ..='cd ..'

      
        23
        
        -alias ...='cd ../..'

      
        24
        
        -alias .3='cd ../../..'

      
        25
        
        -alias .4='cd ../../../..'

      
        26
        
        -alias .5='cd ../../../../..'

      
        27
        
        -alias .6='cd ../../../../../..'

      
M config/bspwm/sxhkd
···
        11
        11
              alacritty --class=ranger -e ranger, \

      
        12
        12
              alacritty --class=nvim   -e nvim,   \

      
        13
        13
              code,                               \

      
        14
        
        -	 xkill                               }

      
        
        14
        +     xkill                               }

      
        15
        15
         

      
        16
        16
         super + shift + z

      
        17
        17
             betterlockscreen --off 180 -t "Computer is lokerd" -l

      ···
        20
        20
             amixer sset Master {2%+,2%-,toggle}

      
        21
        21
         

      
        22
        22
         super + {Escape, ctrl + u, ctrl  + i}

      
        23
        
        -	{./.script/dmenu/dmenu-power.sh,       \

      
        
        23
        +    {./.script/dmenu/dmenu-power.sh,       \

      
        24
        24
              ./.script/dmenu/dmenu-config-edit.sh, \

      
        25
        25
              ./.script/dmenu/dmenu-pass.sh         }

      
        26
        26
         

      
        27
        
        -## == BSPWM keys

      
        
        27
        +### == BSPWM keys

      
        28
        28
         super + q

      
        29
        29
         	bspc node -{c,k}

      
        30
        30
         

      
        31
        31
         super + control + r

      
        32
        32
         	bspc wm -r && pkill -USR1 -x sxhkd

      
        33
        33
         

      
        34
        
        -## == BSPWM windows

      
        35
        
        -

      
        
        34
        +### == BSPWM windows

      
        36
        35
         ## Resize window

      
        37
        36
         super + ctrl + {h,j,k,l}

      
        38
        
        -	bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

      
        
        37
        +    bspc node -z {right -20 0,top 0 20,bottom 0 -20,left 20 0}

      
        39
        38
         

      
        40
        39
         # Change focus & move focus window

      
        41
        40
         super + {_,shift + }{h,j,k,l}

      
        42
        
        -	bspc node -{f,s} {west,south,north,east}

      
        
        41
        +    bspc node -{f,s} {west,south,north,east}

      
        43
        42
         

      
        44
        43
         # Preselect the direction

      
        45
        44
         super + alt + {h,j,k,l}

      
        46
        
        -	bspc node -p {west,south,north,east}

      
        
        45
        +    bspc node -p {west,south,north,east}

      
        47
        46
         super + alt + {1-9}

      
        48
        
        -	bspc node -o 0.{1-9}

      
        
        47
        +    bspc node -o 0.{1-9}

      
        49
        48
         super + alt + {space,0}

      
        50
        
        -	bspc node -p cancel

      
        
        49
        +    bspc node -p cancel

      
        51
        50
         

      
        52
        51
         ## == BSPWM workspace

      
        53
        52
         super + {_,shift + }{1-9}

      
        54
        
        -	bspc {desktop -f,node -d} focused:'^{1-9}'

      
        
        53
        +    bspc {desktop -f,node -d} focused:'^{1-9}'

      
        55
        54
         

      
        56
        55
         ## == BSPWM windwo layouts

      
        57
        56
         super + ctrl + {t, s, f}

      
        58
        
        -	bspc node -t {tiled,floating,fullscreen}

      
        
        57
        +    bspc node -t {tiled,floating,fullscreen}

      
        59
        58
         

      
        60
        59
         # Change windows layout

      
        61
        60
         super + ctrl + {m,x,y,z}

      
        62
        
        -	bspc node -g {marked,locked,sticky,private}

      
        
        61
        +    bspc node -g {marked,locked,sticky,private}

      
M config/i3/config
···
        17
        17
         

      
        18
        18
         ############ Variables ###########

      
        19
        19
         set $terminal alacritty

      
        20
        
        -set $browser firefox 

      
        
        20
        +set $browser firefox

      
        21
        21
         set $filemanager alacritty --title=ranger -e ranger

      
        22
        22
         set $codeeditor alacritty --title=nvim -e nvim

      
        23
        23
         set $guicode code

      ···
        25
        25
         ############ Autostart ############

      
        26
        26
         exec_always --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"

      
        27
        27
         exec_always --no-startup-id exec picom --experimental-backends -b

      
        28
        
        -#exec_always --no-startup-id exec $HOME/.config/i3/bar.sh

      
        29
        28
         exec --no-startup-id exec nitrogen --restore

      
        30
        29
         exec --no-startup-id exec lxsession

      
        31
        30
         #exec --no-startup-id exec $HOME/.script/autolock

      
        32
        31
         #exec --no-startup-id exec org.telegram.desktop

      
        33
        32
         #exec --no-startup-id exec discord

      
        34
        
        -#exec --no-startup-id exec conky

      
        35
        33
         #exec --no-startup-id exec redshift-gtk

      
        
        34
        +#exec_always --no-startup-id exec $HOME/.config/i3/bar.sh

      
        36
        35
         

      
        37
        36
         ############## WM keys ############

      
        38
        37
         

      ···
        66
        65
         bindsym $mod+Shift+Return exec rofi -show drun

      
        67
        66
         bindsym $mod+Escape exec ~/.script/dmenu/dmenu-power.sh

      
        68
        67
         bindsym $mod+Control+u exec ~/.script/dmenu/dmenu-config-edit.sh

      
        69
        
        -bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh 

      
        
        68
        +bindsym $mod+Control+i exec ~/.script/dmenu/dmenu-pass.sh

      
        70
        69
         

      
        71
        70
         # Apps

      
        72
        71
         bindsym $mod+Return exec $terminal

      
        73
        
        -bindsym $mod+Shift+w exec $browser 

      
        
        72
        +bindsym $mod+Shift+w exec $browser

      
        74
        73
         bindsym $mod+Shift+f exec $filemanager

      
        75
        74
         bindsym $mod+Shift+e exec $codeeditor

      
        76
        75
         bindsym $mod+Shift+c exec $guicode

      
D config/kitty/kitty.conf
···
        1
        
        -# Font

      
        2
        
        -font_family         Jetbrains Mono

      
        3
        
        -bold_font           auto

      
        4
        
        -italic_font         auto

      
        5
        
        -bold_italic_font    auto

      
        6
        
        -font_size           12.0

      
        7
        
        -adjust_line_height  0

      
        8
        
        -adjust_column_width 0

      
        9
        
        -disable_ligatures   never

      
        10
        
        -font_features       none

      
        11
        
        -box_drawing_scale   0.001, 1, 1.5, 2

      
        12
        
        -

      
        13
        
        -# Cursor

      
        14
        
        -cursor                      #dfdfdf

      
        15
        
        -cursor_text_color           #7d7d7d

      
        16
        
        -cursor_shape                beam

      
        17
        
        -cursor_beam_thickness       1.5

      
        18
        
        -cursor_underline_thickness  2.0

      
        19
        
        -cursor_blink_interval       0

      
        20
        
        -cursor_stop_blinking_after  15.0

      
        21
        
        -

      
        22
        
        -# Bell

      
        23
        
        -enable_audio_bell       no

      
        24
        
        -visual_bell_duration    0.0

      
        25
        
        -window_alert_on_bell    no

      
        26
        
        -command_on_bell         none

      
        27
        
        -bell_on_tab             no

      
        28
        
        -

      
        29
        
        -# Scrollback (History)

      
        30
        
        -scrollback_lines 500

      
        31
        
        -scrollback_pager less --chop-long-lines --RAW-CONTROL-CHARS +INPUT_LINE_NUMBER

      
        32
        
        -scrollback_pager_history_size 0

      
        33
        
        -wheel_scroll_multiplier 5.0

      
        34
        
        -touch_scroll_multiplier 1.0

      
        35
        
        -

      
        36
        
        -# Mouse

      
        37
        
        -mouse_hide_wait 2.5

      
        38
        
        -url_color #4ecdc4

      
        39
        
        -url_style curly

      
        40
        
        -open_url_modifiers kitty_mod

      
        41
        
        -open_url_with default

      
        42
        
        -url_prefixes http https file ftp

      
        43
        
        -copy_on_select yes

      
        44
        
        -strip_trailing_spaces never

      
        45
        
        -rectangle_select_modifiers ctrl+alt

      
        46
        
        -terminal_select_modifiers shift

      
        47
        
        -select_by_word_characters :@-./_~?&=%+#

      
        48
        
        -click_interval -1.0

      
        49
        
        -focus_follows_mouse yes

      
        50
        
        -pointer_shape_when_grabbed arrow

      
        51
        
        -

      
        52
        
        -# Perfomance

      
        53
        
        -repaint_delay 10

      
        54
        
        -input_delay 3

      
        55
        
        -sync_to_monitor yes

      
        56
        
        -command_on_bell none

      
        57
        
        -

      
        58
        
        -# Window

      
        59
        
        -remember_window_size  yes

      
        60
        
        -initial_window_width  640

      
        61
        
        -initial_window_height 480

      
        62
        
        -enabled_layouts *

      
        63
        
        -

      
        64
        
        -# Keyboard Shortcuts

      
        65
        
        -clear_all_shortcuts yes

      
        66
        
        -map ctrl+shift+c        copy_to_clipboard

      
        67
        
        -map ctrl+shift+v        paste_from_clipboard

      
        68
        
        -map shift+insert        paste_from_selection

      
        69
        
        -map ctrl+shift+u        kitten unicode_input

      
        70
        
        -map shift+up            scroll_line_up

      
        71
        
        -map alt+k               scroll_line_up

      
        72
        
        -map shift+down          scroll_line_down

      
        73
        
        -map alt+j               scroll_line_down

      
        74
        
        -map shift+page_up       scroll_page_up

      
        75
        
        -map shift+page_down     scroll_page_down

      
        76
        
        -map shift+home          scroll_home

      
        77
        
        -map shift+end           scroll_end

      
        78
        
        -map ctrl+shift+h        show_scrollback

      
        79
        
        -map ctrl+shift+.        set_tab_title

      
        80
        
        -map alt+equal           change_font_size all +2.0

      
        81
        
        -map alt+minus           change_font_size all -2.0

      
        82
        
        -map alt+ctrl+backspace  change_font_size all 0

      
        83
        
        -

      
        84
        
        -

      
        85
        
        -# Theming

      
        86
        
        -foreground #dfdfdf

      
        87
        
        -background_opacity 0.85

      
        88
        
        -dynamic_background_opacity yes

      
        89
        
        -background_image none

      
        90
        
        -background_image_layout tiled

      
        91
        
        -background_image_linear no

      
        92
        
        -background_tint 0.0

      
        93
        
        -dim_opacity 0.75

      
        94
        
        -selection_foreground #edebd7

      
        95
        
        -selection_background #073642

      
        96
        
        -background #262a2b

      
        97
        
        -foreground #ffffff

      
        98
        
        -cursorColor #d2dae2

      
        99
        
        -selection_background #262a3b

      
        100
        
        -selection_foreground #edebd7

      
        101
        
        -color0 #002731

      
        102
        
        -color8 #001e26

      
        103
        
        -color1 #d01b24

      
        104
        
        -color9 #bd3612

      
        105
        
        -color2 #728905

      
        106
        
        -color10 #465a61

      
        107
        
        -color3 #a57705

      
        108
        
        -color11 #52676f

      
        109
        
        -color4 #2075c7

      
        110
        
        -color12 #708183

      
        111
        
        -color5 #c61b6e

      
        112
        
        -color13 #5856b9

      
        113
        
        -color6 #0fbcf9

      
        114
        
        -color14 #4bcffa

      
        115
        
        -color7 #e9e2cb

      
        116
        
        -color15 #fcf4dc

      
D config/nvim/coc-settings.json
···
        1
        
        -{

      
        2
        
        -  //Snippets

      
        3
        
        -  "snippets.ultisnips.directories": ["snips"],

      
        4
        
        -  "snippets.userSnippetsDirectory": "~/.config/nvim/snips",

      
        5
        
        -

      
        6
        
        -  //Emmet

      
        7
        
        -  "emmet.includeLanguages": {

      
        8
        
        -    "javascript": ["javascript.jsx", "javascriptreact"]

      
        9
        
        -  },

      
        10
        
        -

      
        11
        
        -  // Prettier

      
        12
        
        -  "prettier.disableSuccessMessage": true,

      
        13
        
        -

      
        14
        
        -  // JS/x

      
        15
        
        -  "tsserver.formatOnType": true,

      
        16
        
        -

      
        17
        
        -  // List

      
        18
        
        -  "list.indicator": ">",

      
        19
        
        -  "list.selectedSignText": " ",

      
        20
        
        -

      
        21
        
        -  // Auto format

      
        22
        
        -  "coc.preferences.hoverTarget": "float",

      
        23
        
        -  "coc.preferences.formatOnSaveFiletypes": [

      
        24
        
        -    "javascript",

      
        25
        
        -    "javascript.jsx",

      
        26
        
        -    "javascriptreact",

      
        27
        
        -    "css",

      
        28
        
        -    "html",

      
        29
        
        -    "yaml",

      
        30
        
        -    "json",

      
        31
        
        -    "pytnon"

      
        32
        
        -  ]

      
        33
        
        -}

      
M config/nvim/init.vim
···
        1
        1
         call plug#begin('~/.vim/plugged')

      
        2
        
        -  Plug 'Smirnov-O/nten16.vim'   " Color scheme

      
        3
        
        -  Plug 'itchyny/lightline.vim'  " Status bar

      
        4
        
        -  Plug 'maximbaz/lightline-ale' " Linter info in bar

      
        5
        
        -  Plug 'dense-analysis/ale'     " Linter

      
        6
        
        -  Plug 'airblade/vim-gitgutter' " Git indicator

      
        7
        
        -  Plug 'ap/vim-css-color'       " Preview CSS colors

      
        8
        
        -  Plug 'jiangmiao/auto-pairs'   " Auto close brackets

      
        9
        
        -  Plug 'editorconfig/editorconfig-vim'  " Editor Config support

      
        10
        
        -  Plug 'christoomey/vim-tmux-navigator' " Jump from vim in tmux

      
        11
        
        -  Plug 'maxboisvert/vim-simple-complete' " Sublime like completion

      
        12
        
        -

      
        13
        
        -  " Language support

      
        14
        
        -  Plug 'pangloss/vim-javascript', {'for': 'javascript'}

      
        15
        
        -  Plug 'mxw/vim-jsx', {'for': ['javascript.jsx', 'javascript']}

      
        16
        
        -  Plug 'plasticboy/vim-markdown', {'for': 'markdown'}

      
        17
        
        -  Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}

      
        18
        
        -  Plug 'cespare/vim-toml', {'for': 'toml'}

      
        19
        
        -  Plug 'zah/nim.vim', {'for': 'nim'}

      
        
        2
        +  Plug 'Smirnov-O/nten16.vim'

      
        
        3
        +  Plug 'itchyny/lightline.vim'

      
        
        4
        +  Plug 'jiangmiao/auto-pairs'

      
        
        5
        +  Plug 'maxboisvert/vim-simple-complete'

      
        
        6
        +  Plug 'pangloss/vim-javascript'

      
        
        7
        +  Plug 'airblade/vim-gitgutter'

      
        
        8
        +  Plug 'dense-analysis/ale'

      
        
        9
        +  "Plug 'editorconfig/editorconfig-vim'

      
        20
        10
         call plug#end()

      
        21
        
        -syntax on

      
        22
        11
         

      
        23
        
        -" Theme

      
        
        12
        +"== General

      
        
        13
        +" Appearance

      
        24
        14
         set termguicolors

      
        25
        15
         colorscheme nten16

      
        26
        
        -set t_Co=256

      
        27
        16
         

      
        28
        
        -" number line

      
        
        17
        +" Line numbers

      
        29
        18
         set nu rnu

      
        30
        19
         

      
        
        20
        +" Line wrap

      
        
        21
        +set nowrap nolinebreak

      
        
        22
        +

      
        
        23
        +" Tabs

      
        
        24
        +set tabstop=4

      
        
        25
        +set shiftwidth=4

      
        
        26
        +set softtabstop=4

      
        
        27
        +set smarttab

      
        
        28
        +set expandtab

      
        
        29
        +set autoindent

      
        
        30
        +

      
        31
        31
         " Status line

      
        
        32
        +"set laststatus=0

      
        32
        33
         set noshowmode showcmd

      
        33
        34
         set ruler

      
        34
        35
         

      
        35
        36
         " Mouse

      
        36
        
        -set mouse=a mousehide

      
        
        37
        +set mouse=a

      
        
        38
        +set mousehide

      
        37
        39
         set cursorline

      
        38
        40
         

      
        39
        41
         " Encoding

      
        40
        
        -set encoding=utf-8 fileencodings=utf-8

      
        41
        
        -

      
        42
        
        -" Line wrap

      
        43
        
        -set nowrap nolinebreak

      
        
        42
        +set encoding=utf-8

      
        
        43
        +set fileencodings=utf-8

      
        44
        44
         

      
        45
        45
         " Backup file & history

      
        46
        46
         set nobackup noswapfile

      
        47
        47
         set history=100

      
        48
        48
         

      
        49
        
        -" Auto reload file

      
        50
        
        -set autoread

      
        51
        
        -

      
        52
        
        -" Tabs

      
        53
        
        -set ts=4 sts=4

      
        54
        
        -set expandtab autoindent

      
        55
        
        -set shiftwidth=4

      
        56
        
        -

      
        57
        49
         " Search

      
        58
        
        -set incsearch ignorecase smartcase

      
        
        50
        +set incsearch

      
        
        51
        +set ignorecase

      
        
        52
        +set smartcase

      
        59
        53
         

      
        60
        
        -" Buffer(s)

      
        61
        
        -set hidden smartindent

      
        
        54
        +" Buffer

      
        
        55
        +set hidden

      
        62
        56
         

      
        63
        
        -" Spell

      
        
        57
        +" Spell checker

      
        64
        58
         set spell spelllang=en_us

      
        65
        59
         

      
        66
        60
         " Space/tab indicator

      ···
        69
        63
         " Disable sound

      
        70
        64
         set visualbell t_vb=

      
        71
        65
         

      
        72
        
        -"== Language configuration

      
        73
        
        -let g:jsx_ext_required = 0

      
        
        66
        +

      
        
        67
        +" == Settings for specific files

      
        
        68
        +autocmd BufWritePre *.py normal m`:%s/\s\+$//e ``

      
        
        69
        +autocmd FileType python,go           setlocal expandtab shiftwidth=4 tabstop=4

      
        
        70
        +autocmd FileType html,css,javascript setlocal expandtab shiftwidth=2 tabstop=2

      
        
        71
        +

      
        74
        72
         

      
        75
        
        -" Markdown

      
        76
        
        -let g:vim_markdown_folding_disabled = 1

      
        77
        
        -let g:markdown_fenced_languages = ['javascript', 'js=javascript', 'jsx=javascript.jsx', 'python', 'bash', 'sh=bash']

      
        
        73
        +"== Aliases

      
        
        74
        +command! W :w

      
        
        75
        +command! Q :q

      
        
        76
        +command! Wq :wq

      
        
        77
        +command! WQ :wq

      
        
        78
        +command! Prettier :!prettier %

      
        
        79
        +command! ESlint :!eslint %

      
        
        80
        +

      
        78
        81
         

      
        79
        82
         "== Plug in configuration

      
        80
        83
         let g:lightline = {

      
        81
        84
         \ 'colorscheme': 'nten16',

      
        82
        85
         \ 'active': {

      
        83
        
        -\    'left':  [ [ 'mode', 'paste' ],

      
        84
        
        -\               [ 'readonly', 'modified' ],

      
        85
        
        -\               [ 'linter_errors', 'linter_warnings', 'linter_infos' ] ],

      
        86
        
        -\    'right': [ [ 'lineinfo' ],

      
        87
        
        -\               [ 'percent' ],

      
        88
        
        -\               [ 'filename', 'filetype' ] ]},

      
        89
        
        -\ 'component_expand': {

      
        90
        
        -\   'linter_errors': 'lightline#ale#errors',

      
        91
        
        -\   'linter_infos': 'lightline#ale#infos',

      
        92
        
        -\   'linter_warnings': 'lightline#ale#warnings'

      
        
        86
        +\  'left':  [ [ 'mode', 'paste' ],

      
        
        87
        +\             [ 'readonly', 'modified' ] ],

      
        
        88
        +\  'right': [ [ 'lineinfo' ],

      
        
        89
        +\             [ 'percent'  ],

      
        
        90
        +\             [ 'filename', 'filetype' ] ]

      
        93
        91
         \ }, }

      
        94
        92
         

      
        95
        
        -" Ale

      
        96
        93
         let g:ale_disable_lsp = 1

      
        97
        94
         let g:ale_sign_error = '> '

      
        98
        95
         let g:ale_sign_warning = '- '

      
        99
        96
         let g:ale_echo_msg_format = '%severity%: %s'

      
        
        97
        +let g:ale_linter = {

      
        
        98
        +\ 'javascript': 'eslint',

      
        
        99
        +\ 'python': 'flake8'

      
        
        100
        +\ }

      
        
        101
        +let g:ale_fix_on_save = 1

      
        100
        102
         let g:ale_fixers = {

      
        101
        
        -\ 'javascript': ['prettier', 'eslint' ],

      
        102
        
        -\ 'python':     ['flake8',   'pylint8']}

      
        
        103
        +\ 'javascript': 'prettier',

      
        
        104
        +\ 'python': 'black'

      
        
        105
        +\ }

      
        103
        106
         

      
        104
        
        -" == Mapping

      
        105
        
        -let mapleader="\\"

      
        106
        
        -imap jj <esc>

      
        107
        107
         

      
        108
        
        -" Window(s)

      
        109
        
        -nmap <C-h> :wincmd h<CR>

      
        110
        
        -nmap <C-j> :wincmd j<CR>

      
        111
        
        -nmap <C-k> :wincmd k<CR>

      
        112
        
        -nmap <C-l> :wincmd l<CR>

      
        113
        
        -nmap <A-z> :wincmd K<CR>

      
        114
        
        -nmap <A-x> :wincmd L<CR>

      
        115
        
        -nmap <A-c> :wincmd n<CR>

      
        
        108
        +"== Mapping

      
        
        109
        +let mapleader="'"

      
        116
        110
         

      
        117
        
        -" C-j/k as up/down in menu

      
        118
        
        -inoremap <expr> <C-j> ("\<C-n>")

      
        119
        
        -inoremap <expr> <C-k> ("\<C-p>")

      
        
        111
        +" Window

      
        
        112
        +noremap <C-h> :wincmd h<CR>

      
        
        113
        +noremap <C-j> :wincmd j<CR>

      
        
        114
        +noremap <C-k> :wincmd k<CR>

      
        
        115
        +noremap <C-l> :wincmd l<CR>

      
        
        116
        +noremap <A-z> :wincmd K<CR>

      
        
        117
        +noremap <A-x> :wincmd L<CR>

      
        
        118
        +noremap <A-c> :wincmd n<CR>

      
        120
        119
         

      
        121
        
        -" Tab(s)

      
        122
        
        -noremap <C-Tab> :tabnext<CR>

      
        123
        
        -noremap <C-S-Tab> :tabprev<CR>

      
        
        120
        +" Tab

      
        124
        121
         noremap <C-t> :tabnew<CR>

      
        125
        122
         noremap <C-w> :tabclose<CR>

      
        126
        123
         noremap <A-1> :tabn 1<CR>

      ···
        133
        130
         noremap <A-8> :tabn 8<CR>

      
        134
        131
         noremap <A-9> :tabn 9<CR>

      
        135
        132
         

      
        136
        
        -" Buffer(s)

      
        137
        
        -noremap <leader>b :bnext<CR>

      
        138
        
        -noremap <leader>p :bprev<CR>

      
        
        133
        +" Buffer

      
        
        134
        +noremap <C-b> :bnext<CR>

      
        
        135
        +noremap <C-p> :bprev<CR>

      
        139
        136
         

      
        140
        
        -" Paste & copy from/in system clipboard

      
        141
        
        -noremap <leader>c "*yy<CR>

      
        
        137
        +" Work with system clipboard

      
        
        138
        +noremap <leader>c "*y<CR>

      
        142
        139
         noremap <leader>v "+p<CR>

      
D config/nvim/snips/go.snippets
···
        1
        
        -snippet pac "Package"

      
        2
        
        -package ${1:main}

      
        3
        
        -$0

      
        4
        
        -endsnippet

      
        5
        
        -

      
        6
        
        -snippet import "Import section"

      
        7
        
        -import (

      
        8
        
        -	${1}

      
        9
        
        -)

      
        10
        
        -endsnippet

      
        11
        
        -

      
        12
        
        -snippet fn "Function"

      
        13
        
        -func ${1:main}(${2:arg} ${3:type}) ${4:type} (

      
        14
        
        -	${5}

      
        15
        
        -)

      
        16
        
        -endsnippet

      
        17
        
        -

      
        18
        
        -snippet for "For loop"

      
        19
        
        -for ${1:i\:\=1}; ${2:i\<\=10}; ${3:\i\+\+} {

      
        20
        
        -	${4}

      
        21
        
        -}

      
        22
        
        -endsnippet

      
        23
        
        -

      
        24
        
        -snippet var "Variable declaration"

      
        25
        
        -var ${1:name}${2/(.+)/ /}${2:type}${3: = ${0:value}}

      
        26
        
        -endsnippet

      
        27
        
        -

      
        28
        
        -snippet vars "Variables declaration"

      
        29
        
        -var (

      
        30
        
        -	${1:name}${2/(.+)/ /}${2:type}${3: = ${0:value} }

      
        31
        
        -)

      
        32
        
        -endsnippet

      
        33
        
        -

      
        34
        
        -snippet : "Variable"

      
        35
        
        -${1:v} := ${2:value}

      
        36
        
        -endsnippet

      
        37
        
        -

      
        38
        
        -snippet append "Append function"

      
        39
        
        -append(${1:slice}, ${0:value})

      
        40
        
        -endsnippet

      
        41
        
        -

      
        42
        
        -snippet switch "Switch"

      
        43
        
        -switch ${1:var} {

      
        44
        
        -case ${2:value}:

      
        45
        
        -}

      
        46
        
        -endsnippet

      
        47
        
        -

      
        48
        
        -snippet const "Constant declaration"

      
        49
        
        -const ${1:name}${2/(.+)/ /}${2:type} = ${0:value}

      
        50
        
        -endsnippet

      
        51
        
        -

      
        52
        
        -snippet consts "Constants declaration"

      
        53
        
        -const (

      
        54
        
        -	${1:constant}${2/(.+)/ /}${2:type} = ${0:value}

      
        55
        
        -)

      
        56
        
        -endsnippet

      
        57
        
        -

      
        58
        
        -snippet err "Rrror handling"

      
        59
        
        -if err != nil {

      
        60
        
        -	log.${1:Fatal}(err)

      
        61
        
        -}

      
        62
        
        -endsnippet

      
        63
        
        -

      
        64
        
        -snippet map "Map type"

      
        65
        
        -map[${1:keytype}]${2:valuetupe}

      
        66
        
        -$0

      
        67
        
        -endsnippet

      
        68
        
        -

      
        69
        
        -snippet ;= ";= to :="

      
        70
        
        -:= $0

      
        71
        
        -endsnippet

      
D config/nvim/snips/markdown.snippets
···
        1
        
        -priority -50

      
        2
        
        -

      
        3
        
        -snippet `py "Python code block"

      
        4
        
        -```python

      
        5
        
        -${1}

      
        6
        
        -```

      
        7
        
        -endsnippet

      
        8
        
        -

      
        9
        
        -snippet `sh "Bash code block"

      
        10
        
        -```bash

      
        11
        
        -${1}

      
        12
        
        -```

      
        13
        
        -endsnippet

      
        14
        
        -

      
        15
        
        -snippet `go "GO code block"

      
        16
        
        -```go

      
        17
        
        -${1}

      
        18
        
        -```

      
        19
        
        -endsnippet

      
        20
        
        -

      
        21
        
        -snippet // "Comment"

      
        22
        
        -<!-- ${1:${VISUAL}} -->

      
        23
        
        -endsnippet

      
D config/nvim/snips/python.snippets
···
        1
        
        -priority -50

      
        2
        
        -

      
        3
        
        -snippet #! "Shebang"

      
        4
        
        -#!/usr/bin/env python

      
        5
        
        -${1}

      
        6
        
        -endsnippet

      
        7
        
        -

      
        8
        
        -snippet ! "Shebang"

      
        9
        
        -#!/bin/python

      
        10
        
        -${1}

      
        11
        
        -endsnippet

      
        12
        
        -

      
        13
        
        -snippet ifmain "If __main...."

      
        14
        
        -if __name__ == "__main__":

      
        15
        
        -	${1:code}

      
        16
        
        -endsnippet

      
D config/nvim/snips/sh.snippets
···
        1
        
        -snippet ! "SH Shebang"

      
        2
        
        -#!/bin/sh

      
        3
        
        -${1}

      
        4
        
        -endsnippet

      
        5
        
        -

      
        6
        
        -snippet #! "BASH Shebang"

      
        7
        
        -#!/bin/bash

      
        8
        
        -${1}

      
        9
        
        -endsnippet

      
        10
        
        -

      
        11
        
        -snippet if "If declaration"

      
        12
        
        -if [ ${1} ]; then

      
        13
        
        -	${2}

      
        14
        
        -fi

      
        15
        
        -${3}

      
        16
        
        -endsnippet

      
        17
        
        -

      
        18
        
        -snippet for "For loop"

      
        19
        
        -for (( i=0; i < ${1:10}; i++ )); do

      
        20
        
        -	${2}

      
        21
        
        -done

      
        22
        
        -${3}

      
        23
        
        -endsnippet

      
        24
        
        -

      
        25
        
        -snippet while "While loop"

      
        26
        
        -while ${1:true}; do

      
        27
        
        -	${2}

      
        28
        
        -done

      
        29
        
        -${3}

      
        30
        
        -endsnippet

      
        31
        
        -

      
        32
        
        -snippet case "Case"

      
        33
        
        -case "${1}" in

      
        34
        
        -	${2}) ${3} ;;

      
        35
        
        -esac

      
        36
        
        -${4}

      
        37
        
        -endsnippet

      
        38
        
        -

      
        39
        
        -snippet fn "Function declaration"

      
        40
        
        -function ${1:name}(${2}) {

      
        41
        
        -	${3}

      
        42
        
        -}

      
        43
        
        -${4}

      
        44
        
        -endsnippet

      
M config/picom.conf
···
        9
        9
         shadow-exclude = [

      
        10
        10
           "override_redirect",

      
        11
        11
           "class_g = 'Firefox' && argb",

      
        12
        
        -  #"class_g = 'Polybar'"

      
        13
        12
         ];

      
        14
        13
         

      
        15
        14
         ############ Fading ###########

      ···
        24
        23
         active-opacity = 1;

      
        25
        24
         frame-opacity = 0.8;

      
        26
        25
         inactive-opacity-override = false;

      
        27
        
        -focus-exclude = []; 

      
        28
        
        -opacity-exclude = [ "class_g = 'openbox'" ];

      
        29
        26
         opacity-rule = [ "0:_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'" ];

      
        30
        27
         no-fading-openclose = true

      
        31
        
        -

      
        32
        
        -##### Background-Blurring #####

      
        33
        
        -blur = false;

      
        34
        
        -#blur-method = "dual_kawase";

      
        35
        
        -#blur-strength = 5;

      
        36
        
        -#blur-kern = "3x3box";

      
        37
        
        -#blur-background-exclude = [];

      
        38
        28
         

      
        39
        29
         

      
        40
        30
         ####### General Settings ######

      
M config/polybar/scripts/weather.py
···
        1
        1
         """For working this script set in ~/.profile 2 variable:

      
        2
        
        -"OWM_POLYBAR": API key

      
        3
        
        -"OWM_CITY": Your city

      
        
        2
        +OWM_POLYBAR: API key

      
        
        3
        +OWM_CITY: Your city

      
        4
        4
         """

      
        5
        5
         import requests, os

      
        6
        6
         

      
M config/qtile/config.py
···
        14
        14
         browser = "firefox"

      
        15
        15
         filemanager = f"{terminal} --title=ranger -e ranger"

      
        16
        16
         editor = f"{terminal} --title=NVim -e nvim"

      
        17
        
        -guicodeeitor = "code"

      
        
        17
        +guicodeeitor = "code --disable-gpu"

      
        18
        18
         

      
        19
        19
         # Set qtile colors

      
        20
        20
         color = [

      
M config/qtile/kblayout.py
···
        9
        9
         KBCMD = """

      
        10
        10
         case "$(xkblayout)" in

      
        11
        11
           "Eng") echo "us" ;;

      
        12
        
        -  "Rus") echo "ru" ;;

      
        13
        12
           "Ukr") echo "ua" ;;

      
        14
        13
         esac

      
        15
        14
         """

      ···
        23
        22
                 base.InLoopPollText.__init__(self, **config)

      
        24
        23
         

      
        25
        24
             def poll(self):

      
        26
        
        -        kb = popen(KBCMD).read().rstrip('\n') \

      
        27
        
        -                         .encode('utf-8').decode('utf-8')

      
        
        25
        +        kb = popen(KBCMD).read()          \

      
        
        26
        +                         .rstrip('\n')    \

      
        
        27
        +                         .encode('utf-8') \

      
        
        28
        +                         .decode('utf-8')

      
        28
        29
                 return kb

      
D config/qutebrowser/config.py
···
        1
        
        -# general

      
        2
        
        -c.url.start_pages = ["about:blank"]

      
        3
        
        -config.set("colors.webpage.darkmode.enabled", True)

      
        4
        
        -c.downloads.location.directory = '/home/sasha/Downloads'

      
        5
        
        -c.completion.shrink = True

      
        6
        
        -config.load_autoconfig()

      
        7
        
        -

      
        8
        
        -# tabs, download

      
        9
        
        -c.tabs.show = 'multiple'

      
        10
        
        -c.tabs.position = "top"

      
        11
        
        -c.downloads.position = "bottom"

      
        12
        
        -

      
        13
        
        -# alias, binds, search

      
        14
        
        -c.aliases = {'q': 'quit', 'w': 'session-save', 'wq': 'quit --save', 'e': 'open'} 

      
        15
        
        -config.bind('<Ctrl-T>', 'open -t about:blank')

      
        16
        
        -c.url.searchengines = {

      
        17
        
        -    'DEFAULT': 'https://www.google.com/search?q={}',

      
        18
        
        -    'ddgr': 'https://duckduckgo.com/?q={}',

      
        19
        
        -    'arw':  'https://wiki.archlinux.org/?search={}',

      
        20
        
        -    'rdd':  'https://www.reddit.com/r/{}'

      
        21
        
        -}

      
        22
        
        -# Enable cookie, image, js & user agents

      
        23
        
        -config.set('content.cookies.accept', 'all', 'chrome-devtools://*')

      
        24
        
        -config.set('content.cookies.accept', 'all', 'devtools://*')

      
        25
        
        -config.set('content.images', True, 'chrome-devtools://*')

      
        26
        
        -config.set('content.images', True, 'devtools://*')

      
        27
        
        -config.set('content.javascript.enabled', True, 'chrome-devtools://*')

      
        28
        
        -config.set('content.javascript.enabled', True, 'devtools://*')

      
        29
        
        -config.set('content.javascript.enabled', True, 'chrome://*/*')

      
        30
        
        -config.set('content.javascript.enabled', True, 'qute://*/*')

      
        31
        
        -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://accounts.google.com/*')

      
        32
        
        -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*')

      
        33
        
        -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://docs.google.com/*')

      
        34
        
        -config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:71.0) Gecko/20100101 Firefox/71.0', 'https://drive.google.com/*')

      
        35
        
        -

      
        36
        
        -# theme

      
        37
        
        -## Solarised #########

      
        38
        
        -#color01 = "#002B36"

      
        39
        
        -#color02 = "#073642"

      
        40
        
        -#color03 = "#619100"

      
        41
        
        -#color04 = "#268BD2"

      
        42
        
        -#color05 = "#6C71C4"

      
        43
        
        -#color06 = "#dc322f"

      
        44
        
        -#color07 = "#FFFFFF"

      
        45
        
        -#color08 = "#93A1A1"

      
        46
        
        -#color09 = "#2AA198"

      
        47
        
        -## Ntene16 ###########

      
        48
        
        -color01 = "#262A2b"

      
        49
        
        -color02 = "#1F2324"

      
        50
        
        -color03 = "#98BE65"

      
        51
        
        -color04 = "#008DCD"

      
        52
        
        -color05 = "#C678DD"

      
        53
        
        -color06 = "#FF6C6B"

      
        54
        
        -color07 = "#FFFFFF"

      
        55
        
        -color08 = "#CED4DA"

      
        56
        
        -color09 = "#ECBE7B"

      
        57
        
        -######################

      
        58
        
        -

      
        59
        
        -c.colors.completion.category.bg = color01 

      
        60
        
        -c.colors.completion.category.border.bottom = color02

      
        61
        
        -c.colors.completion.category.border.top = color02

      
        62
        
        -c.colors.completion.even.bg = color02

      
        63
        
        -c.colors.completion.fg = color07

      
        64
        
        -c.colors.completion.item.selected.bg = color01

      
        65
        
        -c.colors.completion.item.selected.border.bottom = color01

      
        66
        
        -c.colors.completion.item.selected.border.top = color01

      
        67
        
        -c.colors.completion.item.selected.fg = color08

      
        68
        
        -c.colors.completion.odd.bg = color02

      
        69
        
        -c.colors.downloads.bar.bg = color01

      
        70
        
        -c.colors.downloads.error.bg = color06

      
        71
        
        -c.colors.downloads.start.bg = color03

      
        72
        
        -c.colors.downloads.stop.bg = color04

      
        73
        
        -c.colors.messages.info.bg = color01

      
        74
        
        -c.colors.messages.info.border = color01

      
        75
        
        -c.colors.messages.warning.border = color01

      
        76
        
        -c.colors.statusbar.caret.bg = color01

      
        77
        
        -c.colors.statusbar.command.bg = color01

      
        78
        
        -c.colors.statusbar.insert.bg = color01

      
        79
        
        -c.colors.statusbar.normal.bg = color01

      
        80
        
        -c.colors.statusbar.passthrough.bg = color01

      
        81
        
        -c.colors.statusbar.private.bg = color04

      
        82
        
        -c.colors.statusbar.url.error.fg = color06

      
        83
        
        -c.colors.statusbar.url.fg = color07

      
        84
        
        -c.colors.statusbar.url.success.http.fg = color07 

      
        85
        
        -c.colors.statusbar.url.success.https.fg = color07

      
        86
        
        -c.colors.tabs.bar.bg = color02

      
        87
        
        -c.colors.tabs.even.bg = color02

      
        88
        
        -c.colors.tabs.indicator.error = color06

      
        89
        
        -c.colors.tabs.indicator.start = color01

      
        90
        
        -c.colors.tabs.indicator.stop = color01

      
        91
        
        -c.colors.tabs.odd.bg = color02

      
        92
        
        -c.colors.tabs.selected.even.bg = color01

      
        93
        
        -c.colors.tabs.selected.even.fg = color02

      
        94
        
        -c.colors.tabs.selected.odd.bg = color01

      
        95
        
        -c.colors.tabs.selected.odd.fg = color02

      
D config/qutebrowser/quickmarks
···
        1
        
        -Google https://google.com

      
        2
        
        -Translate https://translate.google.com

      
        3
        
        -Youtube https://youtube.com

      
        4
        
        -Habr https://habr.com/ru

      
        5
        
        -Discord https://discord.com/login

      
        6
        
        -Github https://github.com

      
        7
        
        -Notabug https://notabug.org

      
        8
        
        -Dropbox https://dropbox.com

      
        9
        
        -MEGA https://mega.nz

      
        10
        
        -MediaFire https://mediafire.com

      
        11
        
        -Reddit https://reddit.com

      
M config/zathura/zathurarc
···
        1
        
        -set font       "JetBrains Mono Nerd Font 10"

      
        2
        
        -set default-fg "#DFDFDF"

      
        3
        
        -set default-bg "#262A2B"

      
        
        1
        +set font                     "JetBrains Mono 10"

      
        
        2
        +set default-fg               "#DFDFDF"

      
        
        3
        +set default-bg               "#262A2B"

      
        4
        4
         

      
        5
        
        -set statusbar-fg        "#CED4DA"

      
        6
        
        -set statusbar-bg        "#1F2324"

      
        7
        
        -set statusbar-h-padding 10

      
        8
        
        -set statusbar-v-padding 10

      
        
        5
        +set statusbar-fg             "#CED4DA"

      
        
        6
        +set statusbar-bg             "#1F2324"

      
        
        7
        +set statusbar-h-padding      10

      
        
        8
        +set statusbar-v-padding      10

      
        9
        9
         

      
        10
        
        -set inputbar-fg "#FFFFFF"

      
        11
        
        -set inputbar-bg "#1F2324"

      
        
        10
        +set inputbar-fg              "#FFFFFF"

      
        
        11
        +set inputbar-bg              "#1F2324"

      
        12
        12
         

      
        13
        
        -set completion-bg           "#262A2B"

      
        14
        
        -set completion-fg           "#FFFFFF"

      
        15
        
        -set completion-highlight-bg "#262A2B"

      
        16
        
        -set completion-highlight-fg "#51AFEF"

      
        17
        
        -set completion-group-bg     "#262A2B"

      
        18
        
        -set completion-group-fg     "#51AFEF"

      
        
        13
        +set completion-bg            "#262A2B"

      
        
        14
        +set completion-fg            "#FFFFFF"

      
        
        15
        +set completion-highlight-bg  "#262A2B"

      
        
        16
        +set completion-highlight-fg  "#51AFEF"

      
        
        17
        +set completion-group-bg      "#262A2B"

      
        
        18
        +set completion-group-fg      "#51AFEF"

      
M gitconfig
···
        4
        4
             email = ss2316544@gmail.com

      
        5
        5
         

      
        6
        6
         [init]

      
        7
        
        -	defaultBranch = main

      
        
        7
        +    defaultBranch = master

      
        8
        8
         

      
        9
        9
         [web]

      
        10
        10
             browser = firefox

      
M gitignore_global
···
        1
        
        -# IDE

      
        2
        1
         .idea

      
        3
        2
         .vscode

      
        4
        
        -**~

      
        5
        
        -

      
        6
        
        -# Logs and databases

      
        7
        3
         *.log

      
        8
        
        -*.sqlite

      
        9
        4
         *.db

      
        10
        
        -*.todo

      
        11
        
        -

      
        12
        
        -# Temp files

      
        13
        5
         *.pyc

      
        14
        
        -*.swp

      
        15
        
        -.*.swp

      
        16
        
        -*.swp

      
        17
        6
         __pycache__

      
        18
        
        -

      
        19
        
        -# Packages

      
        20
        
        -*.7z

      
        21
        
        -*.rar

      
        22
        
        -*.zip

      
        23
        
        -*.tar*

      
        24
        
        -*.bz2

      
        25
        
        -

      
        26
        
        -# Compiled siurce

      
        27
        
        -*.so

      
        28
        
        -*.o

      
        29
        
        -*.out

      
        30
        
        -*.bin

      
        
        7
        +node_modules

      
D script/autolock
···
        1
        
        -#!/bin/sh

      
        2
        
        -xautolock -time 3 -locker "betterlockscreen --off 180 -t 'Computer is lokerd' -l"

      
D script/snap-remove-old-pkg.sh
···
        1
        
        -#!/bin/sh

      
        2
        
        -LANG=en_US.UTF-8 snap list --all | awk '/disabled/{print $1, $3}' |

      
        3
        
        -while read snapname revision; do

      
        4
        
        -    sudo snap remove "$snapname" --revision="$revision"

      
        5
        
        -done

      
M tmux.conf
···
        1
        
        -set -g default-terminal "screen-256color"

      
        2
        
        -set-option -sa terminal-overrides ",*:Tc" 

      
        3
        
        -set -g history-limit 1000

      
        
        1
        +###== General

      
        
        2
        +set -sg escape-time 0

      
        
        3
        +

      
        
        4
        +## Set prefix

      
        
        5
        +set -g prefix C-a

      
        
        6
        +

      
        
        7
        +## Set base index

      
        4
        8
         set -g base-index 1

      
        5
        9
         set -g pane-base-index 1

      
        
        10
        +

      
        
        11
        +## History

      
        
        12
        +set -g history-limit 1000

      
        
        13
        +

      
        
        14
        +## Mouse support

      
        6
        15
         set -g mouse on

      
        7
        16
         setw -g mouse on

      
        8
        17
         

      
        9
        
        -# Keybindongs

      
        10
        
        -set -g xterm-keys no

      
        11
        
        -set -g prefix C-a

      
        12
        
        -bind -n End send-key C-e

      
        13
        
        -bind -n Home send-key C-a

      
        
        18
        +###== Keybindongs

      
        
        19
        +

      
        
        20
        +## HOME/END key support

      
        14
        21
         bind-key -n Home send Escape "OH"

      
        15
        22
         bind-key -n End send Escape "OF"

      
        
        23
        +bind -n End send-key C-e

      
        
        24
        +bind -n Home send-key C-a

      
        
        25
        +

      
        
        26
        +## Reload config

      
        16
        27
         bind r source-file ~/.tmux.conf \; display 'Reloaded tmux config'

      
        17
        
        -bind - split-window -v

      
        18
        
        -bind _ split-window -h

      
        19
        
        -bind Tab last-window

      
        
        28
        +

      
        
        29
        +## Vim keys for change/resize window

      
        20
        30
         bind -r h select-pane -L

      
        21
        31
         bind -r j select-pane -D

      
        22
        32
         bind -r k select-pane -U

      
        23
        33
         bind -r l select-pane -R

      
        
        34
        +

      
        24
        35
         bind -r H resize-pane -L 2

      
        25
        36
         bind -r J resize-pane -D 2

      
        26
        37
         bind -r K resize-pane -U 2

      
        27
        38
         bind -r L resize-pane -R 2

      
        28
        39
         

      
        29
        
        -# Status bar

      
        
        40
        +## Alternative keys for create window

      
        
        41
        +bind _ split-window -h

      
        
        42
        +bind - split-window -v

      
        
        43
        +

      
        
        44
        +## Change focus on last panel

      
        
        45
        +bind Tab last-window

      
        
        46
        +

      
        
        47
        +###== Status bar

      
        30
        48
         set -g status-bg black

      
        31
        49
         set -g status-fg white

      
        32
        50
         set -g status-left ' '

      ···
        35
        53
         set -g pane-border-style fg=colour240

      
        36
        54
         set -g pane-active-border-style fg=colour39

      
        37
        55
         set-window-option -g window-status-current-style fg=colour39

      
        38
        
        -

      
        39
        
        -# VIM tmux navigation

      
        40
        
        -is_vim="ps -o state= -o comm= -t '#{pane_tty}' \

      
        41
        
        -    | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'"

      
        42
        
        -bind-key -n C-h if-shell "$is_vim" "send-keys C-h"  "select-pane -L"

      
        43
        
        -bind-key -n C-j if-shell "$is_vim" "send-keys C-j"  "select-pane -D"

      
        44
        
        -bind-key -n C-k if-shell "$is_vim" "send-keys C-k"  "select-pane -U"

      
        45
        
        -bind-key -n C-l if-shell "$is_vim" "send-keys C-l"  "select-pane -R"

      
A vscode/README.md
···
        
        1
        +# VScode

      
        
        2
        +

      
        
        3
        +Install

      
        
        4
        +```bash

      
        
        5
        +mv ~/.vscode/settings.json ~/.config/Code/User

      
        
        6
        +```

      
        
        7
        +

      
        
        8
        +Extensions

      
        
        9
        +- `Auto Import - ES6, TS` - Auto import for JS/TS, JSx/Tsx

      
        
        10
        +- `Auto rename tag` - Rename tag in HTML/JSX

      
        
        11
        +- `ESlint` - JavaScript linter

      
        
        12
        +- `One dark pro` - Color scheme

      
        
        13
        +- `Prettier` - JavaScript code formater

      
        
        14
        +- `Todo Tree` - Show all TODO in code

      
        
        15
        +- `Vim` - Vim mode

      
        
        16
        +- `vscode-icons` - Icons

      
        
        17
        +- `VScode rich presence` - Discord status

      
        
        18
        +- `Python` - Better python syntax

      
M zshrc
···
        3
        3
         source ~/.profile

      
        4
        4
         

      
        5
        5
         ### Oh my zsh ###

      
        6
        
        -ZSH_THEME="nten"                # Set theme

      
        
        6
        +ZSH_THEME="nten"                # Set theme.

      
        7
        7
         #CASE_SENSITIVE="true"          # Use case-sensitive completion.

      
        8
        8
         #HYPHEN_INSENSITIVE="true"      # Case-sensitive completion must be off.

      
        9
        9
         #DISABLE_AUTO_UPDATE="true"     # Disable bi-weekly auto-update checks.

      
        10
        
        -#DISABLE_UPDATE_PROMPT="true"   # Automatically update without prompting.

      
        
        10
        +DISABLE_UPDATE_PROMPT="true"    # Automatically update without prompting.

      
        11
        11
         #DISABLE_MAGIC_FUNCTIONS="true" # If pasting URL and other text is messed up.

      
        12
        12
         #DISABLE_LS_COLORS="true"       # Disable colors in ls.

      
        13
        13
         DISABLE_AUTO_TITLE="true"       # Disable auto-setting terminal title.

      
        14
        14
         #ENABLE_CORRECTION="true"       # Enable command auto-correction.

      
        15
        
        -#COMPLETION_WAITING_DOTS="true" # Display red dots whilst waiting for completion.

      
        
        15
        +COMPLETION_WAITING_DOTS="true"  # Display red dots whilst waiting for completion.

      
        16
        16
         export UPDATE_ZSH_DAYS=7        # Change how often to auto-update.

      
        17
        17
         export LANG=en_US.UTF-8         # Set locale

      
        18
        18
         

      
        19
        
        -plugins=(python pip node npm yarn pass sudo git encode64)

      
        
        19
        +plugins=(python pip node npm yarn pass sudo git)

      
        20
        20
         source $ZSH/oh-my-zsh.sh

      
        21
        
        -

      
        22
        21
         

      
        23
        22
         ### Variables ###

      
        24
        23
         export EDITOR="nvim"

      
        25
        24
         export VISUAL="nvim"

      
        26
        25
         

      
        27
        
        -

      
        28
        
        -### Function ###

      
        29
        
        -#function bgcolor {

      
        30
        
        -#    convert -size 1x1 xc:$1 /tmp/bgc.png

      
        31
        
        -#    feh --bg-tile /tmp/bgc.png

      
        32
        
        -#}

      
        33
        
        -function codi() {

      
        34
        
        -    local syntax="${1:-javascript}"

      
        35
        
        -    nvim -c "let g:startify_disable_at_vimenter = 1 |\

      
        36
        
        -        set bt=nofile ls=0 noru nonu nornu |\

      
        37
        
        -        Codi $syntax" "$@"

      
        38
        
        -}

      
        39
        
        -

      
        40
        
        -

      
        41
        26
         ### Aliases ###

      
        42
        27
         alias cls="clear"

      
        43
        28
         alias mkdir="mkdir -p"

      
        44
        
        -alias sl="ls"

      
        45
        29
         alias cp="cp -r"

      
        46
        30
         alias du="du -sh"

      
        47
        31
         alias df="df -h"

      
        48
        
        -alias lns="ln -s"

      
        49
        
        -alias uln="unlink"

      
        50
        
        -alias rf="rm -rf"

      
        51
        32
         

      
        52
        33
         # Program

      
        53
        34
         alias vim="nvim"

      
        54
        35
         alias vi="nvim"

      
        55
        36
         alias tmux="tmux -2"

      
        56
        
        -alias ipython="ipython --no-banner"

      
        57
        
        -alias ran="ranger"

      
        58
        
        -alias f="fuck"

      
        59
        
        -alias firefox-dev="firefox-developer-edition"

      
        60
        37
         

      
        61
        38
         # Exit

      
        62
        39
         alias :q="exit"

      
        63
        
        -alias :q!="exit"

      
        64
        40
         alias q="exit"

      
        65
        
        -alias :qw="exit"

      
        66
        41
         

      
        67
        42
         # Navigation

      
        68
        43
         alias ..="cd .."