~kiwec/dotfiles

097fa16d9b8a7954174195ee6167640386e3e767 — Wolf Clément 2 years ago 86b69fc
Update desktop 2018
14 files changed, 173 insertions(+), 341 deletions(-)

A .bashrc
M .config/i3/config
D .config/i3/i3blocks.conf
A .config/i3/wallpaper.jpg
D .config/i3/wallpaper.png
A .config/i3status/config
M .config/nvim/init.vim
A .config/technobabble
A .gitmodules
D .zshrc
M README.md
A desktop-2015.png
A netbook-2016.png
A netbook-2017.png
A .bashrc => .bashrc +3 -0
@@ 0,0 1,3 @@
export PAGER=most
~/.config/technobabble/charger.sh


M .config/i3/config => .config/i3/config +53 -116
@@ 1,147 1,84 @@
set $mod Mod4
floating_modifier $mod

font pango:agave 8

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

# start a terminal
bindsym $mod+Return exec --no-startup-id xterm -fa agave -fs 10
set $ws1 "1"
set $ws2 "2"
set $ws3 "3"
set $ws4 "4"
set $ws5 "5"

# kill focused window
bindsym $mod+Shift+A kill
font pango:monospace 8

# start dmenu (a program launcher)
bindsym $mod+r exec --no-startup-id dmenu_run -b -nb \#1b1b1b -nf \#999999 -sb \#1990B7 -sf \#1c1c1c -fn "agave-8"
floating_modifier $mod

# change focus
bindsym $mod+j focus left
bindsym $mod+k focus down
bindsym $mod+l focus up
bindsym $mod+m focus right
bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+c kill
bindsym $mod+d exec rofi -show run

# 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+M 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+h split h

# split in vertical orientation
bindsym $mod+v split v

# enter fullscreen mode for the focused container
bindsym $mod+f fullscreen toggle
bindsym $mod+space focus mode_toggle

# change container layout (stacked, tabbed, toggle split)
bindsym $mod+s layout stacking
bindsym $mod+z layout tabbed
bindsym $mod+e layout toggle split

# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
bindsym $mod+1 workspace $ws1
bindsym $mod+2 workspace $ws2
bindsym $mod+3 workspace $ws3
bindsym $mod+4 workspace $ws4

# change focus between tiling / floating windows
bindsym $mod+space focus mode_toggle
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

# focus the parent container
bindsym $mod+q focus parent

# focus the child container
#bindsym $mod+d focus child

# switch to workspace
bindsym $mod+ampersand workspace 1
bindsym $mod+eacute workspace 2
bindsym $mod+quotedbl workspace 3
bindsym $mod+apostrophe workspace 4
bindsym $mod+parenleft workspace 5
bindsym $mod+minus workspace 6
bindsym $mod+egrave workspace 7
bindsym $mod+underscore workspace 8
bindsym $mod+ccedilla workspace 9
bindsym $mod+agrave workspace 10

# move focused container to workspace
bindsym $mod+Shift+1 move container to workspace 1
bindsym $mod+Shift+eacute move container to workspace 2
bindsym $mod+Shift+3 move container to workspace 3
bindsym $mod+Shift+4 move container to workspace 4
bindsym $mod+Shift+5 move container to workspace 5
bindsym $mod+Shift+6 move container to workspace 6
bindsym $mod+Shift+egrave move container to workspace 7
bindsym $mod+Shift+8 move container to workspace 8
bindsym $mod+Shift+ccedilla move container to workspace 9
bindsym $mod+Shift+agrave move container to workspace 10

# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+r restart
bindsym $mod+Shift+q exec 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 j resize shrink width 10 px or 10 ppt
        bindsym k resize grow height 10 px or 10 ppt
        bindsym l resize shrink height 10 px or 10 ppt
        bindsym m resize grow width 10 px or 10 ppt

        # same bindings, but for the arrow keys
        bindsym Left resize shrink width 10 px or 10 ppt
        bindsym Down resize grow height 10 px or 10 ppt
        bindsym Up resize shrink height 10 px or 10 ppt
        bindsym Right resize grow width 10 px or 10 ppt

        # back to normal: Enter or Escape
        bindsym Return mode "default"
        bindsym Escape mode "default"
}
gaps inner 20
gaps outer 0

bar {
        status_command		i3blocks -c ~/.config/i3/i3blocks.conf
	position		top
	strip_workspace_numbers	yes
	workspace_buttons	yes
	tray_output		primary
	separator_symbol	" "
	colors {
		background		#1b1b1b
		separator		#ffffff
		statusline		#999999
		focused_workspace	#000000 #1990B7 #1c1c1c
		active_workspace	#000000 #1b1b1b #999999
		inactive_workspace	#000000 #1b1b1b #999999
		urgent_workspace	#000000 #ff5151 #1c1c1c
	}
        status_command i3status

        colors {
                statusline #ff0000
                background #000000
                separator  #ffffff

                #                  BORDER  BACKGRND  TEXT
                focused_workspace  #000000 #000000 #ffffff
                inactive_workspace #000000 #000000 #aaaaaa
                active_workspace   #000000 #000000 #ffffff
                urgent_workspace   #ff0000 #000000 #000000
        }
}

default_border pixel 1
hide_edge_borders both

#                       BORDER  BACKGND TEXT    INDICTR C.BORDR
client.focused          #000000 #000000 #ffffff #cccccc #ff0000
client.focused_inactive #000000 #000000 #ffffff #cccccc #aa0000
client.unfocused        #000000 #000000 #ffffff #cccccc #550000
client.urgent           #000000 #000000 #ffffff #cccccc #ffff00
client.placeholder      #000000 #000000 #ffffff #cccccc #aa0000
client.background       #000000

for_window [window_role="pop-up"] floating enable
for_window [window_role="bubble"] floating enable
for_window [window_role="task_dialog"] floating enable
for_window [window_role="Preferences"] floating enable
for_window [window_type="dialog"] floating enable
for_window [window_type="menu"] floating enable

exec_always --no-startup-id feh --bg-fill ~/.config/i3/wallpaper.jpg

exec --no-startup-id redshift -l 48.58:7.67
exec --no-startup-id feh --bg-scale ~/.config/i3/wallpaper.png
exec --no-startup-id mpd

D .config/i3/i3blocks.conf => .config/i3/i3blocks.conf +0 -29
@@ 1,29 0,0 @@
command=/usr/lib/i3blocks/$BLOCK_NAME
separator_block_width=15
markup=none

[mediaplayer]
interval=5
signal=10

[disk]
label=⌂
interval=30

[cpu_usage]
label=⚙
interval=10

[volume]
label=♪
instance=Master
interval=5

[battery]
label=BAT
label=⚡
interval=30

[time]
command=date '+%Y.%m.%d %H:%M:%S'
interval=5

A .config/i3/wallpaper.jpg => .config/i3/wallpaper.jpg +0 -0
D .config/i3/wallpaper.png => .config/i3/wallpaper.png +0 -0
A .config/i3status/config => .config/i3status/config +22 -0
@@ 0,0 1,22 @@
general {
        colors = true
        color_good = "#FFFFFF"
        color_degraded = "#FF0000"
        color_bad = "#FF0000"
        interval = 5
}

order += "ethernet _first_"
order += "path_exists VPN"

ethernet _first_ {
        format_up = " ethernet ok "
        format_down = " no ethernet "
}

path_exists VPN {
        format = " vpn ok "
        format_down = " no vpn "
        path = "/proc/sys/net/ipv4/conf/tun0"
}


M .config/nvim/init.vim => .config/nvim/init.vim +80 -80
@@ 1,93 1,93 @@
" Plugins
set nocompatible
filetype off
set rtp+=~/.config/nvim/bundle/Vundle.vim
call vundle#begin('~/.config/nvim/bundle')
Plugin 'VundleVim/Vundle.vim'
Plugin 'Shougo/deoplete.nvim'
Plugin 'Shougo/neosnippet'
Plugin 'Shougo/neosnippet-snippets'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-fugitive'
Plugin 'bling/vim-airline'
Plugin 'nathanaelkane/vim-indent-guides'
Plugin 'pangloss/vim-javascript'
Plugin 'junegunn/vim-easy-align'
Plugin 'jiangmiao/auto-pairs'
Plugin 'sickill/vim-pasta'
Plugin 'airblade/vim-gitgutter'
Plugin 'altercation/vim-colors-solarized'
call vundle#end()
filetype plugin indent on
""" Begin plugins
call plug#begin('~/.vim/plugged')

" 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 <silent> <CR> <C-r>=<SID>custom_return()<CR>
function! s:custom_return()
  return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>"
endfunction
inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
" Completion
let g:ycm_server_python_interpreter = '/usr/bin/python3'
let g:ycm_global_ycm_extra_conf = '~/.config/nvim/.ycm_extra_conf'
Plug 'Valloric/YouCompleteMe'
Plug 'ervandew/supertab'
Plug 'SirVer/ultisnips'

" NeoSnippets
imap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: pumvisible() ? "\<C-n>" : "\<TAB>"
smap <expr><TAB> neosnippet#expandable_or_jumpable() ?
\ "\<Plug>(neosnippet_expand_or_jump)"
\: "\<TAB>"
" Snippets
Plug 'honza/vim-snippets'

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

" CtrlP
let g:ctrlp_cmd = 'CtrlPMixed'
" Syntax highlighting
Plug 'kiwec/vim-brainfuck'
Plug 'sheerun/vim-polyglot'
Plug 'hashivim/vim-vagrant'
Plug 'ziglang/zig.vim'

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

" Easy-align
xmap ga <Plug>(EasyAlign)
nmap ga <Plug>(EasyAlign)
" Colorscheme
Plug 'dim13/smyck.vim'

" Airline
let g:airline_powerline_fonts = 1
" Misc
Plug 'ctrlpvim/ctrlp.vim'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'vim-airline/vim-airline'
Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'ntpeters/vim-better-whitespace'
Plug 'ciaranm/detectindent'

" JSHint
let JSHintUpdateWriteOnly=1

" Ident Guides
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_auto_colors = 0
hi IndentGuidesEven ctermbg=black
call plug#end()
""" End plugins

" Usability
set number
set linebreak
set showbreak=+++
set t_vb=
set updatetime=250
set hlsearch
set smartcase
set mouse=a
set tabstop=4
set shiftwidth=4
set shortmess=atOI
set ignorecase
set incsearch
 
set autoindent
set cindent
set sw=4
set ts=4
set smartindent
set noexpandtab 
set smartcase
set scrolljump=5
set scrolloff=3
set nowrap
set splitright
set splitbelow
set ruler
 
set undolevels=1000
set backspace=indent,eol,start
let mapleader = ","
set showmatch
set pumheight=20
set clipboard+=unnamedplus

" Ctrlp
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""'

au BufNewFile,BufRead *.handlebars set filetype=html
" Indentation
let g:detectindent_preferred_expandtab = 0
let g:detectindent_preferred_indent = 4
autocmd BufReadPost * :DetectIndent

" Completion
let g:ycm_confirm_extra_conf = 0
let g:ycm_key_list_select_completion = ['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-p>', '<Up>']
let g:SuperTabDefaultCompletionType = '<C-n>'
let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"

" Syntax checking
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
let g:syntastic_javascript_checkers = ['eslint']

" Colorscheme
set background=dark
set termguicolors
set t_Co=256
colorscheme smyck

" Indent guides
let g:indent_guides_enable_on_vim_startup = 1
let g:indent_guides_guide_size = 1
let g:indent_guides_start_level = 2


A .config/technobabble => .config/technobabble +1 -0
@@ 0,0 1,1 @@
Subproject commit dc7e8b275cb64c60c4a7db48846b2cdf1cf9aa7e

A .gitmodules => .gitmodules +3 -0
@@ 0,0 1,3 @@
[submodule ".config/technobabble"]
	path = .config/technobabble
	url = https://github.com/kiwec/rssi-simulator

D .zshrc => .zshrc +0 -115
@@ 1,115 0,0 @@
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
  export ZSH=/home/.oh-my-zsh

# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="lambda"

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(archlinux systemd lol colored-man-pages command-not-found cp 
git 
gitignore 
npm node web-search)

source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
#   export EDITOR='vim'
# else
#   export EDITOR='mvim'
# fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias rmr="rm -r"

# theme
if [ "$TERM" = "linux" ]; then
  /bin/echo -e "
  \e]P0282a2e
  \e]P1a54242
  \e]P28c9440
  \e]P3de935f
  \e]P45f819d
  \e]P585678f
  \e]P65e8d87
  \e]P7707880
  \e]P8373b41
  \e]P9cc6666
  \e]PAb5bd68
  \e]PBf0c674
  \e]PC81a2be
  \e]PDb294bb
  \e]PE8abeb7
  \e]PFc5c8c6
  "
  # get rid of artifacts
  clear
fi

EDITOR=nvim

M README.md => README.md +11 -1
@@ 1,3 1,13 @@
# kiwec-dotfiles

Fichiers de configuration que j'utilise en permanence.
Netbook de 2017 : config perdue, RIP /home

![Netbook de 2017, /home perdu a tout jamais](netbook-2017.png)

Netbook de 2016 : 86b69fcd0c8198c85a7c7bc0d05d910a561ba65e

![Netbook de 2016](netbook-2016.png)

Desktop de 2015 : 0fd8b8a721545e8e20d5b4b7ccc9af224986b6a4

![Desktop de 2015, plus jamais ca](desktop-2015.png)
\ No newline at end of file

A desktop-2015.png => desktop-2015.png +0 -0
A netbook-2016.png => netbook-2016.png +0 -0
A netbook-2017.png => netbook-2017.png +0 -0