Created
December 6, 2019 19:30
-
-
Save vnteles/576bc31638609d6cbb23f5fad20f1745 to your computer and use it in GitHub Desktop.
Dots
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Credits to u/NerdyPepper | |
let &t_ZM = "\e[3m" | |
" vim-plugs | |
call plug#begin('~/.local/share/nvim/plugged') | |
Plug 'airblade/vim-gitgutter' | |
Plug 'andymass/vim-matchup' | |
Plug 'godlygeek/tabular' | |
Plug 'jiangmiao/auto-pairs' | |
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } | |
Plug 'junegunn/fzf.vim' | |
Plug 'mattn/emmet-vim' | |
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}, 'branch': 'release'} | |
Plug 'scrooloose/nerdtree' | |
Plug 'wellle/targets.vim' | |
" tpope | |
Plug 'tpope/vim-repeat' | |
Plug 'tpope/vim-surround' | |
Plug 'tpope/vim-unimpaired' | |
Plug 'tpope/vim-fugitive' | |
" syntax and friends | |
Plug 'leafgarland/typescript-vim' | |
Plug 'mxw/vim-jsx' | |
Plug 'pangloss/vim-javascript' | |
Plug 'rust-lang/rust.vim' | |
Plug 'lervag/vimtex' | |
Plug 'dart-lang/dart-vim-plugin' | |
" colorschemes | |
Plug 'nerdypepper/agila.vim' | |
Plug 'nerdypepper/chestnut.vim' | |
Plug 'nerdypepper/vim-colors-plain', { 'branch': 'duotone' } | |
Plug 'junegunn/seoul256.vim' | |
call plug#end() | |
" augroups | |
augroup plaintext | |
autocmd! | |
autocmd FileType text,markdown setlocal ts=2 sts=2 sw=2 expandtab textwidth=60 | |
augroup END | |
augroup webdev | |
autocmd! | |
autocmd FileType less,css,html,js?,ts? setlocal ts=2 sts=2 sw=2 expandtab | |
autocmd FileType less,css,html nnoremap <Leader>s viB:sort<cr> | |
augroup END | |
augroup scm_pairs | |
autocmd! | |
autocmd FileType scheme let b:AutoPairs = {"(": ")", "[": "]", "{": "}"} | |
augroup END | |
augroup rustdev | |
autocmd! | |
autocmd FileType rs setlocal ts=4 sts=4 sw=4 expandtab | |
augroup END | |
augroup highlight_follows_vim | |
autocmd! | |
autocmd FocusGained * set cursorline | |
autocmd FocusLost * set nocursorline | |
augroup END | |
augroup restorecursor | |
autocmd BufReadPost * | |
\ if line("'\"") > 1 && line("'\"") <= line("$") | | |
\ execute "normal! g`\"" | | |
\ endif | |
augroup END | |
augroup nerdtree | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
augroup END | |
" general settings | |
set nobackup | |
set nowritebackup | |
set noswapfile " get rid of swapfiles everywhere | |
set dir=/tmp | |
syntax on | |
set omnifunc=syntaxcomplete#Complete | |
set completefunc=LanguageClient#complete | |
set list | |
filetype off | |
filetype plugin indent on | |
set laststatus=2 | |
set nowrap | |
set noshowmode | |
set listchars=tab:┊\ ,nbsp:␣,trail:·,extends:>,precedes:< | |
set listchars=tab:┊\ ,nbsp:␣,trail:·,extends:>,precedes:< | |
set ignorecase | |
set smartcase | |
set sidescroll=40 | |
set incsearch | |
set hlsearch | |
set undofile | |
set undodir=~/tmp | |
set path+=** | |
set backspace=indent,eol,start | |
set hidden | |
set wildmenu | |
set foldmethod=manual | |
set complete=.,w,b,i,u,t, | |
set background=dark | |
set mouse=a | |
set conceallevel=0 | |
set nocursorline | |
set grepprg=rg\ --vimgrep\ --no-heading | |
set grepformat=%f:%l:%c:%m,%f:%l:%m | |
set cmdheight=2 | |
set shortmess+=c | |
set updatetime=300 | |
set signcolumn=yes | |
set relativenumber | |
let g:netrw_browsex_viewer= "xdg-open" | |
let g:seoul256_background = 235 | |
colorscheme seoul256 | |
set shiftwidth=4 " indent = 4 spaces | |
set expandtab | |
set tabstop=4 " tab = 4 spaces | |
set softtabstop=4 " backspace through spaces | |
" Functions | |
function! GetTabber() " a lil function that integrates well with Tabular.vim | |
let c = nr2char(getchar()) | |
:execute 'Tabularize /' . c | |
endfunction | |
" Ugh | |
:command! WQ wq | |
:command! Wq wq | |
:command! Wqa wqa | |
:command! W w | |
:command! Q q | |
" abbreviations | |
abclear | |
iab #i #include | |
iab #d #define | |
cab dst put =strftime('%d %a, %b %Y')<cr> | |
cab vg vimgrep | |
" plugin settings | |
" emmet | |
let g:user_emmet_mode='a' | |
let g:user_emmet_leader_key='<C-X>' | |
" nerdtree | |
let g:NERDTreeMinimalUI = 1 | |
let g:NERDTreeWinPos = 'left' | |
let g:NERDTreeWinSize = 20 | |
let g:NERDTreeStatusline = " " | |
let g:NERDTreeDirArrowExpandable = '+' | |
let g:NERDTreeDirArrowCollapsible = '-' | |
" gitgutter | |
let g:gitgutter_override_sign_column_highlight = 0 | |
let g:gitgutter_sign_added = '+' " '┃' | |
let g:gitgutter_sign_modified = '~' " '┃' | |
let g:gitgutter_sign_removed = '-' " '┃' | |
let g:gitgutter_sign_removed_first_line = '-' " '┃' | |
let g:gitgutter_sign_modified_removed = '~' " '┃' | |
highlight GitGutterAdd ctermfg=8 | |
highlight GitGutterChange ctermfg=8 | |
highlight GitGutterDelete ctermfg=8 | |
" rust.vim | |
let g:rustfmt_autosave = 1 | |
" fzf colors | |
let g:fzf_colors = | |
\ { 'fg': ['fg', 'Normal'], | |
\ 'bg': ['bg', 'Normal'], | |
\ 'hl': ['fg', 'Comment'], | |
\ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'], | |
\ 'bg+': ['bg', 'CursorLine', 'CursorColumn'], | |
\ 'hl+': ['fg', 'Statement'], | |
\ 'info': ['fg', 'PreProc'], | |
\ 'border': ['fg', 'Ignore'], | |
\ 'prompt': ['fg', 'Conditional'], | |
\ 'pointer': ['fg', 'Exception'], | |
\ 'marker': ['fg', 'Keyword'], | |
\ 'spinner': ['fg', 'Label'], | |
\ 'header': ['fg', 'Comment'] } | |
" indentLine | |
let g:indentLine_setColors = 0 | |
let g:indentLine_char = '┆' | |
let g:latex_view_general_viewer = 'zathura' | |
let g:vimtex_view_method = "zathura" | |
" man pages | |
let g:ft_man_open_mode = 'tab' | |
" dart | |
let dart_html_in_string=v:true | |
let dart_style_guide=2 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xsetroot -solid "#222" | |
compton -b | |
xrdb $HOME/.Xresources | |
$HOME/.fehbg | |
$HOME/.config/polybar/launch.sh | |
exec 2bwm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! | |
#define defcolor0 #282828 | |
! | |
#define defcolor1 #282828 | |
#define defcolor2 #222222 | |
! | |
#define defcolor3 #928374 | |
#define defcolor4 #E7E5E9 | |
! | |
#define defcolor5 #b16286 | |
! | |
#define defcolor6 #ebdbb2 | |
#define defcolor7 #8FBCBB | |
! | |
#define defcolor8 #689d6a | |
#define defcolor9 #81A1C1 | |
! | |
#define defcolor10 #458588 | |
! | |
#define defcolor11 #cc241d | |
#define defcolor12 #D08770 | |
! | |
#define defcolor13 #d79921 | |
! | |
#define defcolor14 #98971a | |
! | |
#define defcolor15 #b16286 | |
*.foreground: defcolor6 | |
*.background: defcolor0 | |
*.cursorColor: defcolor4 | |
*fading: 35 | |
*fadeColor: defcolor0 | |
!black | |
*.color0: defcolor1 | |
*.color8: defcolor3 | |
!red | |
*.color1: defcolor11 | |
*.color9: #fb4934 | |
!green | |
*.color2: defcolor14 | |
*.color10: #b8bb26 | |
!yellow | |
*.color3: defcolor13 | |
*.color11: #fabd2f | |
!blue | |
*.color4: defcolor10 | |
*.color12: #83a598 | |
!magenta | |
*.color5: defcolor15 | |
*.color13: #d3869b | |
!cyan | |
*.color6: defcolor8 | |
*.color14: #8ec07c | |
!white | |
*.color7: defcolor5 | |
*.color15: #ebdbb2 | |
*font: Iosevka:size=11 | |
*loginShell: true | |
URxvt*borderColor: defcolor0 | |
URxvt*borderLess: false | |
URxvt*buffered: false | |
URxvt*depth: 32 | |
URxvt*externalBorder: 0 | |
URxvt*internalBorder: 18 | |
URxvt*iso14755: false | |
URxvt*letterSpace: 1 | |
URxvt*saveline: 15000 | |
URxvt*scrollBar: false | |
URxvt*scrollBar_right: false | |
URxvt*termName: rxvt-unicode | |
!!!!!!!!!!!!!! | |
URxvt.font: xft:curie:size=60 | |
URxvt.geometry: 90x30 | |
URxvt.copyCommand: xclip -i -selection clipboard | |
URxvt.keysym.m-c: perl:clipboard:copy | |
URxvt.keysym.m-v: perl:clipboard:paste | |
URxvt.pasteCommand: xclip -o -selection clipboard | |
URxvt.perl-ext-common: default,clipboard,url-select,keyboard-select | |
URxvt.underlineURLs: true | |
URxvt.urlButton: 1 | |
URxvt.urlLauncher: xdg-open | |
! Rofi | |
! ------------------------------------------------------------------------------ | |
rofi.color-active: argb:00000000, defcolor10, argb:00000000, argb:00000000, defcolor13 | |
rofi.color-enabled: true | |
rofi.color-normal: defcolor0, defcolor4, defcolor0, defcolor14, defcolor0 | |
rofi.color-urgent: argb:00000000, defcolor11, argb:00000000, argb:00000000, defcolor13 | |
rofi.color-window: defcolor0, defcolor3, defcolor0 | |
rofi.font: cherry 11 | |
rofi.hide-scrollbar: true | |
rofi.kb-cancel: Escape,Alt+F1 | |
rofi.line-padding: 2 | |
rofi.width: 15 | |
rofi.location: 1 | |
rofi.padding: 20 | |
rofi.separator-style: solid | |
! 2bwm | |
! ------------------------------------------------------------------------------ | |
#define b0 #4f4f4f | |
twobwm.border_width: 4 | |
twobwm.outer_border: 3 | |
twobwm.focus_color: b0 | |
twobwm.unfocus_color: b0 | |
twobwm.fixed_color: defcolor14 | |
twobwm.unkill_color: defcolor11 | |
twobwm.outer_border_color: defcolor0 | |
twobwm.fixed_unkill_color: defcolor13 | |
twobwm.inverted_colors: false | |
twobwm.enable_compton: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;path: .config/polybar/config | |
[colors] | |
background = #282828 | |
;background-alt = #fafafa | |
foreground = #fff | |
foreground-alt = #000 | |
primary = ${xrdb:color2:#A3BE8C} | |
secondary = ${xrdb:color4:#81A1C1} | |
alert = ${xrdb:color1:#BF616A} | |
[sizes] | |
bar-height = 35 | |
[bar/workspace] | |
monitor = ${env:MONITOR:} | |
width = 30px | |
height = ${sizes.bar-height} | |
bottom = true | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
font-0 = curie:pixelsize=23;2 | |
padding-left = 0 | |
padding-right = 0 | |
modules-left = workspace | |
modules-center = | |
modules-right = | |
offset-x = 1% | |
offset-y = 1% | |
[bar/date] | |
monitor = ${env:MONITOR:} | |
width = 115px | |
height = ${sizes.bar-height} | |
bottom = true | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
font-0 = curie:pixelsize=23;2 | |
padding-left = 0 | |
padding-right = 0 | |
modules-left = date | |
modules-center = | |
modules-right = | |
offset-x = 80% | |
offset-y = 1% | |
[bar/volume] | |
monitor = ${env:MONITOR:} | |
width = 73px | |
height = ${sizes.bar-height} | |
bottom = true | |
background = ${colors.background} | |
foreground = ${colors.foreground} | |
font-0 = curie:pixelsize=23;2 | |
padding-left = 0 | |
padding-right = 0 | |
modules-left = volume | |
modules-center = | |
modules-right = | |
offset-x = 90% | |
offset-y = 1% | |
[module/workspace] | |
type = custom/script | |
interval = 0.01 | |
exec = echo $(( $(xprop -root _NET_CURRENT_DESKTOP | sed -e 's/_NET_CURRENT_DESKTOP(CARDINAL) = //') + 1)) | |
format-padding = 2 | |
[module/date] | |
type = internal/date | |
interval = 1 | |
date = %b %d, %H:%M | |
format-prefix = " @ " | |
format-prefix-background = ${colors.primary} | |
format-prefix-foreground = ${colors.foreground-alt} | |
format = <date> | |
format-prefix-margin-right = 1 | |
label = %date% | |
[module/volume] | |
type = internal/volume | |
label-muted = muted | |
label-volume = %percentage%% | |
format-muted-prefix = " # " | |
format-muted-prefix-background = ${colors.alert} | |
format-muted-prefix-foreground = ${colors.foreground-alt} | |
format-volume = <label-volume> | |
format-volume-prefix = " * " | |
format-volume-prefix-background = ${colors.secondary} | |
format-volume-prefix-foreground = ${colors.foreground-alt} | |
format-volume-prefix-margin-right = 3 | |
format-muted-prefix-margin-right = 2 | |
[settings] | |
screenchange-reload = true | |
[global/wm] | |
;margin-top = 5 | |
margin-bottom = 5 | |
; vim:ft=dosini |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
#path: .config/polybar/launch.sh | |
# Terminate already running bar instances | |
killall -q polybar | |
# Wait until the processes have been shut down | |
while pgrep -x polybar >/dev/null; do sleep 1; done | |
# Launch | |
polybar workspace & | |
polybar date & | |
polybar volume & | |
echo "Bar launched..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment