From acba97572069849cd4ad88ca696b1f9ff5024ee8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sat, 7 Nov 2020 20:26:35 +0100 Subject: [PATCH] Updated dotfiles MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .config/nvim/init.vim | 16 ++++++++++------ .config/nvim/plugged/bash-support.vim | 1 + .gitignore | 12 ++++++++++++ .gkrellm2/user-config | 27 ++++++++++++++++++++------- .local/bin/dwmstatusbar | 2 +- .local/bin/postman | 1 + .zshrc | 2 +- 7 files changed, 46 insertions(+), 15 deletions(-) create mode 160000 .config/nvim/plugged/bash-support.vim create mode 120000 .local/bin/postman diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 79b9719..6d4539b 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -9,25 +9,29 @@ set laststatus=2 set shiftwidth=4 set softtabstop=4 set tabstop=4 +set splitbelow splitright au BufWritePre * let &bex = '@' . strftime("%F.%H:%M") - +"" " plugins call plug#begin('~/.config/nvim/plugged') Plug 'preservim/nerdtree' Plug 'nmante/vim-latex-live-preview' Plug 'lervag/vimtex' Plug 'junegunn/goyo.vim' -Plug 'jceb/vim-orgmode' Plug 'prettier/vim-prettier', { 'do': 'npm install --force' } Plug 'iamcco/markdown-preview.nvim', { 'do': 'npm install --force' } -" Autocomplete +" Bash +Plug 'vim-scripts/bash-support.vim' +" Complete Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } Plug 'vim-syntastic/syntastic' Plug 'roxma/nvim-yarp' Plug 'roxma/vim-hug-neovim-rpc' " Ruby Plug 'takkii/Bignyanco' +Plug 'deoplete-plugins/deoplete-jedi' Plug 'vim-ruby/vim-ruby' +Plug 'tpope/vim-rails' " " Problem with vim-prettier " git checkout -b test origin/feature/issue-232-add-support-for-prettier-2.x; @@ -40,7 +44,7 @@ call plug#end() let g:deoplete#enable_at_startup = 1 -" Pass a dictionary to set multiple options +"Pass a dictionary to set multiple options call deoplete#custom#option({ \ 'auto_complete_delay': 200, \ 'smart_case': v:true, @@ -115,8 +119,8 @@ hi CursorLine cterm=NONE term=NONE ctermbg=NONE guibg=NONE hi CursorLine ctermbg=235 " map -nnoremap NN :set nu! -nnoremap nn :set nu +nnoremap ,nn :set nu! +nnoremap ,NN :set nu nnoremap S :%s//g nnoremap ee :!mupdf $(echo % \| sed 's/tex$/pdf/') & disown map :NERDTreeToggle diff --git a/.config/nvim/plugged/bash-support.vim b/.config/nvim/plugged/bash-support.vim new file mode 160000 index 0000000..309d6fe --- /dev/null +++ b/.config/nvim/plugged/bash-support.vim @@ -0,0 +1 @@ +Subproject commit 309d6fe45859f2d30d0e8fe8016ca69f03b9f7d6 diff --git a/.gitignore b/.gitignore index c47dab2..d090016 100644 --- a/.gitignore +++ b/.gitignore @@ -101,3 +101,15 @@ www .local/bin/flask .local/include/ .config/neofetch/ +.vimspector.log +.tig_history +.tooling/ +.sts4/ +.solargraph/ +.screenlayout/ +.pylint.d/ +.nvidia-settings-rc +.m2/ +.config/mpv/watch_later/ +.gem/ +.config/Postman/ diff --git a/.gkrellm2/user-config b/.gkrellm2/user-config index a950242..dee493b 100644 --- a/.gkrellm2/user-config +++ b/.gkrellm2/user-config @@ -14,7 +14,7 @@ below 0 track_gtk_theme_name 0 default_track_theme "Default" save_position 1 -chart_width 95 +chart_width 105 update_HZ 10 allow_multiple_instances 0 float_factor 1000 @@ -71,9 +71,10 @@ proc sensor_mode 0 proc text_format \w88\a$p\f procs\n\e$u\f users proc chart_config 40 100 0 0 0 0 : 1 0 0 0 500 : 0 0 0 0 500 disk assign_method 2 -disk device Disk 0 0 0 1 1 0 0 Disk -disk chart_config Disk 40 15000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 -disk device sda 0 0 45 0 1 -1 0 sda +disk device Disk 0 0 0 0 1 0 0 Disk +disk chart_config Disk 40 20000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 +disk device sda 0 0 45 1 1 -1 0 sda +disk chart_config sda 40 10000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 disk device sda1 0 0 45 0 1 1 0 sda1 disk device sda2 0 0 45 0 1 2 0 sda2 disk device sda3 0 0 45 0 1 3 0 sda3 @@ -83,12 +84,24 @@ disk device dm-1 0 0 556 0 1 -1 0 dm-1 disk text_format $T inet text_format all \t$a\f $l\N$A\f $L inet update_interval all 1 +net enables br-b27b19007b8e 0 1 0 +net chart_config br-b27b19007b8e 40 5 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 +net enables docker0 0 1 0 +net chart_config docker0 40 5 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 net enables eth0 1 1 0 -net chart_config eth0 40 300000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 +net chart_config eth0 40 2000000 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 net enables lo 0 1 0 +net enables veth1ee909d 0 1 0 +net chart_config veth1ee909d 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 +net enables veth34ebeda 0 1 0 +net chart_config veth34ebeda 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 +net enables veth665662f 0 1 0 +net chart_config veth665662f 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 +net enables vethc201b27 0 1 0 +net chart_config vethc201b27 40 100 0 1 0 0 : 0 0 0 0 500 : 0 0 0 0 500 net enables wlan0 0 1 0 -net timer_enabled 1 -net timer_seconds 1 +net timer_enabled 0 +net timer_seconds 0 net timer_iface none net timer_on net timer_off diff --git a/.local/bin/dwmstatusbar b/.local/bin/dwmstatusbar index 5c678a2..772d4c5 100755 --- a/.local/bin/dwmstatusbar +++ b/.local/bin/dwmstatusbar @@ -58,7 +58,7 @@ print_battery() { print_mail(){ unread="$(find "${XDG_DATA_HOME:-$HOME/.local/share}"/mail/*/[Ii][Nn][Bb][Oo][Xx]/new/* -type f | wc -l 2>/dev/null)" icon="$(cat "/tmp/imapsyncicon_$USER" 2>/dev/null)" - [ "$unread" = "0" ] && [ "$icon" = "" ] || echo "📬 $unread$icon" + [ "$unread" = "1" ] && [ "$icon" = "" ] || echo "📬 $unread$icon" } print_cpu() { diff --git a/.local/bin/postman b/.local/bin/postman new file mode 120000 index 0000000..09148ee --- /dev/null +++ b/.local/bin/postman @@ -0,0 +1 @@ +/opt/postman/Postman \ No newline at end of file diff --git a/.zshrc b/.zshrc index 7f866e6..a2fadc5 100644 --- a/.zshrc +++ b/.zshrc @@ -42,7 +42,7 @@ export CCACHE_DIR="/usr/ccache" export LC_ALL="en_US.UTF-8" export LANG=en_US.UTF-8 export LC_ALL=en_US.UTF-8 -export BROWSER=/usr/bin/firefox-bin +export BROWSER=/home/yorune/.local/bin/browser-x export FZF_DEFAULT_OPTS='--height 40% --layout=reverse' export EIX_LIMIT_COMPACT=0 export TERMINAL="st"