Commit c9eb52db authored by Sadman Kazi's avatar Sadman Kazi 🎸

Mostly changes for vim plugins

parent cddee238
*.netrwhist
vim/.vim/bundle
......@@ -9,10 +9,19 @@ Dependencies:
* xorg-xbacklight (for brightness controls)
* compton
For bash:
* powerline
For i3blocks:
* acpi
* amixer
For vim:
* vundle
* powerline
Setup:
`stow <application_name>`
......@@ -2,6 +2,15 @@
# ~/.bashrc
#
export VISUAL="vim"
export TERM="screen-256color"
# setup powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python3.6/site-packages/powerline/bindings/bash/powerline.sh
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
......@@ -21,3 +30,9 @@ export HISTFILE=~/.bash_eternal_history
# Force prompt to write history after every command.
# http://superuser.com/questions/20900/bash-history-loss
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
# Run ssh-agent after every login
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi
opacity-rule = [
"85:class_g = 'Termite'",
"85:class_g = 'Gvim'",
"85:class_g = 'Turtl'",
"85:class_g = 'Nautilus'",
"95:class_g = 'Firefox'",
......
[Settings]
gtk-theme-name=Arc-Darker
gtk-icon-theme-name=Moka
gtk-font-name=Open Sans 11
gtk-font-name=Open Sans 12
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=0
gtk-toolbar-style=GTK_TOOLBAR_BOTH
......
......@@ -14,18 +14,16 @@ 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:Space Mono 10
# 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:
# 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.
# Hide the title bar
new_window 1pixel
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
......@@ -76,7 +74,7 @@ mode "$mode_gaps_outer" {
focus_follows_mouse no
# start a terminal
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec termite
# kill focused window
bindsym $mod+Shift+q kill
......@@ -97,7 +95,7 @@ client.urgent $urgent-bg-color $urgent-bg-color $text-color
hide_edge_borders both
# start rofi (a program launcher)
bindsym $mod+d exec rofi -show run
bindsym $mod+d exec rofi -show drun -modi drun
# 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.
......@@ -159,7 +157,8 @@ set $ws1 "1: "
set $ws2 "2: "
set $ws3 "3: "
set $ws4 "4: "
set $ws5 "5: "
set $ws5 "5: "
set $ws6 "6: "
set $ws9 "9: "
set $ws10 "10: "
......@@ -169,7 +168,7 @@ bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4
bindsym $mod+5 workspace $ws5
bindsym $mod+6 workspace 6
bindsym $mod+6 workspace $ws6
bindsym $mod+7 workspace 7
bindsym $mod+8 workspace 8
bindsym $mod+9 workspace $ws9
......@@ -181,7 +180,7 @@ 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 6
bindsym $mod+Shift+6 move container to workspace $ws6
bindsym $mod+Shift+7 move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+9 move container to workspace $ws9
......@@ -192,7 +191,8 @@ assign [class="Gvim"] $ws1
assign [class="Firefox"] $ws2
assign [class="Turtl"] $ws3
assign [class="Termite"] $ws4
assign [class="Nautilus"] $ws5
assign [class="Mozilla Thunderbird"] $ws5
assign [class="Nautilus"] $ws6
assign [class="Google Play Music Desktop Player"] $ws9
assign [class="Chromium"] $ws10
......
......@@ -4,5 +4,5 @@ TMPBG=/tmp/screen.png
LOCK=$HOME/.i3/res/lock.png
RES=1920x1080
ffmpeg -f x11grab -video_size $RES -y -i $DISPLAY -i $LOCK -filter_complex "boxblur=5:1,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -vframes 1 $TMPBG
ffmpeg -f x11grab -video_size $RES -y -i $DISPLAY -i $LOCK -filter_complex "boxblur=8:1,overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/2" -vframes 1 $TMPBG
i3lock -u -i $TMPBG
......@@ -4,12 +4,40 @@ colorscheme jellybeans
" show existing tab with 4 spaces width
set tabstop=4
" setup vundle
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'
" powerline
Bundle 'powerline/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'Valloric/YouCompleteMe'
Plugin 'easymotion/vim-easymotion'
" 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
"
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
filetype plugin indent on
set number
set laststatus=2
set cursorline
" set path, useful for finding files
set path=.,,**
syntax on
......@@ -18,12 +46,28 @@ set colorcolumn=80
" Shortcuts "
" Tabs
nnoremap <C-Left> :tabprevious<CR>
nnoremap <C-Right> :tabnext<CR>
nnoremap <tab> :tabnext<CR>
nnoremap <s-tab> :tabprevious<CR>
if has("gui_running")
set guioptions -=T
set guioptions -=m
set guioptions -=r
set guioptions -=L
set mouse =
endif
" Custom functions
" Remove extra whitespace before saving - from naren's dotfile
function! <SID>StripTrailingWhitespaces()
" Preparation: save last search, and cursor position.
let _s=@/
let l = line(".")
let c = col(".")
" Do the business:
%s/\s\+$//e
" Clean up: restore previous search history, and cursor position
let @/=_s
call cursor(l, c)
endfunction
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
......@@ -3,8 +3,9 @@ rofi.modi: run
rofi.font: Space Mono 18
rofi.width: 100
rofi.lines: 3
!rofi.columns: 1
rofi.columns: 1
rofi.opacity: 85
rofi.line-margin: 10
! bg fg altbg hlbg hlfg
rofi.color-normal: #2f343f, #f3f4f5, #2f343f, #2f343f, #9575cd
rofi.color-urgent: #2f343f, #f3f4f5, #2f343f, #2f343f, #9575cd
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment