~kiwec/dotfiles

15684aa9b95c814ef3e8c25cff7cd6af734c7ce9 — Kiwec 5 years ago
Initial commit
7 files changed, 294 insertions(+), 0 deletions(-)

A .bashrc
A .config/nvim/init.vim
A .conkyrc
A .i3/config
A .i3/statusline
A LICENSE
A README.md
A  => .bashrc +35 -0
@@ 1,35 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return

# Prompt
set_prompt () {
	Last_Command=$?
	Green='\[\e[01;32m\]'
	Red='\[\e[01;31m\]'
	Reset='\[\e[00m\]'
	White='\[\e[01;37m\]'
	PS1="$White\\w"
	if [[ $Last_Command == 0 ]]; then
		PS1+="$Green"
	else
		PS1+="$Red"
	fi
	if [[ $EUID == 0 ]]; then
		PS1+="#"
	else
		PS1+="$"
	fi
	PS1+="$Reset "
}
PROMPT_COMMAND='set_prompt'

alias ls='ls -Ahlq --color=tty'
alias pamixer='python2 ~/.bin/pulseaudio-mixer-cli.py'
alias cal='cal -m'
alias redsky='node ~/Documents/GitHub/redskycli/index.js'
alias ga='git add --all'
alias vi='nvim'
alias vim='nvim'
alias wine='WINEARCH="win32" wine'
alias winetricks='WINEARCH="win32" winetricks'


A  => .config/nvim/init.vim +103 -0
@@ 1,103 @@
" Plugins
set nocompatible
filetype off
set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin('~/.config/nvim/bundle')
Plugin 'VundleVim/Vundle.vim'
Plugin 'dhruvasagar/vim-table-mode'
Plugin 'Shougo/deoplete.nvim'
Plugin 'Shougo/neosnippet'
Plugin 'Shougo/neosnippet-snippets'
Plugin 'honza/vim-snippets'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'mattn/emmet-vim'
Plugin 'Yggdroot/indentLine'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fugitive'
Plugin 'bling/vim-airline'
Plugin 'wookiehangover/jshint.vim'
Plugin 'pangloss/vim-javascript'
Plugin 'tpope/vim-endwise'
Plugin 'junegunn/vim-easy-align'
Plugin 'osyo-manga/vim-over'
Plugin 'jiangmiao/auto-pairs'
Plugin 'sickill/vim-pasta'
Plugin 'airblade/vim-gitgutter'
Plugin 'altercation/vim-colors-solarized'
call vundle#end()
filetype plugin indent on

" Tables
let g:table_mode_corner="|"

" NeoComplete
let g:deoplete#enable_at_startup = 1
let g:neocomplete#enable_smart_case = 1
let g:neocomplete#sources#syntax#min_keyword_length = 3
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"

" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0

" NERDTree
map <C-n> :NERDTreeToggle<CR>
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif

" CtrlP
let g:ctrlp_cmd = 'CtrlPMixed'

" Emmet
let g:user_emmet_install_global = 0
let g:user_emmet_leader_key='<C-E>'
autocmd FileType html,css EmmetInstall

" Solarized colorscheme
syntax enable
set background=dark
let g:solarized_termcolors=256
colorscheme solarized

" IndentLine
let g:indentLine_char = '│'

" Easy-align
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)

" Airline
let g:airline_powerline_fonts = 1

" JSHint
let JSHintUpdateWriteOnly=1

set number
set linebreak
set showbreak=+++
set textwidth=80
set visualbell
set updatetime=250
set hlsearch
set smartcase
set ignorecase
set incsearch
 
set autoindent
set cindent
set shiftwidth=2
set smartindent
set smarttab
set softtabstop=2
 
set ruler
 
set undolevels=1000
set backspace=indent,eol,start


A  => .conkyrc +27 -0
@@ 1,27 @@
### Conky configuration fil
#e
out_to_x no
own_window no
out_to_console yes
double_buffer no
background no
update_interval 2.0
total_run_times 0
short_units yes
if_up_strictness addressone
use_spacer left
override_utf8_locale no
cpu_avg_samples 2
default_color FF0000
update_interval 0.01

TEXT
[{ "full_text" : " ${exec mpc -f "%file%" | head -1}" , 
"color" : 
"\#d68176" },\
 { "full_text" : " ${fs_used /} /${fs_size}", "color":"\#d68176"},\
 { "full_text" : " ${fs_used /home} /${fs_size /home}" , "color" : "\#d68176" },\
 { "full_text" : " ${exec amixer get Master -M | grep -oEm 1 "[[:digit:]]*%"}", "color" : 
"\#d68176" },\
 { "full_text" : " ${time %a %d-%m-%y}", "color":"\#d68176"},\
 { "full_text" : " ${time %H:%M:%S}", "color" : "\#d68176"}],

A  => .i3/config +100 -0
@@ 1,100 @@
font pango:Terminus 10

# Media keys
bindsym XF86AudioRaiseVolume exec amixer -q set Master 3%+ unmute
bindsym XF86AudioLowerVolume exec amixer -q set Master 3%- unmute
bindsym XF86AudioMute exec amixer -q set Master toggle
bindsym XF86AudioPlay exec mpc toggle
bindsym XF86AudioNext exec mpc next
bindsym XF86AudioPrev exec mpc prev

# use Mouse+Mod4 to drag floating windows to their wanted position
floating_modifier Mod4

# start a terminal
bindsym Mod4+Return exec urxvt

# kill focused window
bindsym Mod4+Shift+q kill

# start dmenu (a program launcher)
bindsym Mod4+r exec dmenu_run

# alternatively, you can use the cursor keys:
bindsym Mod4+Shift+Left move left
bindsym Mod4+Shift+Down move down
bindsym Mod4+Shift+Up move up
bindsym Mod4+Shift+Right move right

# split in horizontal orientation
bindsym Mod4+w split h

# split in vertical orientation
bindsym Mod4+v split v

# enter fullscreen mode for the focused container
bindsym Mod4+f fullscreen toggle

# toggle tiling / floating
bindsym Mod4+Shift+space floating toggle

# change focus between tiling / floating windows
bindsym Mod4+space focus mode_toggle

# switch to workspace
bindsym Mod4+d workspace 1
bindsym Mod4+h workspace 2
bindsym Mod4+t workspace 3
bindsym Mod4+n workspace 4
bindsym Mod4+s workspace 5

# move focused container to workspace
bindsym Mod4+Shift+d move container to workspace 1
bindsym Mod4+Shift+h move container to workspace 2
bindsym Mod4+Shift+t move container to workspace 3
bindsym Mod4+Shift+n move container to workspace 4
bindsym Mod4+Shift+s move container to workspace 5

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym Mod4+Shift+r restart

# resizing
bindsym Mod4+a resize shrink width 10 px or 10 ppt
bindsym Mod4+e resize grow height 10 px or 10 ppt
bindsym Mod4+comma resize shrink height 10 px or 10 ppt
bindsym Mod4+o resize grow width 10 px or 10 ppt

bar {
	status_command bash $HOME/.i3/statusline
	position bottom
	font pango:FontAwesome 10
	colors {
		background #2d2d2d
		separator #dcdcdc
		focused_workspace #d64937 #d64937 #2d2d2d
		active_workspace #2d2d2d #2d2d2d #dcdcdc
		inactive_workspace #2d2d2d #2d2d2d #dcdcdc
		urgent_workspace #2d2d2d #2d2d2d #dcdcdc
	}
}

new_window none
new_float none

for_window [class="Steam"] floating enable
for_window [class="Steam.exe"] floating enable
for_window [class="Wine"] floating enable
for_window [window_role="pop-up"] floating enable
for_window [window_role="task_dialog"] floating enable

exec redshift -l 48.58:7.67
exec feh --bg-scale /home/kiwec/Images/wall.jpg
exec mpd
exec [[ -z $(pgrep -xU $UID mpdscribble) ]] && mpdscribble
exec alsactl -f /home/kiwec/.config/alsa/asound.state restore
exec steam -silent

client.focused          #d64937	#d64937 #2D2D2D #2e9ef4
client.focused_inactive #2d2d2d #2d2d2d #dcdcdc #484e50
client.unfocused        #2D2D2D #2d2d2d #dcdcdc #292d2e
client.urgent           #2D2D2D #2D2D2D #dcdcdc #900000

A  => .i3/statusline +5 -0
@@ 1,5 @@
#!/bin/bash
echo '{"version":1}'
echo '['
echo '[],'
exec conky

A  => LICENSE +21 -0
@@ 1,21 @@
The MIT License (MIT)

Copyright (c) 2015 Wolf Clément

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

A  => README.md +3 -0
@@ 1,3 @@
# kiwec-dotfiles

Fichiers de configuration que j'utilise en permanence.