1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | #! /bin/sh
#
# make sure all processes are killed
#
killall -q polybar
killall -q sxhkd
killall -q signal-desktop
killall -q picom
#
# something
#
pgrep -x sxhkd > /dev/null || sxhkd &
while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done
while pgrep -u $UID -x picom >/dev/null; do sleep 1; done
while pgrep -u $UID -x signal-desktop >/dev/null; do sleep 1; done
#
# AUTOSTART
#
bato &
nitrogen --restore &
picom --experimental-backend &
polybar -q main -c $HOME/.config/polybar/config.ini &
sxhkd &
dunst -conf $HOME/.config/dunst/dunstrc &
signal-desktop --start-in-tray --use-tray-icon --no-sandbox %U &
xrdb .Xresources
#
# bspwm
#
bspc monitor -d 1 2 3 4 5 6 7 8
bspc config border_width 3
bspc config window_gap 10
bspc config normal_border_color "#9DA2D0"
bspc config focused_border_color "#FB5B87"
bspc config split_ratio 0.50
bspc config borderless_monocle true
bspc config gapless_monocle true
bspc rule -a google-chrome-stable desktop='^2'
bspc rule -a code desktop='^5'
bspc rule -a discord desktop='^4'
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 | call plug#begin('~/.vim/plugged')
Plug 'github/copilot.vim'
Plug 'preservim/NERDtree'
Plug 'vim-airline/vim-airline'
"Plug 'vim-utils/vim-alt-mappings'
Plug '907th/vim-auto-save'
Plug 'vim-airline/vim-airline-themes'
Plug 'tribela/vim-transparent'
Plug 'mattn/emmet-vim'
Plug 'neoclide/coc.nvim', { 'branch': 'release' }
Plug 'ryanoasis/vim-devicons'
Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'rrethy/vim-hexokinase', { 'do': 'make hexokinase' }
Plug 'flazz/vim-colorschemes'
Plug 'Yggdroot/indentLine'
Plug 'frazrepo/vim-rainbow'
Plug 'othree/html5.vim'
Plug 'alvan/vim-closetag'
Plug 'ccakes/stack.vim'
Plug 'preservim/tagbar'
Plug 'embark-theme/vim'
Plug 'ghifarit53/tokyonight-vim'
Plug 'mhinz/vim-startify'
" Plug 'arzg/vim-colors-xcode'
call plug#end()
" common settings.
set history=1000
set number
set ruler
set nowritebackup
set updatetime=300
set shortmess+=c
set hidden
set expandtab
set cursorline
set nocompatible
set backup
set noshowmode
set laststatus=1
set backspace=indent,eol,start
filetype on
filetype plugin on
filetype indent on
set showcmd
set showmode
set showmatch
set wildmenu
set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
"Colors
colorscheme embark
set encoding=UTF-8
set t_Co=256
syntax on
set termguicolors
set background=dark
let g:embark_terminal_italics = 1
" stack.vim
" here are hotkeys
" C+N = StackNewWindow
" C+C = CloseWindow
" C+L = PromoteWindow
" rainbow
let g:rainbow_active = 1
let g:rainbow_load_separately = [
\ [ '*.py' , [['(', ')'], ['\[', '\]'], ['{', '}']] ],
\ [ '*.tex' , [['(', ')'], ['\[', '\]']] ],
\ [ '*.cpp' , [['(', ')'], ['\[', '\]'], ['{', '}']] ],
\ [ '*.{html,htm}' , [['(', ')'], ['\[', '\]'], ['{', '}'], ['<\a[^>]*>', '</[^>]*>']] ],
\ ]
let g:rainbow_guifgs = ['RoyalBlue3', 'DarkOrange3', 'DarkOrchid3', 'FireBrick']
let g:rainbow_ctermfgs = ['lightblue', 'lightgreen', 'yellow', 'red', 'magenta']
"airline
let g:airline_theme = 'atomic'
let g:airline_powerline_fonts = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#formatter = 'default'
let g:airline#extensions#branch#enabled = 1
let g:airline#extensions#tabline#show_tabs = 1
let g:airline#extensions#tabline#show_splits = 1
let g:airline#extensions#tabline#show_close_button = 0
let g:airline#extensions#coc#enabled = 1
let g:airline#extensions#coc#show_coc_status = 1
let g:airline#extensions#default#layout = [['a', 'b', 'c'], ['x', 'z', 'warning', 'error']]
let g:airline_section_z = airline#section#create(['linenr'])
let g:airline_skip_empty_sections = 1
" syntastic
let g:airline#extensions#syntastic#enabled = 1
let airline#extensions#syntastic#error_symbol = 'E:'
let airline#extensions#syntastic#stl_format_err = '%E{[%fe(#%e)]}'
let airline#extensions#syntastic#warning_symbol = 'W:'
let airline#extensions#syntastic#stl_format_warn = '%W{[%fw(#%w)]}'
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
" autosave plugin
"let g:auto_save_silent = 1
let g:auto_save = 1
"let g:auto_save = 0
augroup ft_markdown
au!
au FileType markdown let b:auto_save = 1
augroup END
"nerdtree
if exists('g:plugs["nerdtree"]')
autocmd StdinReadPre * let S:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif
let g:NERDTreeDirArrowExpandable = ""
let g:NERDTreeDirArrowCollapsible = ""
let g:NERDTreeWinSize=30
let g:NERDTreeMinimalUI = 1
let g:NERDTreeHighlightCursorline = 0
autocmd FileType nerdtree setlocal signcolumn=no
endif
let NERDTreeHighlightCursorline=0
" Custom icons for expandable/expanded directories.
let g:NERDTreeDirArrowCollapsible = '⬎'
let g:NERDTreeDirArrowExpandable = '⬏'
" Hide certain files and directories.
let g:NERDTreeIgnore = ['^\.DS_Store$', '^tags$', '\.git$[[dir]]', '\.idea$[[dir]]', '\.sass-cache$']
" hexokinase
if exists('g:plugs["vim-hexokinase"]')
let g:hexokinase_highlighters = [
\ 'virtual',
\ ]
let g:Hexokinase_virtualText = ' '
let g:Hexokinase_signIcon = ' '
let g:Hexokinase_alpha_bg = '#292D3E'
let g:Hexokinase_checkBoundary = 0
let g:Hexokinase_optInPatterns = [
\'full_hex',
\'triple_hex',
\'rgba',
\'hsl',
\'hsla',
\]
endif
autocmd VimEnter = HexokinaseTurnOn
" IndentLine
if exists('g:plugs["indentLine"]')
let g:indentLine_showFirstIndentLevel = 1
let g:indentLine_char = '│'
let g:indentLine_first_char = '│'
let g:indentLine_faster = 1
let g:indentLine_color_term = 1
let g:indentLine_color_gui = '#C93357'
let g:indentLine_conceallevel = 2
let g:indentLine_fileTypeExclude = [
\ 'help', 'nerdtree', 'startify', 'Preview','__doc__', 'peekaboo',
\ 'man', 'trans', 'fzf', 'markdown', 'json',
\ ]
let g:indentLine_bufTypeExclude = [
\ 'help', 'terminal'
\ ]
endif
" html5
let g:html5_event_handler_attributes_complete = 0
let g:html5_rdfa_attributes_complete = 0
let g:html5_microdata_attributes_complete = 0
let g:html5_aria_attributes_complete = 0
" vim-closetag
let g:closetag_filenames = '*.html,*.xhtml,*.phtml'
" filenames like *.xml, *.xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filenames = '*.xhtml,*.jsx'
" filetypes like xml, html, xhtml, ...
" These are the file types where this plugin is enabled.
"
let g:closetag_filetypes = 'html,xhtml,phtml'
" filetypes like xml, xhtml, ...
" This will make the list of non-closing tags self-closing in the specified files.
"
let g:closetag_xhtml_filetypes = 'xhtml,jsx'
" integer value [0|1]
" This will make the list of non-closing tags case-sensitive (e.g. `<Link>` will be closed while `<link>` won't.)
"
let g:closetag_emptyTags_caseSensitive = 1
" dict
" Disables auto-close if not in a "valid" region (based on filetype)
"
let g:closetag_regions = {
\ 'typescript.tsx': 'jsxRegion,tsxRegion',
\ 'javascript.jsx': 'jsxRegion',
\ 'typescriptreact': 'jsxRegion,tsxRegion',
\ 'javascriptreact': 'jsxRegion',
\ }
" Shortcut for closing tags, default is '>'
let g:closetag_shortcut = '>'
" Add > at current position without closing the current tag, default is ''
let g:closetag_close_shortcut = '<leader>>'
" Tagbar
if exists('g:plugs["tagbar"]')
let g:tagbar_autopreview = 0
let g:tagbar_indent = 1
let g:tagbar_show_linenumbers = 1
let g:tagbar_show_visibility = 1
let g:tagbar_singleclick = 1
let g:tagbar_sort = 1
let g:tagbar_width = 35
let g:airline#extensions#tagbar#enabled = 1
endif
" Startify
let g:head = [
\
\ ' ██▒ █▓ ██▓ ▄▄▄ ',
\ '▓██░ █▒▓██▒▒████▄ ',
\ ' ▓██ █▒░▒██▒▒██ ▀█▄ ',
\ ' ▒██ █░░░██░░██▄▄▄▄██ ',
\ ' ▒▀█░ ░██░ ▓█ ▓██▒',
\ ' ░ ▐░ ░▓ ▒▒ ▓▒█░',
\ ' ░ ░░ ▒ ░ ▒ ▒▒ ░',
\]
let g:startify_custom_header = g:head
let g:startify_lists = [
\ { 'type': 'files', 'header': [' file'] },
\ { 'type': 'dir', 'header': [' dirs'] },
\ { 'type': 'commands', 'header': [' cmds'] },
\ ]
let g:startify_files_number = 8
let g:startify_padding_left = 5
let g:startify_custom_indices = []
let g:startify_custom_indices = ['', '', '', '', '', '', '', '', '', '']
" Keybinding
execute "set <M-l>=\el"
execute "set <M-c>=\ec"
execute "set <M-z>=\ez>"
let mapleader=","
noremap <leader>n :NERDTreeFocus<CR>
noremap <C-n> :NERDTree<CR>
noremap <C-t> :NERDTreeToggle<CR>
noremap <C-f> :NERDTreeFind<CR>
noremap <F8> :TagbarToggle<CR>
noremap <M-l> :bn<CR>
noremap <C-k> :bp<cr>
noremap <leader>q :bp<cr>:bd #<cr>
|
x
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | ## Shadow
shadow = true;
no-dnd-shadow = true;
no-dock-shadow = true;
clear-shadow = true;
shadow-radius = 5; # default: 12
shadow-offset-x = -2;
shadow-offset-y = -1;
shadow-opacity = 0.7 # default: 0.5
shadow-exclude = ["class_g = 'tray'"]
## fading
fading = true;
# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028)
fade-in-step = 0.040;
# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03)
fade-out-step = 0.040;
# fade-delta = 10
fade-exclude = [
];
## opacity
active-opacity = 0.98;
inactive-opacity = 0.98;
frame-opacity = 1;
opacity-rule = [
"100:class_g = 'Navigator'",
"85:class_g = 'thunar'",
"100:class_g = 'kitty'",
"100:class_g = 'google-chrome-stable'"
]
## other
backend = "glx";
mark-wmwin-focused = true;
mark-ovredir-focused = false;
detect-rounded-corners = true;
detect-client-opacity = true;
refresh-rate = 0;
vsync = "opengl";
dbe = false;
paint-on-overlay = true;
focus-exclude = [ "class_g = 'Cairo-clock'" ,
"class_g = 'CoverGloobus'",
"class_g = 'Tilda'",
"class_g = 'firefox'",
"class_g = 'Firefox-esr'",
];
detect-transient = true;
detect-client-leader = true;
invert-color-include = [ ];
glx-copy-from-front = false;
glx-swap-method = "undefined";
wintypes:
{
tooltip = { fade = true; shadow = true; opacity = 1; focus = true; }
normal = { fade = true; shadow = true; }
dock = {
shadow = true;
shadow-offset-x = -20;
shadow-offset-y = -10;
opacity = 0.98;
blur-background = true;
blur-strength = 1;
}
dnd = { shadow = true; }
popup_menu = { opacity = 1; }
dropdown_menu = { opacity = 1; }
};
## blur
blur-background = true;
blur-background-frame = true;
blur-background-fixed = true;
#blur-kern = "3x3box";
blur-method = "dual_kawase";
blur-strength = 4;
blur-background-exclude = [ "window_type = 'desktop'",
"class_g = 'Navigator'",
"class_g = 'tray'",
"class_g = 'maim'",
"class_g = 'chrome'", # idk wtf chrome version should be added
"class_g = 'Chrome'",
"class_g = 'google-chrome'",
"class_g = 'Google-Chrome'",
"class_g = 'google-chrome-stable'",
"class_g = 'kitty'"]
|
x
Notes
Click this link if u want more dots to play to:
https://github.com/sharpicx/dotfiles