dotfiles

Config files from my daily system
Index Commits Files Refs README
commit e5bc3c31b29bfc38777c1b1fa139c31922592fda
parent 599eb7abf8f1253d050ed512589ae5daa63cf22a
Author: klewer-martin <martin.cachari@gmail.com>
Date:   Sat, 26 Jun 2021 13:15:33 -0300

Update;

Diffstat:
A.config/.vimrc | 73+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.config/dwmblocks | 1+
A.config/fontconfig/fonts.conf | 35+++++++++++++++++++++++++++++++++++
A.config/fontconfig/fonts.conf.back | 35+++++++++++++++++++++++++++++++++++
A.config/mimeapps.list | 11+++++++++++
M.config/nvim/init.vim | 167++++++++++++++++++++++++++-----------------------------------------------------
D.config/nvim/plugged/Colorizer | 1-
D.config/nvim/plugged/auto-pairs | 1-
D.config/nvim/plugged/nerdtree | 1-
D.config/nvim/plugged/vcs-info.vim | 1-
D.config/nvim/plugged/vim-airline | 1-
D.config/nvim/plugged/vim-airline-themes | 1-
D.config/nvim/plugged/vim-colorschemes | 1-
D.config/terminator/config | 27---------------------------
D.config/termite/config | 73-------------------------------------------------------------------------
D.config/termite/config.user | 6------
16 files changed, 210 insertions(+), 225 deletions(-)
diff --git a/.config/.vimrc b/.config/.vimrc
@@ -0,0 +1,73 @@
+    call plug#begin('~/.vim/plugged')
+
+    Plug 'preservim/nerdtree'
+    Plug 'flw-cn/vim-nerdtree-l-open-h-close'
+    Plug 'tpope/vim-commentary'
+
+    call plug#end()
+
+" Basic settings
+    syntax on
+    set encoding=utf-8
+    set tabstop=4
+    set shiftwidth=4
+    set incsearch
+    set smartcase
+    set smartindent
+    set number
+    set relativenumber
+    set mouse=a
+    set undofile
+    set undodir=~/.config/nvim/undodir
+    set clipboard=unnamedplus
+    set nobackup
+    set nowritebackup
+    set noswapfile
+    " set noshowmode
+    " set backupdir=~/.config/nvim/tmp/backup
+
+    " This fixs the delay in the cursor shape when switching mode
+    set ttimeout
+    set ttimeoutlen=1
+    set listchars=tab:>-,trail:~,extends:>,precedes:<,space:.
+    set ttyfast
+
+    set fillchars+=vert:\ 
+    highlight VertSplit cterm=NONE
+
+    highlight ExtraWhitespace ctermbg=red guibg=red
+
+" Keys remap
+    let mapleader = ' '
+
+    " Open file tree;
+    map <leader>f :NERDTreeToggle<CR>
+
+    " Open current dir in NERDTree
+    map <leader>r :NERDTreeFind<CR>
+
+    " Disable ex-mode keybinding (type visual thing)
+    map Q <NOP>
+
+    " Improves indenting chunks of code with '<' '>' keys
+    vnoremap < <gv
+    vnoremap > >gv
+
+    " Move between windows with Ctrl + hjkl
+    noremap <C-h> <C-w>h
+    noremap <C-j> <C-w>j
+    noremap <C-k> <C-w>k
+    noremap <C-l> <C-w>l
+
+    " Change cursor shape with modes
+    let &t_SI = "\<Esc>[6 q"
+    let &t_SR = "\<Esc>[4 q"
+    let &t_EI = "\<Esc>[2 q"
+
+" NetRW config
+    let g:netrw_banner=0
+    let g:netrw_winsize = 25
+    let g:netrw_browse_split=2
+    let g:netrw_altv=1
+    let g:netrw_liststyle=3
+    let g:netrwJ_list_hide=netrw_gitignore#Hide()
diff --git a/.config/dwmblocks b/.config/dwmblocks
@@ -0,0 +1 @@
+Subproject commit 78925115014bea2f4ead26f0dd7f833ff301ad11
diff --git a/.config/fontconfig/fonts.conf b/.config/fontconfig/fonts.conf
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+    <match target="font">
+        <edit name="antialias" mode="assign">
+            <bool>true</bool>
+        </edit>
+        <edit name="hinting" mode="assign">
+            <bool>true</bool>
+        </edit>
+        <edit name="hintstyle" mode="assign">
+            <const>hintmedium</const>
+        </edit>
+        <edit name="rgba" mode="assign">
+            <const>none</const>
+        </edit>
+        <edit name="autohint" mode="assign">
+            <bool>true</bool>
+        </edit>
+        <edit name="lcdfilter" mode="assign">
+            <const>lcdnone</const>
+        </edit>
+        <edit name="dpi" mode="assign">
+            <double>102</double>
+        </edit>
+    </match>
+    <match target="font">
+        <test name="weight" compare="more">
+            <const>medium</const>
+        </test>
+        <edit name="autohint" mode="assign">
+            <bool>true</bool>
+        </edit>
+    </match>
+</fontconfig>
diff --git a/.config/fontconfig/fonts.conf.back b/.config/fontconfig/fonts.conf.back
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+    <match target="font">
+        <edit name="antialias" mode="assign">
+            <bool>true</bool>
+        </edit>
+        <edit name="hinting" mode="assign">
+            <bool>true</bool>
+        </edit>
+        <edit name="hintstyle" mode="assign">
+            <const>hintfull</const>
+        </edit>
+        <edit name="rgba" mode="assign">
+            <const>none</const>
+        </edit>
+        <edit name="autohint" mode="assign">
+            <bool>true</bool>
+        </edit>
+        <edit name="lcdfilter" mode="assign">
+            <const>lcdnone</const>
+        </edit>
+        <edit name="dpi" mode="assign">
+            <double>120</double>
+        </edit>
+    </match>
+    <match target="font">
+        <test name="weight" compare="more">
+            <const>medium</const>
+        </test>
+        <edit name="autohint" mode="assign">
+            <bool>true</bool>
+        </edit>
+    </match>
+</fontconfig>
diff --git a/.config/mimeapps.list b/.config/mimeapps.list
@@ -0,0 +1,11 @@
+[Added Associations]
+text/x-csrc=nvim.desktop;
+application/octet-stream=userapp-alacritty -e 'nvim-QA1W30.desktop;nvim.desktop;
+application/rar=org.gnome.FileRoller.desktop;
+text/plain=nvim.desktop;vim.desktop;
+application/xml=nvim.desktop;
+
+[Default Applications]
+inode/directory=ranger.desktop
+application/pdf=zathura.desktop
+audio/mp3=vlc.desktop
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -13,15 +13,13 @@
     Plug 'vim-airline/vim-airline'
     Plug 'vim-airline/vim-airline-themes'
     Plug 'preservim/nerdtree'
+    Plug 'flw-cn/vim-nerdtree-l-open-h-close'
     Plug 'chrisbra/Colorizer'
     Plug 'flazz/vim-colorschemes'
     Plug 'jiangmiao/auto-pairs'
     Plug 'hattya/vcs-info.vim'
-    Plug 'flw-cn/vim-nerdtree-l-open-h-close'
     Plug 'justinmk/vim-syntax-extra'
     Plug 'sainnhe/gruvbox-material'
-    Plug 'dracula/vim'
-    Plug 'nonetallt/vim-neon-dark'
     Plug 'sainnhe/edge'
     Plug 'tpope/vim-commentary'
     Plug 'ryanoasis/vim-devicons'
@@ -29,42 +27,53 @@
     call plug#end()
 
 
+" Basic settings
+    syntax on
+    set encoding=utf-8
+    set tabstop=4
+    set shiftwidth=4
+    set incsearch
+    set smartcase
+    set noshowmode
+    set number
+    set relativenumber
+    set mouse=a
+    set undofile
+    set undodir=~/.config/nvim/undodir
+    " set backupdir=~/.config/nvim/tmp/backup
+    set clipboard=unnamedplus
+    set nobackup
+    set nowritebackup
+    set noswapfile
+
 " Plugins settings
-    let g:NERDTreeWinSize=30
-    let g:airline_theme='dark'
-    let g:airline#extensions#tabline#enabled = 1
-    let g:airline#extensions#tabline#formatter = 'unique_tail'
-    let g:airleine_powerline_fonts = 1
-    let g:colorizer_auto_color = 1
-    "let g:airline_section_b = '%{getcwd()}'
-    let g:airline_section_x=''
-    let g:airline#extensions#tabline#show_buffers = 0
-    let g:airline#extensions#tabline#tab_min_count = 2
-
-" Powerline symbols
-    let g:airline#extensions#tabline#enabled = 1
-
-" air-line
-    let g:airline_powerline_fonts = 1
-    let g:airline_section_c_only_filename = 0
+    "let g:NERDTreeWinSize=27
+    "let g:airline_theme='dark'
+    "let g:airline#extensions#tabline#enabled = 1
+    "let g:airline#extensions#tabline#formatter = 'unique_tail'
+    "let g:airleine_powerline_fonts = 1
+    "let g:colorizer_auto_color = 1
+    ""let g:airline_section_b = '%{getcwd()}'
+    "let g:airline_section_x=''
+    "let g:airline#extensions#tabline#show_buffers = 0
+    "let g:airline#extensions#tabline#tab_min_count = 2
+
+    "" Powerline symbols
+    "let g:airline#extensions#tabline#enabled = 1
+
+    "" air-line
+    "let g:airline_powerline_fonts = 1
+    "let g:airline_section_c_only_filename = 0
 
     if !exists('g:airline_symbols')
         let g:airline_symbols = {}
     endif
 
-    " unicode symbols
-    let g:airline_left_sep = '»'
-    let g:airline_left_sep = '▶'
-    let g:airline_right_sep = '«'
-    let g:airline_right_sep = '◀'
-    let g:airline_symbols.linenr = '␊'
-    let g:airline_symbols.linenr = '␤'
-    let g:airline_symbols.linenr = '¶'
-    let g:airline_symbols.branch = '⎇'
-    let g:airline_symbols.paste = 'ρ'
-    let g:airline_symbols.paste = 'Þ'
-    let g:airline_symbols.paste = '∥'
-    let g:airline_symbols.whitespace = 'Ξ'
+    "" unicode symbols
+    "let g:airline_symbols.linenr = '¶'
+    "let g:airline_symbols.branch = '⎇'
+    "let g:airline_symbols.paste = 'ρ'
+    "let g:airline_symbols.whitespace = 'Ξ'
 
     " airline symbols
     let g:airline_left_sep = ''
@@ -73,33 +82,15 @@
     let g:airline_right_alt_sep = ''
     let g:airline_symbols.branch = ''
     let g:airline_symbols.readonly = ''
-    let g:airline_symbols.linenr = ''
+    "let g:airline_symbols.linenr = ''
 
-" Show just the filename
+    "" Show just the filename
     "let g:airline#extensions#tabline#fnamemod = ':t'
-    let g:airline#extensions#syntastic#enabled = 1
-    let g:airline#extensions#tabline#left_sep = ''
-    let g:airline#extensions#tabline#left_alt_sep = ''
-
-
-" Basic settings
-    syntax on
-    set encoding=utf-8
-    set tabstop=4
-    set shiftwidth=4
-    set incsearch
-    set smartcase
-    set noshowmode
-    set number
-    set relativenumber
-    set mouse=a
-    set undofile
-    set undodir=~/.config/nvim/undodir
-    set backupdir=~/.config/nvim/tmp/backup
-    set clipboard=unnamed
+    "let g:airline#extensions#syntastic#enabled = 1
+    "let g:airline#extensions#tabline#left_sep = ''
+    "let g:airline#extensions#tabline#left_alt_sep = ''
 
 " Set colorscheme and transparent background
-    "colorscheme gruvbox-material
     colorscheme gruvbox
 
     function! AdaptColorscheme()
@@ -115,21 +106,25 @@
 
     call AdaptColorscheme()
 
-    " Key remaps
+" Key remaps
     let mapleader =' '
 
     " Open file tree;
     map <leader>f :NERDTreeToggle<CR>
 
     " Open current dir in NERDTree
-     map <leader>r :NERDTreeFind<CR>
+    map <leader>r :NERDTreeFind<CR>
 
-    " Open file tree;
+    " Source nvim config file
     map <leader>s :source $HOME/.config/nvim/init.vim<CR>
 
-    " Disable ex-mode keybinding
+    " Disable ex-mode keybinding (type visual thing)
     map Q <NOP>
 
+    " Improves indenting chunks of code with '<' '>' keys
+    vnoremap < <gv
+    vnoremap > >gv
+
     " Stops highlight after a search hitting return;
     nnoremap <CR> :noh<CR><CR>
 
@@ -144,55 +139,3 @@
     noremap <C-j> <C-w>j
     noremap <C-k> <C-w>k
     noremap <C-l> <C-w>l
-
-    " Highlight whitespace problems.
-    " flags is '' to clear highlighting, or is a string to
-    " specify what to highlight (one or more characters):
-    "   e  whitespace at end of line
-    "   i  spaces used for indenting
-    "   s  spaces before a tab
-    "   t  tabs not at start of line
-    function! ShowWhitespace(flags)
-      let bad = ''
-      let pat = []
-      for c in split(a:flags, '\zs')
-        if c == 'e'
-          call add(pat, '\s\+$')
-        elseif c == 'i'
-          call add(pat, '^\t*\zs \+')
-        elseif c == 's'
-          call add(pat, ' \+\ze\t')
-        elseif c == 't'
-          call add(pat, '[^\t]\zs\t\+')
-        else
-          let bad .= c
-        endif
-      endfor
-      if len(pat) > 0
-        let s = join(pat, '\|')
-        exec 'syntax match ExtraWhitespace "'.s.'" containedin=ALL'
-      else
-        syntax clear ExtraWhitespace
-      endif
-      if len(bad) > 0
-        echo 'ShowWhitespace ignored: '.bad
-      endif
-    endfunction
-
-    function! ToggleShowWhitespace()
-      if !exists('b:ws_show')
-        let b:ws_show = 0
-      endif
-      if !exists('b:ws_flags')
-        let b:ws_flags = 'est'  " default (which whitespace to show)
-      endif
-      let b:ws_show = !b:ws_show
-      if b:ws_show
-        call ShowWhitespace(b:ws_flags)
-      else
-        call ShowWhitespace('')
-      endif
-    endfunction
-
-    nnoremap <Leader>ws :call ToggleShowWhitespace()<CR>
-    highlight ExtraWhitespace ctermbg=red guibg=red
diff --git a/.config/nvim/plugged/Colorizer b/.config/nvim/plugged/Colorizer
@@ -1 +0,0 @@
-Subproject commit 826d5691ac7d36589591314621047b1b9d89ed34
diff --git a/.config/nvim/plugged/auto-pairs b/.config/nvim/plugged/auto-pairs
@@ -1 +0,0 @@
-Subproject commit 39f06b873a8449af8ff6a3eee716d3da14d63a76
diff --git a/.config/nvim/plugged/nerdtree b/.config/nvim/plugged/nerdtree
@@ -1 +0,0 @@
-Subproject commit f63fb6984f9cd07cf723c3e2e20f6ccc0aad48c2
diff --git a/.config/nvim/plugged/vcs-info.vim b/.config/nvim/plugged/vcs-info.vim
@@ -1 +0,0 @@
-Subproject commit 8a79ae987a0b17af813a5e88517dd4fe69bd4137
diff --git a/.config/nvim/plugged/vim-airline b/.config/nvim/plugged/vim-airline
@@ -1 +0,0 @@
-Subproject commit df956aa08b8bdb176d7127cc4940aea123ec4ffc
diff --git a/.config/nvim/plugged/vim-airline-themes b/.config/nvim/plugged/vim-airline-themes
@@ -1 +0,0 @@
-Subproject commit fa808d74e0aacf131337b58f01ee45fd3d3588af
diff --git a/.config/nvim/plugged/vim-colorschemes b/.config/nvim/plugged/vim-colorschemes
@@ -1 +0,0 @@
-Subproject commit fd8f122cef604330c96a6a6e434682dbdfb878c9
diff --git a/.config/terminator/config b/.config/terminator/config
@@ -1,27 +0,0 @@
-[global_config]
-  dbus = False
-  extra_styling = False
-[keybindings]
-[profiles]
-  [[default]]
-    icon_bell = False
-    background_darkness = 0.8
-    background_type = transparent
-    cursor_color = "#aaaaaa"
-    font = Source Code Pro Heavy 11
-    foreground_color = "#ffffff"
-    show_titlebar = False
-    scrollbar_position = hidden
-    palette = "#000000:#aa0000:#00aa00:#aa5500:#0000aa:#aa00aa:#00aaaa:#aaaaaa:#555555:#ff5555:#55ff55:#ffff55:#5555ff:#ff55ff:#55ffff:#ffffff"
-    use_system_font = False
-    bold_is_bright = True
-    copy_on_selection = True
-[layouts]
-  [[default]]
-    [[[window0]]]
-      type = Window
-      parent = ""
-    [[[child1]]]
-      type = Terminal
-      parent = window0
-[plugins]
diff --git a/.config/termite/config b/.config/termite/config
@@ -1,73 +0,0 @@
-[options]
-allow_bold = true
-#audible_bell = false
-#bold_is_bright = true
-#cell_height_scale = 1.0
-#cell_width_scale = 1.0
-clickable_url = true
-dynamic_title = true
-font =  DejaVuSansMono Nerd Font 10
-#fullscreen = true
-#icon_name = terminal
-#mouse_autohide = false
-#scroll_on_output = false
-#scroll_on_keystroke = true
-# Length of the scrollback buffer, 0 disabled the scrollback buffer
-# and setting it to a negative value means "infinite scrollback"
-scrollback_lines = 10000
-#search_wrap = true
-#urgent_on_bell = true
-#hyperlinks = false
-
-# $BROWSER is used by default if set, with xdg-open as a fallback
-browser = xdg-open
-
-# "system", "on" or "off"
-cursor_blink = system
-
-# "block", "underline" or "ibeam"
-cursor_shape = block
-
-# Hide links that are no longer valid in url select overlay mode
-#filter_unmatched_urls = true
-
-# Emit escape sequences for extra modified keys
-#modify_other_keys = false
-
-# set size hints for the window
-#size_hints = false
-
-# "off", "left" or "right"
-#scrollbar = off
-
-# ====================================
-[colors]
-
-# http=//xcolors.net/dl/neon
-background=rgba(17,17,17,0.85)
-foreground=#F8F8F8
-# black
-color0=#171717
-color8=#bbaaaa
-#color8=#ffffff
-# red
-color1=#D81765
-color9=#FF0000
-# green
-color2=#97D01A
-color10=#76B639
-# yellow
-color3=#FFA800
-color11=#E1A126
-# blue
-color4=#16B1FB
-color12=#289CD5
-# magenta
-color5=#FF2491
-color13=#FF2491
-# cyan
-color6=#0FDCB6
-color14=#0A9B81
-# white
-color7=#EBEBEB
-color15=#F8F8F8
diff --git a/.config/termite/config.user b/.config/termite/config.user
@@ -1,6 +0,0 @@
-[options]
-font = Source Code Pro Bold 10
-
-[colors]
-background = rgba(00, 00, 00, 0.8)
-