15 files changed,
232 insertions(+),
123 deletions(-)
Author:
Smirnov Alexandr
ss2316544@gmail.com
Committed at:
2021-03-29 19:16:45 +0300
Parent:
5cc8619
jump to
M
config/bspwm/polybar/polybar
··· 1 1 # vim: ft=dosini 2 - 3 2 [settings] 4 3 enable-ipc = true 5 4 format-padding = 1 6 -#screenchange-reload = true 7 -#pseudo-transparency = true 8 5 9 6 [colors] 10 7 background = #262A2B 11 -foreground = #DFDFDF 8 +foreground = #cfd1dd 12 9 secondary = #008DCD 13 10 alert = #FF6C6B 14 11 ··· 21 18 wm-restack = bspwm 22 19 font-0 = Iosevka Nerd Font:style=Medium:size=8;3 23 20 font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 24 -modules-left = bspwm windowname 25 -modules-center = time date weather 26 -modules-right = keyboard pulseaudio archupd wifi-signal 21 +modules-left = bspwm archupd 22 +modules-right = pulseaudio keyboard time wifi-signal 27 23 tray-position = right 28 24 tray-padding = 0 29 25 30 -[bar/min] 31 -width = 100% 32 -height = 24 33 -fixed-center = true 34 -background = ${colors.background} 35 -foreground = ${colors.foreground} 36 -wm-restack = bspwm 37 -font-0 = Iosevka Nerd Font:style=Medium:size=8;3 38 -font-1 = FontAwesome5Free:style=Solid:size=7.5;2.5 39 -modules-left = bspwm 40 -modules-right = keyboard pulseaudio archupd time wifi-signal 41 -tray-position = right 42 - 43 26 [module/bspwm] 44 27 type = internal/bspwm 45 28 pin-workspaces = true ··· 67 50 label-volume-foreground = ${root.foreground} 68 51 label-muted = 69 52 ramp-volume-0 = 70 - 71 -[module/weather] 72 -type = custom/script 73 -exec = python3 ~/.config/bspwm/polybar/scripts/weather.py 74 -interval = 60 75 53 76 54 [module/archupd] 77 55 type = custom/script ··· 91 69 blacklist-0 = num lock 92 70 blacklist-1 = scroll lock 93 71 blacklist-2= caps lock 94 - 95 -[module/cpu] 96 -type = internal/cpu 97 -format-prefix = " " 98 -interval = 2 99 - 100 -[module/memory] 101 -type = internal/memory 102 -interval = 2 103 -label = %percentage_used%% 104 -format-prefix = " " 105 - 106 -[module/windowname] 107 -type = internal/xwindow 108 -label = %title% 109 -label-maxlen = 50 110 72 111 73 [module/date] 112 74 type = internal/date
M
config/bspwm/sxhkd
··· 3 3 4 4 ## == USER keys 5 5 super + {_,shift} Return 6 - {kitty, rofi -show drun -theme ntenV2} 6 + {kitty, rofi -show drun} 7 7 8 8 super + shift + {w, e, f, c, s, t, q} 9 9 {google-chrome-stable, \ ··· 20 20 super + {equal, minus, shift+minus} 21 21 amixer sset Master {2%+,2%-,toggle} 22 22 23 -super + {Escape, ctrl+i} 24 - {.config/rofi/script/powermenu.sh, \ 25 - .config/rofi/script/passmenu.sh } 23 +super + Escape 24 + .config/rofi/script/powermenu.sh 26 25 27 26 ### == BSPWM keys 28 27 super + q
M
config/nvim/init.vim
··· 3 3 Plug 'sheerun/vim-polyglot' 4 4 Plug 'jiangmiao/auto-pairs' 5 5 Plug 'scrooloose/nerdtree' 6 + Plug 'w0rp/ale' 6 7 call plug#end() 7 8 8 9 "== General ··· 67 68 68 69 69 70 "== Aliases 70 -command! VTerm :vs | res 40 | set nonu nornu | startinsert | wincmd L | term 71 -command! Term :sp | res 40 | set nonu nornu | startinsert | wincmd J | term 71 +command! Term :vs|wincmd L|vert res 50|set nonu nornu|startinsert|term 72 72 command! Prettier :silent !prettier % --write 73 73 command! ESlint :!eslint % 74 74 command! Black :silent !black % ··· 84 84 autocmd FileType javascript,javascriptreact,yaml setlocal et sw=2 ts=2 85 85 86 86 87 +"== ALE 88 +let g:ale_disable_lsp = 1 89 +let g:ale_echo_msg_format = '%severity%: %s' 90 +let g:ale_linters = { 91 +\ 'javascript': ['eslint'], 92 +\ 'python': ['flake8'], 93 +\ 'go': ['golint'] 94 +\ } 95 + 96 + 87 97 "== NERDTree 88 98 let g:NERDTreeWinPos = "right" 89 99 let g:NERDTreeMinimalUI = 1 ··· 95 105 96 106 " NerdTree 97 107 nnoremap <leader>e :NERDTreeToggle<CR> 108 + 109 +" Terminal 110 +tnoremap <Esc> <C-\><C-n> 111 +nnoremap <leader>t :Term<CR> 98 112 99 113 " Alternative keys 100 114 nnoremap <C-s> :w<CR> ··· 133 147 " Working with system clipboard 134 148 noremap <leader>c "+y<CR> 135 149 noremap <leader>v "+p<CR> 136 - 137 - 138 -" Terminal 139 -tnoremap <Esc> <C-\><C-n>
A
config/ranger/rifle.conf
··· 1 +# vim: ft=cfg 2 +#== Websites 3 +ext x?html?, has firefox, X, flag f = firefox -- "$@" 4 +ext x?html?, has qutebrowser, X, flag f = qutebrowser -- "$@" 5 +ext x?html?, has chromium-browser, X, flag f = chromium-browser -- "$@" 6 +ext x?html?, has chromium, X, flag f = chromium -- "$@" 7 +ext x?html?, has google-chrome, X, flag f = google-chrome -- "$@" 8 +ext x?html?, has w3m, terminal = w3m "$@" 9 + 10 +#== Misc 11 +mime ^text, label editor = ${EDITOR} -- "$@" 12 +mime ^text, label pager = "$PAGER" -- "$@" 13 +!mime ^text, label editor, ext json|csv|tex|py|rb|js|sh = ${EDITOR} -- "$@" 14 +!mime ^text, label pager, ext json|csv|tex|py|rb|js|sh = "$PAGER" -- "$@" 15 +name ^[mM]akefile$ = make 16 + 17 +#== Scripts 18 +ext py = python -- "$1" 19 +ext rb = ruby -- "$1" 20 +ext js = node -- "$1" 21 +ext sh = sh -- "$1" 22 + 23 +#== Video/Audio 24 +mime ^video, has mpv, X, flag f = mpv -- "$@" 25 +mime ^video, has mpv, X, flag f = mpv --fs -- "$@" 26 +mime ^video, has mplayer2, X, flag f = mplayer2 -- "$@" 27 +mime ^video, has mplayer2, X, flag f = mplayer2 -fs -- "$@" 28 +mime ^video, has mplayer, X, flag f = mplayer -- "$@" 29 +mime ^video, has mplayer, X, flag f = mplayer -fs -- "$@" 30 +mime ^video|audio, has vlc, X, flag f = vlc -- "$@" 31 + 32 +#== Documents 33 +ext pptx?|od[dfgpst]|docx?|sxc|xlsx?|xlt|xlw|gnm|gnumeric, has libreoffice, X, flag f = libreoffice "$@" 34 +ext pdf, has zathura, X, flag f = zathura -- "$@" 35 +ext djvu, has zathura, X, flag f = zathura -- "$@" 36 +ext epub, has zathura, X, flag f = zathura -- "$@" 37 + 38 +#== Images 39 +mime ^image/svg, has inkscape, X, flag f = inkscape -- "$@" 40 +mime ^image, has feh, X, flag f = feh -- "$@" 41 +mime ^image, has ristretto, X, flag f = ristretto "$@" 42 +mime ^image, has gimp, X, flag f = gimp -- "$@" 43 +ext xcf, X, flag f = gimp -- "$@" 44 + 45 +#== Archives 46 +ext 7z, has 7z = 7z -p l "$@" | "$PAGER" 47 +ext ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --list --each -- "$@" | "$PAGER" 48 +ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --list --each -- "$@" | "$PAGER" 49 +ext 7z|ace|ar|arc|bz2?|cab|cpio|cpt|deb|dgc|dmg|gz, has atool = atool --extract --each -- "$@" 50 +ext iso|jar|msi|pkg|rar|shar|tar|tgz|xar|xpi|xz|zip, has atool = atool --extract --each -- "$@" 51 +ext tar|gz|bz2|xz, has tar = tar vvtf "$1" | "$PAGER" 52 +ext tar|gz|bz2|xz, has tar = for file in "$@"; do tar vvxf "$file"; done 53 +ext bz2, has bzip2 = for file in "$@"; do bzip2 -dk "$file"; done 54 +ext zip, has unzip = unzip -l "$1" | less 55 +ext zip, has unzip = for file in "$@"; do unzip -d "${file%.*}" "$file"; done 56 +ext rar, has unrar = unrar l "$1" | less 57 +ext rar, has unrar = for file in "$@"; do unrar x "$file"; done 58 + 59 +#== Fonts 60 +mime ^font, has fontforge, X, flag f = fontforge "$@" 61 + 62 +#== Terminals 63 +mime ^ranger/x-terminal-emulator, has kitty = kitty -- "$@" 64 +mime ^ranger/x-terminal-emulator, has alacritty = alacritty -e "$@" 65 + 66 +#== Misc 67 +label wallpaper, number 11, mime ^image, has feh, X = feh --bg-scale "$1" 68 +label wallpaper, number 12, mime ^image, has feh, X = feh --bg-tile "$1" 69 +label wallpaper, number 13, mime ^image, has feh, X = feh --bg-center "$1" 70 +label wallpaper, number 14, mime ^image, has feh, X = feh --bg-fill "$1" 71 + 72 +#== Generic file openers 73 +label open, has xdg-open = xdg-open -- "$@" 74 +label open, has open = open -- "$@" 75 + 76 + !mime ^text, !ext json|csv|tex|py|rb|js|sh = ask 77 +label editor, !mime ^text, !ext json|csv|tex|py|rb|js|sh = ${EDITOR} -- "$@" 78 +label pager, !mime ^text, !ext json|csv|tex|py|rb|js|sh = "$PAGER" -- "$@" 79 +mime application/x-executable = "$1" 80 +label trash, has trash-put = trash-put -- "$@" 81 +label trash = mkdir -p -- ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash; mv -- "$@" ${XDG_DATA_DIR:-$HOME/.ranger}/ranger-trash
A
config/rofi/themes/nten.rasi
··· 1 +configuration { 2 + show-icons: true; 3 + display-drun: ""; 4 + drun-display-format: "{name}"; 5 + disable-history: false; 6 + hide-scrollbar: true; 7 + sidebar-mode: true; 8 +} 9 +* { 10 + bg: #262A2b; 11 + fg: #cfd1dd; 12 + ac: #008dcd; 13 + background-color: @bg; 14 + text-color: @fg; 15 +} 16 + 17 +window { 18 + width: 40%; 19 +} 20 + 21 +prompt { 22 + enabled: true; 23 + padding: 0.3% 1% 0% -0.5%; 24 + margin: 0 0 0 0; 25 + background-color: @bg; 26 + text-color: @fg; 27 + font: "JetBrainsMono Nerd Font 12"; 28 +} 29 + 30 +entry { 31 + background-color: @bg; 32 + text-color: @fg; 33 + placeholder-color: @fg; 34 + expand: true; 35 + horizontal-align: 0; 36 + placeholder: "Type to search"; 37 + padding: 0.1% 0% 0% 0%; 38 + margin: 0.6% 0 0 0; 39 + blink: true; 40 +} 41 + 42 +inputbar { 43 + children: [ prompt, entry ]; 44 + background-color: @bg; 45 + text-color: @bg; 46 + expand: false; 47 + border: 0% 0% 0% 0%; 48 + border-radius: 0px; 49 + border-color: @ac; 50 + margin: 0% 0% 0% 0%; 51 + padding: 1.5%; 52 +} 53 + 54 +listview { 55 + background-color: @al; 56 + padding: 10px; 57 + columns: 4; 58 + lines: 3; 59 + spacing: 0%; 60 + cycle: false; 61 + dynamic: true; 62 + layout: vertical; 63 +} 64 + 65 +mainbox { 66 + background-color: @bg; 67 + border: 0% 0% 0% 0%; 68 + border-radius: 0% 0% 0% 0%; 69 + border-color: @bg; 70 + children: [ inputbar, listview ]; 71 + spacing: 0%; 72 + padding: 1%; 73 +} 74 + 75 +element { 76 + background-color: @al; 77 + text-color: @fg; 78 + orientation: vertical; 79 + border-radius: 0%; 80 + padding: 2% 0% 2% 0%; 81 +} 82 + 83 +element-icon { 84 + size: 49px; 85 + border: 0px; 86 +} 87 + 88 +element-text { 89 + expand: true; 90 + horizontal-align: 0.5; 91 + vertical-align: 0.5; 92 + margin: 0.5% 0.5% -0.5% 0.5%; 93 +} 94 + 95 +element selected { 96 + background-color: @ac; 97 + text-color: @bg; 98 +}
D
config/rofi/themes/ntenV2.rasi
··· 1 -configuration { 2 - width: 25; 3 - lines: 13; 4 - columns: 2; 5 - font: "RobotoCondensed 12"; 6 - bw: 2; 7 - location: 1; 8 - padding: 3; 9 - yoffset: 27; 10 - xoffset: 3; 11 - show-icons: true; 12 - icon-theme: "Paper"; 13 - drun-display-format: "{name}"; 14 - case-sensitive: false; 15 - cycle: false; 16 - auto-select: false; 17 - line-padding: 6; 18 - separator-style: "solid"; 19 - hide-scrollbar: true; 20 - color-normal: "#262A2B,#abb2bf,#262A2B,#008DCD,#262A2B"; 21 - color-window: "#262A2B,#1F2324,#58676C"; 22 -}