From 5bb59c4b602e1e124ac1aabcfee5d0f07887172a Mon Sep 17 00:00:00 2001 From: aj Date: Sun, 10 Feb 2019 11:29:26 +0000 Subject: [PATCH] adding vim --- i3/config | 2 +- polybar/config | 3 ++- vim/.vimrc | 8 ++++++++ vim/plugins.vim | 11 +++++++++++ 4 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 vim/.vimrc create mode 100644 vim/plugins.vim diff --git a/i3/config b/i3/config index fa1d8ca..e107f0b 100644 --- a/i3/config +++ b/i3/config @@ -167,7 +167,7 @@ bindsym $mod+Shift+c reload # restart i3 inplace (preserves your layout/session, can be used to upgrade i3) bindsym $mod+Shift+r restart # exit i3 (logs you out of your X session) -bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'" +bindsym $mod+Shift+e exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'mate-session-save --logout'" # resize window (you can also use the mouse for that) mode "resize" { diff --git a/polybar/config b/polybar/config index 0da58ad..9a110ef 100644 --- a/polybar/config +++ b/polybar/config @@ -85,7 +85,7 @@ scroll-down = i3wm-wsprev [module/public-ip] type = custom/script exec = wget -qO - icanhazip.com -interval = 60 +interval = 600 label = %output% format-background = ${xrdb:color5:#222} @@ -344,6 +344,7 @@ format-padding = 2 [module/vpn] type = custom/script exec = pgrep openvpn >/dev/null && printf "up\n" || printf "down\n" +exec-if = pgrep -x openvpn interval = 5 label = %output% ;format-underline = #268bd2 diff --git a/vim/.vimrc b/vim/.vimrc new file mode 100644 index 0000000..b9cbd9b --- /dev/null +++ b/vim/.vimrc @@ -0,0 +1,8 @@ +set nocompatible " be iMproved, required +filetype off " required + +so ~/.vim/plugins.vim + +map :NERDTreeToggle +set laststatus=2 +set noshowmode diff --git a/vim/plugins.vim b/vim/plugins.vim new file mode 100644 index 0000000..58b1fb4 --- /dev/null +++ b/vim/plugins.vim @@ -0,0 +1,11 @@ +set rtp+=~/.vim/bundle/Vundle.vim + +call vundle#begin() + +Plugin 'scrooloose/nerdtree' +Plugin 'itchyny/lightline.vim' +Plugin 'airblade/vim-gitgutter' + +call vundle#end() + +filetype plugin indent on