Last active
September 28, 2019 05:45
-
-
Save dmadisetti/f04400183969ad61d4279acbb1258d1f to your computer and use it in GitHub Desktop.
.files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" Some plugins for workflow. | |
Plugin 'NLKNguyen/papercolor-theme' | |
Plugin 'powerline/powerline-fonts' | |
Plugin 'vim-airline/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
Plugin 'edkolev/tmuxline.vim' | |
Plugin 'ctrlp/ctrlp.vim' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'gabrielelana/vim-markdown' | |
Plugin 'lervag/vimtex' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" Plugin Tweaks | |
" | |
" Airline | |
let g:airline_powerline_fonts = 1 | |
" Custom airline_symbol (It's breaking for some reason). | |
" ro=⊝, ws=☲, lnr=☰, mlnr=㏑, br=ᚠ, nx=Ɇ, crypt=🔒 | |
if !exists('g:airline_symbols') | |
let g:airline_symbols = {} | |
endif | |
let g:airline_symbols.linenr = ':' | |
let g:airline_symbols.whitespace = '' | |
let g:airline_right_sep = '' | |
let g:airline#extensions#tmuxline#enabled = 0 | |
let g:airline_theme='base16_ashes' | |
" NERDTree | |
let g:WebDevIconsUnicodeDecorateFolderNodes=1 | |
let g:NERDTreeDirArrowExpandable='+' | |
let g:NERDTreeDirArrowCollapsible='-' | |
nmap <C-x> :NERDTreeToggle<CR> | |
" ctrlp | |
let g:ctrlp_show_hidden = 1 | |
" Vimtex | |
let g:vimtex_latexmk_build_dir = '.vimtex' | |
" General styling | |
syntax on | |
set guifont=RobotoMono\ Nerd\ Font\ Medium:h15 | |
set t_Co=256 " This is may or may not needed. | |
set background=dark | |
colorscheme PaperColor | |
set number | |
set laststatus=2 | |
set tabstop=2 " The width of a TAB is set to 4. | |
" Still it is a \t. It is just that | |
" Vim will interpret it to be having | |
" a width of 4. | |
set shiftwidth=2 " Indents will have a width of 4 | |
set softtabstop=2 " Sets the number of columns for a TAB | |
set expandtab " Expand TABs to spaces | |
set tw=80 | |
let g:vimtex_view_general_viewer='firefox' | |
" let g:tex_flavor = 'pdflatex' | |
let g:tex_flavor = 'lualatex' | |
" Personal keybindings | |
inoremap jk <C-c>:w<Cr> | |
inoremap kj <C-c>:w<Cr> | |
" Up down | |
vnoremap <C-j> 5j | |
vnoremap <C-k> 5k | |
nnoremap <C-j> 5j | |
nnoremap <C-k> 5k | |
" Left right | |
nnoremap <C-h> b | |
nnoremap <C-l> w | |
nnoremap H 0 | |
nnoremap L $ | |
vnoremap <C-h> b | |
vnoremap <C-l> w | |
vnoremap H 0 | |
vnoremap L $ | |
" Buffers | |
" Markdown Tweaks | |
let g:markdown_enable_spell_checking = 0 | |
function! SpellToggle() | |
if g:markdown_enable_spell_checking | |
setlocal nospell | |
let g:markdown_enable_spell_checking = 0 | |
else | |
setlocal spell | |
let g:markdown_enable_spell_checking = 1 | |
endif | |
endfunction | |
nnoremap <C-s> :call SpellToggle()<cr> | |
let g:spell_suggest = 0 | |
function! SpellSuggestToggle() | |
if g:spell_suggest | |
cclose | |
let g:spell_suggest = 0 | |
else | |
copen | |
z= | |
let g:spell_suggest = 1 | |
endif | |
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file has been auto-generated by i3-config-wizard(1). | |
# It will not be overwritten, so edit it as you like. | |
# | |
# Should you change your keyboard layout some time, delete | |
# this file and re-run i3-config-wizard(1). | |
# | |
# i3 config file (v4) | |
# | |
# Please see https://i3wm.org/docs/userguide.html for a complete reference! | |
set $mod Mod4 | |
# Font for window titles. Will also be used by the bar unless a different font | |
# is used in the bar {} block below. | |
font pango:monospace 8 | |
# This font is widely installed, provides lots of unicode glyphs, right-to-left | |
# text rendering and scalability on retina/hidpi displays (thanks to pango). | |
#font pango:DejaVu Sans Mono 8 | |
# Before i3 v4.8, we used to recommend this one as the default: | |
# font -misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1 | |
# The font above is very space-efficient, that is, it looks good, sharp and | |
# clear in small sizes. However, its unicode glyph coverage is limited, the old | |
# X core fonts rendering does not support right-to-left and this being a bitmap | |
# font, it doesn’t scale on retina/hidpi displays. | |
# Use Mouse+$mod to drag floating windows to their wanted position | |
floating_modifier $mod | |
# start a terminal | |
bindsym $mod+Return exec i3-sensible-terminal | |
# kill focused window | |
bindsym $mod+Shift+q kill | |
# start dmenu (a program launcher) | |
bindsym $mod+d exec dmenu_run | |
# There also is the (new) i3-dmenu-desktop which only displays applications | |
# shipping a .desktop file. It is a wrapper around dmenu, so you need that | |
# installed. | |
# bindsym $mod+d exec --no-startup-id i3-dmenu-desktop | |
# change focus | |
bindsym $mod+h focus left | |
bindsym $mod+j focus down | |
bindsym $mod+k focus up | |
bindsym $mod+l focus right | |
# alternatively, you can use the cursor keys: | |
# bindsym $mod+Left focus left | |
bindsym $mod+Down focus down | |
bindsym $mod+Up focus up | |
# bindsym $mod+Right focus right | |
# move focused window | |
bindsym $mod+Shift+j move left | |
bindsym $mod+Shift+k move down | |
bindsym $mod+Shift+l move up | |
bindsym $mod+Shift+semicolon move right | |
# alternatively, you can use the cursor keys: | |
bindsym $mod+Shift+Left move left | |
bindsym $mod+Shift+Down move down | |
bindsym $mod+Shift+Up move up | |
bindsym $mod+Shift+Right move right | |
# split in horizontal orientation | |
bindsym $mod+Shift+b split h | |
# split in vertical orientation | |
bindsym $mod+Shift+v split v | |
# enter fullscreen mode for the focused container | |
# bindsym $mod+f exec --no-startup-id i3-nagbar -m "$(setleds -v -L +caps | grep -i 'old.* on' && setleds -L -caps 2> /tmp/i3error.log)" | |
bindsym $mod+f fullscreen toggle | |
# change container layout (stacked, tabbed, toggle split) | |
bindsym $mod+s layout stacking | |
bindsym $mod+w layout tabbed | |
bindsym $mod+e layout toggle split | |
# toggle tiling / floating | |
bindsym $mod+Shift+space floating toggle | |
# change focus between tiling / floating windows | |
bindsym $mod+space focus mode_toggle | |
# focus the parent container | |
bindsym $mod+a focus parent | |
# focus the child container | |
#bindsym $mod+d focus child | |
# Define names for default workspaces for which we configure key bindings later on. | |
# We use variables to avoid repeating the names in multiple places. | |
set $ws1 "1" | |
set $ws2 "2" | |
set $ws3 "3" | |
set $ws4 "4" | |
set $ws5 "5" | |
set $ws6 "6" | |
set $ws7 "7" | |
set $ws8 "8" | |
set $ws9 "9" | |
set $ws10 "10" | |
# switch to workspace | |
bindsym $mod+1 workspace $ws1 | |
bindsym $mod+2 workspace $ws2 | |
bindsym $mod+3 workspace $ws3 | |
bindsym $mod+4 workspace $ws4 | |
bindsym $mod+5 workspace $ws5 | |
bindsym $mod+6 workspace $ws6 | |
bindsym $mod+7 workspace $ws7 | |
bindsym $mod+8 workspace $ws8 | |
bindsym $mod+9 workspace $ws9 | |
bindsym $mod+0 workspace $ws10 | |
# move focused container to workspace | |
bindsym $mod+Shift+1 move container to workspace $ws1 | |
bindsym $mod+Shift+2 move container to workspace $ws2 | |
bindsym $mod+Shift+3 move container to workspace $ws3 | |
bindsym $mod+Shift+4 move container to workspace $ws4 | |
bindsym $mod+Shift+5 move container to workspace $ws5 | |
bindsym $mod+Shift+6 move container to workspace $ws6 | |
bindsym $mod+Shift+7 move container to workspace $ws7 | |
bindsym $mod+Shift+8 move container to workspace $ws8 | |
bindsym $mod+Shift+9 move container to workspace $ws9 | |
bindsym $mod+Shift+0 move container to workspace $ws10 | |
bindsym Ctrl+Mod1+Left workspace prev | |
bindsym Ctrl+Mod1+Right workspace next | |
bindsym Ctrl+Mod1+Shift+Left move container to workspace prev | |
bindsym Ctrl+Mod1+Shift+Right move container to workspace next | |
# reload the configuration file | |
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'" | |
# resize window (you can also use the mouse for that) | |
mode "resize" { | |
# These bindings trigger as soon as you enter the resize mode | |
# Pressing left will shrink the window’s width. | |
# Pressing right will grow the window’s width. | |
# Pressing up will shrink the window’s height. | |
# Pressing down will grow the window’s height. | |
bindsym h resize shrink width 5 px or 5 ppt | |
bindsym j resize grow height 5 px or 5 ppt | |
bindsym k resize shrink height 5 px or 5 ppt | |
bindsym l resize grow width 5 px or 5 ppt | |
# same bindings, but for the arrow keys | |
bindsym Left resize shrink width 5 px or 5 ppt | |
bindsym Down resize grow height 5 px or 5 ppt | |
bindsym Up resize shrink height 5 px or 5 ppt | |
bindsym Right resize grow width 5 px or 5 ppt | |
# back to normal: Enter or Escape or $mod+r | |
bindsym Return mode "default" | |
bindsym Escape mode "default" | |
bindsym $mod+r mode "default" | |
} | |
bindsym $mod+r mode "resize" | |
# Start i3bar to display a workspace bar (plus the system information i3status | |
# finds out, if available) | |
# bar { | |
# status_command i3status | |
# } | |
for_window [class="^.*"] border pixel 0 | |
# Pulse Audio controls | |
bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +5% #increase sound volume | |
bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -5% #decrease sound volume | |
bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound | |
# Sreen brightness controls | |
bindsym XF86MonBrightnessUp exec backlight + # increase screen brightness | |
bindsym XF86MonBrightnessDown exec backlight - # decrease screen brightness | |
# Touchpad controls | |
bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad | |
# Media player controls | |
bindsym XF86AudioPlay exec playerctl play | |
bindsym XF86AudioPause exec playerctl pause | |
bindsym XF86AudioNext exec playerctl next | |
bindsym XF86AudioPrev exec playerctl previous | |
bar { | |
font pango:Roboto Mono Medium 9 | |
status_command i3blocks -c ~/.config/i3/i3blocks-top.conf | |
position top | |
# status_command i3status | |
i3bar_command i3bar -t | |
colors { | |
separator #444444 | |
background #333333 | |
statusline #839496 | |
# border backgr. text | |
focused_workspace #333333 #333333 #e6e6e6 | |
active_workspace #333333 #333333 #e6e6e6 | |
inactive_workspace #333333 #333333 #161616 | |
urgent_workspace #333333 #333333 #e6e6e6 | |
} | |
} | |
#bar { | |
# font pango:Roboto Mono Medium 9 | |
# status_command i3blocks -c ~/.config/i3/i3blocks-bottom.conf | |
# position bottom | |
# status_command i3status | |
# workspace_buttons no | |
# i3bar_command i3bar -t | |
# colors { | |
# separator #444444 | |
# background #333333 | |
# statusline #839496 | |
# focused_workspace #6c71c4 #6c71c4 #fdf6e3 | |
# active_workspace #6c71c4 #6c71c4 #fdf6e3 | |
# inactive_workspace #586e75 #586e75 #002b36 | |
# urgent_workspace #d33682 #d33682 #fdf6e3 | |
# } | |
#} | |
client.focused #6c71c4 #6c71c4 #fdf6e3 #6c71c4 | |
client.focused_inactive #073642 #073642 #eee8d5 #6c71c4 | |
client.unfocused #073642 #073642 #93a1a1 #586e75 | |
client.urgent #d33682 #d33682 #fdf6e3 #dc322f | |
smart_gaps on | |
gaps inner 10 | |
gaps outer 3 | |
hide_edge_borders smart | |
bindsym $mod+Shift+s exec --no-startup-id /home/dylan/bin/hdmi | |
# reload the configuration file | |
bindsym $mod+c exec "/usr/bin/chrome" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
separator_block_width=14 | |
[time] | |
label= | |
command=echo -n "$(date '+%a %m-%d-%y %l:%M:%S %p')$([ "x$(acpi -b | grep -i -v Charg)" = "x" ] || echo -n " " && echo -n " ")" | |
min_width=450 | |
align=right | |
interval=1 | |
color=#50C878 | |
[ssid] | |
label= | |
command=[ "x$(iw dev wlp2s0 link | head -1 | grep Not)" = "x" ] && echo "$(iw dev wlp2s0 link | grep SSID | cut -d " " -f 2-)" || echo | |
# color=#d33682 | |
color=#bdd0c4 | |
min_width=200 | |
align=right | |
interval=5 | |
[temp] | |
label= | |
command=echo "$(sensors coretemp-isa-0000 | awk '/Package/ {print $4}')" | |
interval=10 | |
color=#9ab7d3 | |
#b58900 | |
[screen] | |
label= | |
command=echo $(bc -l <<< "scale=0;100*`cat /sys/class/backlight/intel_backlight/brightness`/`cat /sys/class/backlight/intel_backlight/max_brightness`")% | |
color=#fdfd96 | |
#00FF00 | |
interval=10 | |
[volume] | |
label= | |
command=/usr/lib/i3blocks/volume && /home/dylan/.config/i3/fullscreen | |
interval=1 | |
signal=10 | |
color=#f5d2d3 | |
#f7e1d3 | |
#d70a53 | |
[battery] | |
label=⚡ | |
command=/usr/lib/i3blocks/battery BAT0 | |
interval=1 | |
min_width=25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment