mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update vim, git, tmux, migrate to light theme
This commit is contained in:
parent
72c267b784
commit
04331d3e94
16 changed files with 181 additions and 229 deletions
|
|
@ -16,10 +16,10 @@ R() { # BSPWM rule
|
||||||
|
|
||||||
###== Autostart
|
###== Autostart
|
||||||
A feh --randomize --bg-scale ~/Pictures/wallp &
|
A feh --randomize --bg-scale ~/Pictures/wallp &
|
||||||
A sxhkd -c ~/.config/bspwm/sxhkd &
|
|
||||||
A picom -b &
|
|
||||||
~/.config/bspwm/polybar/bar.sh &
|
|
||||||
xautolock -time 5 -locker "slock" &
|
xautolock -time 5 -locker "slock" &
|
||||||
|
A sxhkd -c ~/.config/bspwm/sxhkd &
|
||||||
|
~/.config/bspwm/polybar/bar.sh &
|
||||||
|
A picom -b &
|
||||||
|
|
||||||
###== BSPWM
|
###== BSPWM
|
||||||
|
|
||||||
|
|
@ -36,10 +36,9 @@ C single_monocle true
|
||||||
C focus_follows_pointer true
|
C focus_follows_pointer true
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
C normal_border_color "#262A2B"
|
C normal_border_color "#f5f5f5"
|
||||||
C active_border_color "#1F2324"
|
C active_border_color "#1F2324"
|
||||||
C focused_border_color "#008DCD"
|
C focused_border_color "#008DCD"
|
||||||
C presel_feedback_color "#51AFEF"
|
|
||||||
C urgent_border_color "#FF6C6B"
|
C urgent_border_color "#FF6C6B"
|
||||||
|
|
||||||
###== BSPWM Rules
|
###== BSPWM Rules
|
||||||
|
|
@ -47,12 +46,11 @@ R kitty desktop='^1' focus=on follow=on
|
||||||
R Google-chrome desktop='^2' focus=on follow=on
|
R Google-chrome desktop='^2' focus=on follow=on
|
||||||
R LibreWolf desktop='^2' focus=on follow=on
|
R LibreWolf desktop='^2' focus=on follow=on
|
||||||
R Code desktop='^3' focus=on follow=on
|
R Code desktop='^3' focus=on follow=on
|
||||||
R '*:nvim' desktop='^3' focus=on follow=on
|
|
||||||
R Todoist desktop='^4' focus=on follow=on
|
|
||||||
R Joplin desktop='^4' focus=on follow=on
|
R Joplin desktop='^4' focus=on follow=on
|
||||||
|
R Todoist desktop='^4' focus=on follow=on
|
||||||
R Simplenote desktop='^4' focus=on follow=on
|
R Simplenote desktop='^4' focus=on follow=on
|
||||||
R '*:ranger' desktop='^5' focus=off follow=off
|
R Nemo desktop='^5' focus=on follow=on
|
||||||
|
R Zathura desktop='^5' focus=on follow=on state=tiled
|
||||||
R discord desktop='^6' focus=on follow=off
|
R discord desktop='^6' focus=on follow=off
|
||||||
R TelegramDesktop desktop='^6' focus=off follow=on
|
R TelegramDesktop desktop='^6' focus=off follow=on
|
||||||
R KeePassXC desktop='^7' focus=on follow=on
|
R KeePassXC desktop='^7' focus=on follow=on
|
||||||
R Zathura desktop='^9' focus=on follow=on state=tiled
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,14 @@ background = #262A2B
|
||||||
foreground = #cfd1dd
|
foreground = #cfd1dd
|
||||||
secondary = #008DCD
|
secondary = #008DCD
|
||||||
alert = #FF6C6B
|
alert = #FF6C6B
|
||||||
|
empty = #383a42
|
||||||
|
|
||||||
|
;[colors] ; Light
|
||||||
|
;background = #f9f9f9
|
||||||
|
;foreground = #5b5b5f
|
||||||
|
;secondary = #0098dd
|
||||||
|
;alert = #df631c
|
||||||
|
;empty = #a0a1a7
|
||||||
|
|
||||||
[bar/bar]
|
[bar/bar]
|
||||||
width = 100%
|
width = 100%
|
||||||
|
|
@ -19,7 +27,8 @@ wm-restack = bspwm
|
||||||
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
font-0 = Iosevka Nerd Font:style=Medium:size=8;3
|
||||||
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5
|
||||||
modules-left = bspwm archupd
|
modules-left = bspwm archupd
|
||||||
modules-right = pulseaudio keyboard time wifi-signal
|
modules-center = time wifi-signal
|
||||||
|
modules-right = pulseaudio keyboard
|
||||||
tray-position = right
|
tray-position = right
|
||||||
tray-padding = 0
|
tray-padding = 0
|
||||||
|
|
||||||
|
|
@ -39,7 +48,7 @@ label-urgent =
|
||||||
label-urgent-foreground = ${colors.alert}
|
label-urgent-foreground = ${colors.alert}
|
||||||
label-urgent-padding = 2
|
label-urgent-padding = 2
|
||||||
label-empty =
|
label-empty =
|
||||||
label-empty-foreground = #58676C74
|
label-empty-foreground = ${colors.empty}
|
||||||
label-empty-padding = 2
|
label-empty-padding = 2
|
||||||
|
|
||||||
[module/pulseaudio]
|
[module/pulseaudio]
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 853 KiB |
|
|
@ -5,12 +5,13 @@
|
||||||
super + {_,shift} Return
|
super + {_,shift} Return
|
||||||
{kitty, rofi -show drun}
|
{kitty, rofi -show drun}
|
||||||
|
|
||||||
super + shift + {w, e, f, s, t, q}
|
super + shift + {w, e, f, s, t, z, q}
|
||||||
{google-chrome-stable, \
|
{google-chrome-stable, \
|
||||||
code, \
|
code, \
|
||||||
nemo, \
|
nemo, \
|
||||||
.applications/simplenote.appimage, \
|
.applications/simplenote.appimage, \
|
||||||
.applications/todoist.appimage, \
|
.applications/todoist.appimage, \
|
||||||
|
slock, \
|
||||||
xkill }
|
xkill }
|
||||||
|
|
||||||
{_,shift,ctrl} Print
|
{_,shift,ctrl} Print
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
font_family JetBrains Mono
|
font_family JetBrains Mono
|
||||||
disable_ligatures always
|
disable_ligatures always
|
||||||
font_size 11
|
font_size 11
|
||||||
repaint_delay 10
|
repaint_delay 10
|
||||||
|
|
||||||
# Cursor
|
# Cursor
|
||||||
cursor #dfdfdf
|
cursor #dfdfdf
|
||||||
cursor_text_color #7d7d7d
|
cursor_text_color #7d7d7d
|
||||||
cursor_shape underline
|
cursor_shape underline
|
||||||
cursor_underline_thickness 1.3
|
cursor_underline_thickness 1.3
|
||||||
cursor_blink_interval 0
|
cursor_blink_interval 0
|
||||||
|
|
||||||
|
|
@ -28,23 +28,25 @@ map ctrl+minus change_font_size all -2.0
|
||||||
map ctrl+backspace change_font_size all 0
|
map ctrl+backspace change_font_size all 0
|
||||||
|
|
||||||
# Theming
|
# Theming
|
||||||
background_opacity 0.85
|
background #f6f6f6
|
||||||
background #262a2b
|
foreground #2a2b33
|
||||||
foreground #ffffff
|
cursor #D8DEE9
|
||||||
selection_background #1F2324
|
|
||||||
color0 #002731
|
selection_background #f0ede4
|
||||||
color8 #001e26
|
color0 #000000
|
||||||
color1 #d01b24
|
color8 #323232
|
||||||
color9 #bd3612
|
color1 #ff3333
|
||||||
color2 #728905
|
color9 #ff6565
|
||||||
color10 #465a61
|
color2 #86b200
|
||||||
color3 #a57705
|
color10 #b8e532
|
||||||
color11 #52676f
|
color3 #f19618
|
||||||
color4 #2075c7
|
color11 #ffc849
|
||||||
color12 #708183
|
color4 #41a6d9
|
||||||
color5 #c61b6e
|
color12 #73d7ff
|
||||||
color13 #5856b9
|
color5 #f07078
|
||||||
color6 #0fbcf9
|
color13 #ffa3aa
|
||||||
color14 #4bcffa
|
color6 #4cbe99
|
||||||
color7 #e9e2cb
|
color14 #7ff0cb
|
||||||
color15 #fcf4dc
|
color7 #ffffff
|
||||||
|
color15 #ffffff
|
||||||
|
selection_foreground #fafafa
|
||||||
|
|
|
||||||
|
|
@ -1,139 +1,64 @@
|
||||||
call plug#begin('~/.vim/plugged')
|
call plug#begin('~/.vim/plugged')
|
||||||
Plug 'Smirnov-O/nten16.vim'
|
Plug 'Smirnov-O/nten.vim'
|
||||||
Plug 'sheerun/vim-polyglot'
|
|
||||||
Plug 'jiangmiao/auto-pairs'
|
Plug 'jiangmiao/auto-pairs'
|
||||||
Plug 'scrooloose/nerdtree'
|
Plug 'sheerun/vim-polyglot'
|
||||||
Plug 'w0rp/ale'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
"== General
|
"== General
|
||||||
set termguicolors
|
colo nten-light " Color scheme
|
||||||
colorscheme nten16
|
set nu rnu " Line numbers
|
||||||
|
set cursorline " Highlight line by cursor
|
||||||
|
set linebreak wrap " Line wrap
|
||||||
|
set mouse=a mousehide " Mouse
|
||||||
|
set ruler laststatus=0 " Status line
|
||||||
|
set history=500 " Set history size
|
||||||
|
set autoread " Auto read file on change
|
||||||
|
set hidden " Change buffet without warning
|
||||||
|
set visualbell t_vb= " Disable sounds
|
||||||
|
set pumheight=8 " Maximum items in pop up
|
||||||
|
set modeline " Enable modeline
|
||||||
|
set nobk noswf noudf " Swap files
|
||||||
|
set is ic scs " Search
|
||||||
|
set scrolloff=3
|
||||||
|
set enc=utf-8 fenc=utf-8 " Encoding
|
||||||
|
set list listchars=tab:\|·,trail:~,space:·
|
||||||
|
|
||||||
" Line numbers
|
" Tab
|
||||||
set nu rnu
|
set tabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
" Line wrap
|
set softtabstop=4
|
||||||
set linebreak wrap
|
|
||||||
|
|
||||||
" Tabs
|
|
||||||
set tabstop=2
|
|
||||||
set shiftwidth=2
|
|
||||||
set softtabstop=2
|
|
||||||
set smarttab
|
set smarttab
|
||||||
set expandtab
|
set expandtab
|
||||||
set autoindent
|
set autoindent
|
||||||
|
|
||||||
" Status line
|
"== Netrw file manager
|
||||||
set ruler laststatus=0
|
let g:netrw_liststyle=3
|
||||||
|
let g:netrw_banner=0
|
||||||
|
let g:netrw_dirhistmax=0
|
||||||
|
|
||||||
" Maximux item in popup
|
"== Custom setting for another files
|
||||||
set pumheight=8
|
au FileType python,elm setlocal ex sw=4 ts=4
|
||||||
|
au FileType javascript,javascriptreact,json,yaml setlocal ex sw=2 ts=2
|
||||||
" Scroll
|
|
||||||
set scrolloff=3
|
|
||||||
|
|
||||||
" Mouse
|
|
||||||
set mouse=a
|
|
||||||
set mousehide
|
|
||||||
set cursorline
|
|
||||||
|
|
||||||
" Encoding
|
|
||||||
set encoding=utf-8
|
|
||||||
set fileencodings=utf-8
|
|
||||||
|
|
||||||
" Backup file & history
|
|
||||||
set nobackup noswapfile noundofile
|
|
||||||
set history=500
|
|
||||||
|
|
||||||
" Search
|
|
||||||
set incsearch
|
|
||||||
set ignorecase
|
|
||||||
set smartcase
|
|
||||||
|
|
||||||
" Enable mode line
|
|
||||||
set modeline
|
|
||||||
|
|
||||||
" Auto reload file
|
|
||||||
set autoread
|
|
||||||
|
|
||||||
" Buffer
|
|
||||||
set hidden
|
|
||||||
|
|
||||||
" Space/tab indicator
|
|
||||||
set list listchars=tab:\|·,trail:~,space:·
|
|
||||||
|
|
||||||
" Disable sound
|
|
||||||
set visualbell t_vb=
|
|
||||||
|
|
||||||
|
|
||||||
"== Aliases
|
|
||||||
command! W :w
|
|
||||||
command! Wq :wq
|
|
||||||
command! Term :vs|wincmd L|set nonu nornu|startinsert|cd %:p:h|term
|
|
||||||
command! Prettier :silent !prettier -w %
|
|
||||||
command! Black :silent !black %
|
|
||||||
command! ElmFmt :silent !elm-format % --yes
|
|
||||||
|
|
||||||
|
|
||||||
"== Settings for specific languages
|
|
||||||
autocmd FileType python,elm setlocal ex sw=4 ts=4
|
|
||||||
autocmd FileType javascript,javascriptreact setlocal et sw=2 ts=2
|
|
||||||
autocmd FileType html,css,json,yaml setlocal ex sw=2 ts=2
|
|
||||||
|
|
||||||
|
|
||||||
"== ALE
|
|
||||||
let g:ale_disable_lsp = 1
|
|
||||||
let g:ale_echo_msg_format = '%severity%: %s'
|
|
||||||
|
|
||||||
|
|
||||||
"== NERDTree
|
|
||||||
let g:NERDTreeWinPos = "right"
|
|
||||||
let g:NERDTreeMinimalUI = 1
|
|
||||||
let g:NERDTreeWinSize = 24
|
|
||||||
|
|
||||||
|
"== Custom commands
|
||||||
|
com! Term :vs|winc L|se nu! rnu!|start|term
|
||||||
|
com! Prettier :silent !prettier -w %
|
||||||
|
com! Black :silent !black %
|
||||||
|
com! ElmFmt :silent !elm-format --yes %
|
||||||
|
com! GoFmt :silent !gofmt -w %
|
||||||
|
|
||||||
"== Mapping
|
"== Mapping
|
||||||
let mapleader=";"
|
let mapleader=";"
|
||||||
|
nn <C-S> :w<cr>
|
||||||
" NerdTree
|
nn <leader>t :Term<cr>
|
||||||
nnoremap <leader>e :NERDTreeToggle<CR>
|
nn <space> :noh<cr>
|
||||||
|
nn <leader>j :bn<cr>
|
||||||
" Terminal
|
nn <leader>k :bp<cr>
|
||||||
tnoremap <Esc> <C-\><C-n>
|
nn <leader>w :bd<cr>
|
||||||
nnoremap <leader>t :Term<CR>
|
nn <C-h> :wincmd h<cr>
|
||||||
|
nn <C-j> :wincmd j<cr>
|
||||||
" Alternative keys
|
nn <C-k> :wincmd k<cr>
|
||||||
nnoremap <C-s> :w<CR>
|
nn <C-l> :wincmd l<cr>
|
||||||
nnoremap <C-n> :tabnew<CR>
|
tno <esc> <c-\><c-n>
|
||||||
nnoremap <space> :noh<CR>
|
nn spv :vs<cr>
|
||||||
|
nn sph :sp<cr>
|
||||||
" Window
|
|
||||||
nnoremap <C-h> :wincmd h<CR>
|
|
||||||
nnoremap <C-j> :wincmd j<CR>
|
|
||||||
nnoremap <C-k> :wincmd k<CR>
|
|
||||||
nnoremap <C-l> :wincmd l<CR>
|
|
||||||
|
|
||||||
" Split
|
|
||||||
nnoremap spv :vs<CR>
|
|
||||||
nnoremap sph :sp<CR>
|
|
||||||
nnoremap spk :wincmd K<CR>
|
|
||||||
nnoremap spl :wincmd L<CR>
|
|
||||||
|
|
||||||
" Tab
|
|
||||||
nnoremap tn :tabnew<CR>
|
|
||||||
noremap <A-1> :tabn 1<CR>
|
|
||||||
noremap <A-2> :tabn 2<CR>
|
|
||||||
noremap <A-3> :tabn 3<CR>
|
|
||||||
noremap <A-4> :tabn 4<CR>
|
|
||||||
noremap <A-5> :tabn 5<CR>
|
|
||||||
noremap <A-6> :tabn 6<CR>
|
|
||||||
noremap <A-7> :tabn 7<CR>
|
|
||||||
noremap <A-8> :tabn 8<CR>
|
|
||||||
noremap <A-9> :tabn 9<CR>
|
|
||||||
|
|
||||||
" Buffers
|
|
||||||
nnoremap <leader>j :bnext<CR>
|
|
||||||
nnoremap <leader>k :bprev<CR>
|
|
||||||
nnoremap <leader>w :bdele<CR>
|
|
||||||
nnoremap <leader>b :buffers<CR>
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
dropdown_menu = { shadow = false; };
|
dropdown_menu = { shadow = false; };
|
||||||
popup_menu = { shadow = false; };
|
popup_menu = { shadow = false; };
|
||||||
utility = { shadow = false; };
|
utility = { shadow = false; };
|
||||||
shadow = true;
|
shadow = false;
|
||||||
shadow-radius = 15;
|
shadow-radius = 15;
|
||||||
shadow-offset-x = -7;
|
shadow-offset-x = -7;
|
||||||
shadow-offset-y = -7;
|
shadow-offset-y = -7;
|
||||||
|
|
|
||||||
|
|
@ -22,29 +22,20 @@ set save_console_history false
|
||||||
set scroll_offset 4
|
set scroll_offset 4
|
||||||
|
|
||||||
#== Mappings
|
#== Mappings
|
||||||
map @ shell $SHELL
|
map gc cd ~/code
|
||||||
|
map gd cd ~/Documents
|
||||||
|
map gw cd ~/Downloads
|
||||||
|
map g. cd ~/.dotfiles
|
||||||
|
map gu cd /mnt/usb
|
||||||
|
|
||||||
# go to
|
map @ shell $SHELL
|
||||||
map gc cd ~/code
|
map dD delete
|
||||||
map gd cd ~/Documents
|
map <c-k> tab_shift 1
|
||||||
map gw cd ~/Downloads
|
map <c-j> tab_shift -1
|
||||||
map g. cd ~/.dotfiles
|
map ee shell gpe enc %s
|
||||||
map gu cd /mnt/usb
|
map ed shell gpe dec %s
|
||||||
|
map sa shell zip -r archive.zip %s
|
||||||
|
map ss shell tar -czvf archive.tar.gz %s
|
||||||
|
map sd shell 7z a archive.7z %s
|
||||||
|
map se shell extract %s
|
||||||
|
|
||||||
# delete
|
|
||||||
map dD delete
|
|
||||||
map dT trash
|
|
||||||
|
|
||||||
# tab
|
|
||||||
map <c-k> tab_shift 1
|
|
||||||
map <c-j> tab_shift -1
|
|
||||||
|
|
||||||
# archive
|
|
||||||
map sa shell zip -r archive.zip %s
|
|
||||||
map ss shell tar -czvf archive.tar.gz %s
|
|
||||||
map sd shell 7z a archive.7z %s
|
|
||||||
map se shell extract %s
|
|
||||||
|
|
||||||
# gpg
|
|
||||||
map ee shell gpe enc %s
|
|
||||||
map ed shell gpe dec %s
|
|
||||||
|
|
|
||||||
|
|
@ -1,21 +1,23 @@
|
||||||
# vim: ft=cfg
|
# vim:ft=cfg
|
||||||
#== Websites
|
|
||||||
ext x?html?, has google-chrome, X, flag f = google-chrome "$@"
|
#== Web
|
||||||
ext x?html?, has firefox, X, flag f = firefox -- "$@"
|
ext x?html?, has google-chrome, X, flag f = google-chrome $@
|
||||||
ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@"
|
ext x?html?, has firefox, X, flag f = firefox -- "$@"
|
||||||
|
|
||||||
|
#== Script
|
||||||
|
ext py = python -- "$1"
|
||||||
|
ext js = node -- "$1"
|
||||||
|
ext sh = bash -- "$1"
|
||||||
|
|
||||||
#== Misc
|
#== Misc
|
||||||
mime ^text, label editor = ${EDITOR} -- "$@"
|
#mime ^text, lable editor = $EDITOR -- "$@"
|
||||||
mime ^text, label pager = "$PAGER" -- "$@"
|
#mime ^text, label pager = $PAGER -- "$@"
|
||||||
|
|
||||||
|
|
||||||
!mime ^text, label editor, ext json|csv|tex|py|rb|js|sh = ${EDITOR} -- "$@"
|
!mime ^text, label editor, ext json|csv|tex|py|rb|js|sh = ${EDITOR} -- "$@"
|
||||||
!mime ^text, label pager, ext json|csv|tex|py|rb|js|sh = "$PAGER" -- "$@"
|
!mime ^text, label pager, ext json|csv|tex|py|rb|js|sh = "$PAGER" -- "$@"
|
||||||
name ^[mM]akefile$ = make
|
name ^[mM]akefile$ = make
|
||||||
|
|
||||||
#== Scripts
|
|
||||||
ext py = python -- "$1"
|
|
||||||
ext rb = ruby -- "$1"
|
|
||||||
ext js = node -- "$1"
|
|
||||||
ext sh = sh -- "$1"
|
|
||||||
|
|
||||||
#== Video/Audio
|
#== Video/Audio
|
||||||
mime ^video, has mpv, X, flag f = mpv -- "$@"
|
mime ^video, has mpv, X, flag f = mpv -- "$@"
|
||||||
|
|
@ -48,7 +50,3 @@ ext zip, has unzip = unzip -l "$1" | less
|
||||||
ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done
|
ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done
|
||||||
ext rar, has unrar = unrar l "$1" | less
|
ext rar, has unrar = unrar l "$1" | less
|
||||||
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
|
ext rar, has unrar = for file in "$@"; do unrar x "$file"; done
|
||||||
|
|
||||||
#== Terminals
|
|
||||||
mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@"
|
|
||||||
mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@"
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
rofi.theme: nten
|
rofi.theme: nten-light
|
||||||
rofi.font: Jetbarains Mono 12
|
rofi.font: Jetbarains Mono 12
|
||||||
rofi.auto-select: false
|
rofi.auto-select: false
|
||||||
rofi.hide-scrollbar: true
|
rofi.hide-scrollbar: true
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,23 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
declare options=("ShutDown\nLogOut\nReboot")
|
declare options=("ShutDown\nLogOut\nReboot")
|
||||||
|
rofitheme="nten-light-dmenu"
|
||||||
|
choice=$(echo -e ${options[@]} | rofi -dmenu -p "Power" -theme $rofitheme)
|
||||||
|
|
||||||
choice=$(echo -e ${options[@]} | rofi -dmenu -p "Power" -theme nten-dmenu)
|
|
||||||
case $choice in
|
case $choice in
|
||||||
"ShutDown")
|
"ShutDown")
|
||||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "ShutDown" -theme nten-dmenu)" in
|
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "ShutDown" -theme $rofitheme)" in
|
||||||
"Yes") exec systemctl poweroff ;;
|
"Yes") exec systemctl poweroff ;;
|
||||||
"no") exec exit 0 ;;
|
"no") exec exit 0 ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"LogOut")
|
"LogOut")
|
||||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "LogOut" -theme nten-dmenu)" in
|
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "LogOut" -theme $rofitheme)" in
|
||||||
"Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;
|
"Yes") exec loginctl terminate-session $XDG_SESSION_ID ;;
|
||||||
"No") exec exit 0 ;;
|
"No") exec exit 0 ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
"Reboot")
|
"Reboot")
|
||||||
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "Reboot" -theme nten-dmenu)" in
|
case "$(echo -e "Yes\nNo" | rofi -dmenu -p "Reboot" -theme $rofitheme)" in
|
||||||
"Yes") exec systemctl reboot ;;
|
"Yes") exec systemctl reboot ;;
|
||||||
"No") exec exit 0 ;;
|
"No") exec exit 0 ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,5 @@
|
||||||
add_newline = false
|
add_newline = false
|
||||||
|
|
||||||
[line_break]
|
|
||||||
disabled = false
|
|
||||||
|
|
||||||
[nodejs]
|
[nodejs]
|
||||||
symbol = "N.JS "
|
symbol = "N.JS "
|
||||||
|
|
||||||
|
|
@ -12,7 +9,15 @@ symbol = "PY "
|
||||||
[elm]
|
[elm]
|
||||||
symbol = "Elm "
|
symbol = "Elm "
|
||||||
|
|
||||||
|
[java]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
|
[package]
|
||||||
|
symbol = "PKG "
|
||||||
|
|
||||||
|
[cmd_duration]
|
||||||
|
disabled = true
|
||||||
|
|
||||||
[directory]
|
[directory]
|
||||||
truncation_length = 3
|
truncation_length = 5
|
||||||
truncate_to_repo = false
|
truncate_to_repo = false
|
||||||
|
|
|
||||||
12
gitconfig
12
gitconfig
|
|
@ -2,10 +2,16 @@
|
||||||
name = Smirnov Alexander
|
name = Smirnov Alexander
|
||||||
email = ss2316544@gmail.com
|
email = ss2316544@gmail.com
|
||||||
|
|
||||||
|
[github]
|
||||||
|
name = Smirnov-O
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
editor = nvim
|
editor = nvim
|
||||||
|
|
||||||
[alias]
|
[alias]
|
||||||
ada = add -A
|
ad = add -A
|
||||||
cmm = commit -m
|
cm = commit -m
|
||||||
br = branch
|
br = branch
|
||||||
|
df = diff
|
||||||
|
dh = diff HEAD
|
||||||
|
l = log --oneline --decorate
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,10 @@ bind -r J resize-pane -D 2
|
||||||
bind -r K resize-pane -U 2
|
bind -r K resize-pane -U 2
|
||||||
bind -r L resize-pane -R 2
|
bind -r L resize-pane -R 2
|
||||||
|
|
||||||
|
## Alternative window move
|
||||||
|
bind-key i swap-window -t -1
|
||||||
|
bind-key o swap-window -t +1
|
||||||
|
|
||||||
## Alternative keys for create window
|
## Alternative keys for create window
|
||||||
bind _ split-window -v
|
bind _ split-window -v
|
||||||
bind - split-window -h
|
bind - split-window -h
|
||||||
|
|
@ -52,7 +56,7 @@ set -g status-right ' #{?client_prefix,*,} #S '
|
||||||
set -g status-left ' '
|
set -g status-left ' '
|
||||||
|
|
||||||
## Colors
|
## Colors
|
||||||
set -g status-bg black
|
set -g status-bg default
|
||||||
set -g status-fg white
|
set -g status-fg white
|
||||||
set -g status-style fg=colour110
|
set -g status-style fg=colour110
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
{
|
{
|
||||||
"editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace'",
|
"editor.fontFamily": "'Jetbrains Mono', 'Droid Sans Mono', 'monospace'",
|
||||||
"workbench.colorTheme": "Brackets Light Pro",
|
"workbench.colorTheme": "Brackets Light Pro",
|
||||||
"workbench.iconTheme": "vs-minimal",
|
"workbench.panel.defaultLocation": "right",
|
||||||
"workbench.sideBar.location": "right",
|
"workbench.sideBar.location": "right",
|
||||||
"editor.wordWrap": "on",
|
"editor.wordWrap": "off",
|
||||||
"editor.fontSize": 14,
|
"editor.fontSize": 14,
|
||||||
"editor.mouseWheelZoom": true,
|
"editor.mouseWheelZoom": true,
|
||||||
"editor.formatOnPaste": false,
|
"editor.formatOnPaste": false,
|
||||||
"editor.formatOnSave": false,
|
"editor.formatOnSave": true,
|
||||||
"editor.minimap.enabled": false,
|
"editor.minimap.enabled": false,
|
||||||
"editor.tabCompletion": "on",
|
"editor.tabCompletion": "on",
|
||||||
"editor.tabSize": 2,
|
"editor.tabSize": 2,
|
||||||
|
|
@ -20,18 +20,21 @@
|
||||||
"git.confirmSync": false,
|
"git.confirmSync": false,
|
||||||
"git.enableSmartCommit": true,
|
"git.enableSmartCommit": true,
|
||||||
|
|
||||||
"liveSassCompile.settings.formats": [{"format": "expanded", "extensionName": ".css", "savePath": null}],
|
"prettier.semi": false,
|
||||||
"liveSassCompile.settings.generateMap": false,
|
|
||||||
|
"tabnine.experimentalAutoImports": true,
|
||||||
|
|
||||||
|
|
||||||
"emmet.includeLanguages": {
|
"emmet.includeLanguages": {
|
||||||
"javascript": "javascriptreact"
|
"javascript": "javascriptreact"
|
||||||
},
|
},
|
||||||
"[javascript]": {
|
"[javascript]": {
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"editor.tabSize": 2
|
|
||||||
},
|
},
|
||||||
"[javascriptreact]": {
|
"[javascriptreact]":{
|
||||||
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
||||||
"editor.tabSize": 2
|
},
|
||||||
}
|
"workbench.startupEditor": "newUntitledFile",
|
||||||
}
|
"editor.suggestSelection": "first",
|
||||||
|
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
|
||||||
|
}
|
||||||
|
|
|
||||||
17
zshrc
17
zshrc
|
|
@ -1,22 +1,31 @@
|
||||||
export PATH="$HOME/bin:$HOME/.local/bin:$PATH"
|
export PATH="$HOME/bin:$HOME/.local/bin:$HOME/.n/bin:$HOME/.golang/bin:$HOME/go/bin:$PATH"
|
||||||
|
export GOPATH="$HOME/go"
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
||||||
### StartShip
|
### StartShip
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
|
### FzF
|
||||||
|
export FZF_DEFAULT_COMMAND="rg --files --ignore-vcs"
|
||||||
|
|
||||||
### Oh my zsh
|
### Oh my zsh
|
||||||
export OMH="$HOME/.oh-my-zsh"
|
export OMH="$HOME/.oh-my-zsh"
|
||||||
#ZSH_THEME="simple"
|
#ZSH_THEME="simple"
|
||||||
DISABLE_AUTO_TITLE="true"
|
DISABLE_AUTO_TITLE="true"
|
||||||
plugins=(npm)
|
plugins=(docker npm)
|
||||||
source $OMH/oh-my-zsh.sh
|
source $OMH/oh-my-zsh.sh
|
||||||
|
|
||||||
### Aliases
|
### Aliases
|
||||||
|
source ~/.aliases.sh
|
||||||
|
|
||||||
|
|
||||||
alias cls="clear"
|
alias cls="clear"
|
||||||
alias mkdir="mkdir -p"
|
alias mkdir="mkdir -p"
|
||||||
alias cp="cp -r"
|
alias cp="cp -r"
|
||||||
alias vim="nvim"
|
alias vim="nvim" vi="vim"
|
||||||
alias vi="vim"
|
alias e="$EDITOR"
|
||||||
alias tmux="tmux -2"
|
alias tmux="tmux -2"
|
||||||
alias :q="exit"
|
alias :q="exit"
|
||||||
alias ...="cd ../.."
|
alias ...="cd ../.."
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue