mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update nvim
This commit is contained in:
parent
102aa36798
commit
13c6216796
6 changed files with 19 additions and 15 deletions
5
bin/ipp
5
bin/ipp
|
|
@ -1,5 +1,2 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
if [ -f '/usr/bin/curl' ]
|
curl ipinfo.io/ip
|
||||||
then curl ipinfo.io/ip
|
|
||||||
else wget -qO- ipinfo.io/ip
|
|
||||||
fi
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
window:
|
window:
|
||||||
title: Alacritty
|
title: Terminal
|
||||||
class:
|
class:
|
||||||
instance: Alacritty
|
instance: Alacritty
|
||||||
general: Alacritty
|
general: Alacritty
|
||||||
|
|
@ -7,7 +7,6 @@ window:
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
|
|
||||||
|
|
||||||
font:
|
font:
|
||||||
antialias: lcd
|
antialias: lcd
|
||||||
hinting: true
|
hinting: true
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ set $mod Mod4
|
||||||
set $alt Mod1
|
set $alt Mod1
|
||||||
floating_modifier $mod
|
floating_modifier $mod
|
||||||
|
|
||||||
# Font
|
# Set font
|
||||||
font monospace 10
|
font monospace 10
|
||||||
font pango:JetBrains Mono 10
|
font pango:JetBrains Mono 10
|
||||||
|
|
||||||
|
|
@ -26,7 +26,7 @@ exec --no-startup-id exec nitrogen --restore
|
||||||
exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
exec --no-startup-id exec setxkbmap "us,ua" ",winkeys" "grp:alt_shift_toggle" -option "ctrl:nocaps"
|
||||||
exec --no-startup-id exec org.telegram.desktop
|
exec --no-startup-id exec org.telegram.desktop
|
||||||
exec --no-startup-id exec lxsession
|
exec --no-startup-id exec lxsession
|
||||||
exec --no-startup-id exec xautolock -time 3 -locker "betterlockscreen --off 180 -t \"Computer is lockerd\" -l"
|
exec_always --no-startup-id exec $HOME/.script/autolock
|
||||||
exec_always --no-startup-id exec $HOME/.config/i3/bar.sh
|
exec_always --no-startup-id exec $HOME/.config/i3/bar.sh
|
||||||
exec --no-startup-id exec discord
|
exec --no-startup-id exec discord
|
||||||
#exec --no-startup-id exec conky
|
#exec --no-startup-id exec conky
|
||||||
|
|
@ -36,6 +36,7 @@ exec --no-startup-id exec discord
|
||||||
|
|
||||||
# Kill window
|
# Kill window
|
||||||
bindsym $mod+q kill
|
bindsym $mod+q kill
|
||||||
|
bindsym --release $mod+Shift+q exec xkill
|
||||||
|
|
||||||
# Restart i3wm
|
# Restart i3wm
|
||||||
bindsym $mod+Control+r restart
|
bindsym $mod+Control+r restart
|
||||||
|
|
|
||||||
|
|
@ -9,10 +9,10 @@ call plug#begin('~/.vim/plugged')
|
||||||
Plug 'itchyny/lightline.vim' " Status line
|
Plug 'itchyny/lightline.vim' " Status line
|
||||||
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim
|
Plug 'vimwiki/vimwiki', {'on': 'VimwikiIndex'} " Notes manager in (n)vim
|
||||||
|
|
||||||
" Color sheme
|
" Color scheme
|
||||||
Plug 'Smirnov-O/nten16.vim'
|
Plug 'Smirnov-O/nten16.vim'
|
||||||
|
|
||||||
" Project/file nafigation
|
" Project/file navigation
|
||||||
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
|
Plug 'scrooloose/nerdtree', {'on': 'NERDTreeToggle'}
|
||||||
Plug 'ryanoasis/vim-devicons', {'on': 'NERDTreeToggle'}
|
Plug 'ryanoasis/vim-devicons', {'on': 'NERDTreeToggle'}
|
||||||
Plug 'preservim/tagbar', {'on': 'TagbarToggle'}
|
Plug 'preservim/tagbar', {'on': 'TagbarToggle'}
|
||||||
|
|
@ -32,6 +32,7 @@ call plug#begin('~/.vim/plugged')
|
||||||
Plug 'mattn/emmet-vim', {'on': 'Emmet'}
|
Plug 'mattn/emmet-vim', {'on': 'Emmet'}
|
||||||
Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
|
Plug 'cakebaker/scss-syntax.vim', {'for': 'scss'}
|
||||||
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
Plug 'PotatoesMaster/i3-vim-syntax', {'for': 'i3'}
|
||||||
|
Plug 'fatih/vim-go', {'for': 'go'}
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" Colors
|
" Colors
|
||||||
|
|
@ -40,7 +41,7 @@ set background=dark
|
||||||
colo nten16
|
colo nten16
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
|
|
||||||
" Syntax & line numbars
|
" Syntax & line numbers
|
||||||
syntax on
|
syntax on
|
||||||
set number
|
set number
|
||||||
set relativenumber
|
set relativenumber
|
||||||
|
|
@ -88,6 +89,10 @@ set smartcase
|
||||||
set hidden
|
set hidden
|
||||||
set smartindent
|
set smartindent
|
||||||
|
|
||||||
|
" Spell
|
||||||
|
set spell
|
||||||
|
set spelllang=en_us
|
||||||
|
|
||||||
" Disable sound
|
" Disable sound
|
||||||
set visualbell t_vb=
|
set visualbell t_vb=
|
||||||
|
|
||||||
|
|
@ -178,6 +183,9 @@ let g:floaterm_width = 0.6
|
||||||
let g:floaterm_autoclose = 2
|
let g:floaterm_autoclose = 2
|
||||||
nmap <A-t> :FloatermNew<CR>
|
nmap <A-t> :FloatermNew<CR>
|
||||||
|
|
||||||
|
" Go
|
||||||
|
let g:go_template_autocreate = 0
|
||||||
|
|
||||||
" == Maping
|
" == Maping
|
||||||
let mapleader=","
|
let mapleader=","
|
||||||
|
|
||||||
|
|
@ -212,6 +220,3 @@ noremap <A-9> :tabn 9<CR>
|
||||||
" Buffer(s)
|
" Buffer(s)
|
||||||
noremap <leader>p :bnext<CR>
|
noremap <leader>p :bnext<CR>
|
||||||
noremap <leader>o :bprev<CR>
|
noremap <leader>o :bprev<CR>
|
||||||
|
|
||||||
" Autostart
|
|
||||||
"autocmd VimEnter * execute "source ~/.config/nvim/init.vim"
|
|
||||||
|
|
|
||||||
2
script/autolock
Executable file
2
script/autolock
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
xautolock -time 3 -locker "betterlockscreen --off 180 -t 'Computer is lokerd' -l"
|
||||||
|
|
@ -4,7 +4,7 @@ Lock
|
||||||
Logout
|
Logout
|
||||||
Reboot")
|
Reboot")
|
||||||
|
|
||||||
choice=$(echo -e "${options[@]}" | dmenu -p "Power" $@)
|
choice=$(echo -e "${options[@]}"|dmenu -p "Power" $@)
|
||||||
case "$choice" in
|
case "$choice" in
|
||||||
"ShutDown")
|
"ShutDown")
|
||||||
case "$(echo -e "Yes\nNo"|dmenu -p "ShutDown" $@)" in
|
case "$(echo -e "Yes\nNo"|dmenu -p "ShutDown" $@)" in
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue