Commit 890c5393 authored by Einenlum's avatar Einenlum

Initial commit

parents
#!/bin/bash
############################
# .make.sh
# This script creates symlinks from the home directory to any desired dotfiles in ~/dotfiles
############################
echo "Installing dependencies, please wait ..."
user=`whoami`
dir=`dirname $0`
#echo "guake ..."
#apt-get install guake
#echo "😄 done"
#echo "i3 ..."
#apt-get install i3
#echo "😄 done"
#echo "vim ..."
#apt-get install vim
#echo "😄 done"
#echo "curl ..."
#apt-get install curl
#echo "😄 done"
#echo "ruby ..."
#apt-get install ruby
#echo "😄 done"
#echo "php5 ..."
#apt-get install php5 php5-intl php5-json php5-mcrypt php5-xdebug php5-mysql
#echo "😄 done"
#echo "nodejs ..."
#add-apt-repository ppa:chris-lea/node.js
#apt-get update
#apt-get install nodejs
#echo "😄 done"
#echo "mysql ..."
#apt-get install mysql-server
#echo "😄 done"
#echo "composer ..."
#curl -sS https://getcomposer.org/installer | php -- --install-dir=/opt --filename=composer
#cp $dir/scripts/composer /usr/bin/composer && chmod +x /usr/bin/composer
#echo "😄 done"
#echo "phantomjs ..."
#npm install -g phantomjs
#echo "😄 done"
#echo "grunt ..."
#npm install -g grunt-cli
#echo "😄 done"
#echo "guard ..."
#apt-get install exuberant-ctags
#gem install guard-ctags-composer
#echo "😄 done"
########## Variables
olddir=~/dotfiles_old # old dotfiles backup directory
files=`ls -1a $dir/symlinks`
echo $dir
##########
# create dotfiles_old in homedir
echo "Creating $olddir for backup of any existing dotfiles in ~"
mkdir -p $olddir
echo "...done"
# change to the dotfiles directory
echo "Changing to the $dir directory"
cd $dir
echo "...done"
# move any existing dotfiles in homedir to dotfiles_old directory, then create symlinks
for file in $files; do
echo "Moving any existing dotfiles from ~ to $olddir"
mv ~/$file ~/dotfiles_old/
echo "Creating symlink to $file in home directory."
ln -s $dir/symlinks/$file ~/$file
done
\ No newline at end of file
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return;;
esac
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000
HISTFILESIZE=2000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# If set, the pattern "**" used in a pathname expansion context will
# match all files and zero or more directories and subdirectories.
#shopt -s globstar
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi
# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color) color_prompt=yes;;
esac
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
if [ -n "$force_color_prompt" ]; then
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
# We have color support; assume it's compliant with Ecma-48
# (ISO/IEC-6429). (Lack of such support is extremely rare, and such
# a case would tend to support setf rather than setaf.)
color_prompt=yes
else
color_prompt=
fi
fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
;;
*)
;;
esac
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
#alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
# Add an "alert" alias for long running commands. Use like so:
# sleep 10; alert
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi
#!/usr/bin/env zsh
if [[ ! -o interactive ]]; then
return
fi
compctl -K _tmuxinator tmuxinator mux
_tmuxinator() {
local words completions
read -cA words
if [ "${#words}" -eq 2 ]; then
completions="$(tmuxinator commands)"
else
completions="$(tmuxinator completions ${words[2,-2]})"
fi
reply=("${(ps:\n:)completions}")
}
[user]
email = einenlum@vmail.me
name = Einenlum
[push]
default = current
[color]
ui = true
[core]
excludesfile = ~/.gitignore
[alias]
st = status
ci = commit
br = branch
co = checkout
tags
vendor.tags
Guardfile
*.swp
*.swo
*~
*.log
*.swo
*~
*.log
# 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 somewhen, delete
# this file and re-run i3-config-wizard(1).
#
# i3 config file (v4)
#
# Please see http://i3wm.org/docs/userguide.html for a complete reference!
set $mod Mod1
set $ms Mod4
# Font for window titles. Will also be used by the bar unless a different font
# is used in the bar {} block below. ISO 10646 = Unicode
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, if you need a lot of unicode glyphs or
# right-to-left text rendering, you should instead use pango for rendering and
# chose a FreeType font, such as:
# font pango:DejaVu Sans Mono 10
# Use Mouse+$mod to drag floating windows to their wanted position
floating_modifier $mod
# start a terminal
bindsym $mod+Shift+Return exec i3-sensible-terminal
# kill focused window
bindsym $mod+Shift+b kill
# start dmenu (a program launcher)
bindsym $mod+i 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+t focus left
bindsym $mod+s focus down
bindsym $mod+r focus up
bindsym $mod+n 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+t move left
bindsym $mod+Shift+s move down
bindsym $mod+Shift+r move up
bindsym $mod+Shift+n 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+c split h
# split in vertical orientation
bindsym $mod+period split v
# enter fullscreen mode for the focused container
bindsym $mod+e fullscreen
# change container layout (stacked, tabbed, toggle split)
bindsym $mod+u layout stacking
bindsym $mod+eacute layout tabbed
bindsym $mod+p layout toggle split
# toggle tiling / floating
bindsym $mod+Shift+space floating toggle
# change focus between tiling / floating windows
bindsym $ms+space focus mode_toggle
# focus the parent container
bindsym $mod+a focus parent
# focus the child container
#bindsym $mod+d focus child
# switch to workspace
bindsym $mod+quotedbl workspace 1
bindsym $mod+guillemotleft workspace 2
bindsym $mod+guillemotright workspace 3
bindsym $mod+parenleft workspace 4
bindsym $mod+parenright workspace 5
bindsym $mod+at workspace 6
bindsym $mod+plus workspace 7
bindsym $mod+minus workspace 8
bindsym $mod+slash workspace 9
bindsym $mod+asterisk workspace 10
# move focused container to workspace
bindsym $mod+Shift+quotedbl move container to workspace 1
bindsym $mod+Shift+guillemotleft move container to workspace 2
bindsym $mod+Shift+guillemotright 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+at move container to workspace 6
bindsym $mod+Shift+plus move container to workspace 7
bindsym $mod+Shift+minus move container to workspace 8
bindsym $mod+Shift+slash move container to workspace 9
bindsym $mod+Shift+asterisk move container to workspace 10
# reload the configuration file
bindsym $mod+Shift+x reload
# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
bindsym $mod+Shift+o restart
# exit i3 (logs you out of your X session)
bindsym $mod+Shift+p 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 t resize shrink width 10 px or 10 ppt
bindsym s resize grow height 10 px or 10 ppt
bindsym r resize shrink height 10 px or 10 ppt
bindsym n 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"
}
bindsym $mod+o mode "resize"
# Start i3bar to display a workspace bar (plus the system information i3status
# finds out, if available)
bar {
status_command i3status
colors {
background #002B36
}
}
# Shortcuts
# Starts firefox
bindsym $mod+Shift+f exec firefox
# Starts chromium-browser
bindsym $mod+Shift+c exec chromium-browser
# Starts thunderbird
bindsym $mod+Shift+h exec thunderbird
# xfce4-notify
for_window [class="Xfce4-notifyd"] floating enable;border none; focus mode_toggle
# Switch bépo/azerty
bindsym $ms+a exec setxkbmap fr
bindsym $ms+q exec setxkbmap fr bepo
# Startup
exec --no-startup-id nm-applet
exec --no-startup-id guake
## Wallpaper
exec --no-startup-id nitrogen --restore
exec --no-startup-id xflux -l 47.2184 -g -1.5536
# Pulse Audio controls
bindsym XF86AudioRaiseVolume exec pactl set-sink-volume 0 +5% #increase sound volume
bindsym XF86AudioLowerVolume exec pactl set-sink-volume 0 -- -5% #decrease sound volume
bindsym XF86AudioMute exec pactl set-sink-mute 0 toggle # mute sound
# Sreen brightness controls
bindsym XF86MonBrightnessUp exec xbacklight -inc 10 # increase screen brightness
bindsym XF86MonBrightnessDown exec xbacklight -dec 10 # decrease screen brightness
\ No newline at end of file
# i3status configuration file.
# see "man i3status" for documentation.
# It is important that this file is edited as UTF-8.
# The following line should contain a sharp s:
# ß
# If the above line is not correctly displayed, fix your editor first!
general {
colors = true
interval = 5
color_good = "#859900"
color_degraded = "#CB4B16"
color_bad = "#DC322F"
}
order += "disk /"
order += "wireless wlan0"
order += "ethernet eth0"
order += "tztime local"
wireless wlan0 {
format_up = "W: (%quality at %essid)"
format_down = "W: down"
}
ethernet eth0 {
# if you use %speed, i3status requires root privileges
format_up = "E: %ip (%speed)"
format_down = "E: down"
}
tztime local {
format = "%Y-%m-%d %H:%M:%S"
}
disk "/" {
format = "%avail free"
}
.oh-my-zsh @ 96e4e5dd
Subproject commit 96e4e5dd032d2df75f87d5b3e5594d527c655b16
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window
bind v split-window -h
bind Space split-window -v
# ctsr pane traversal
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# new window
unbind m
bind-key m new-window
# swap window to the beginning
bind L swap-window -t +1
bind H swap-window -t -1
# reload tmux conf
bind-key R source-file ~/.tmux.conf \; display "Config reloaded"
set -g status-fg colour250
set -g status-bg colour016
# left side of status bar
set -g status-left-length 30
set -g status-left '#[fg=colour016,bg=colour24,nobold]⮀#[fg=colour250,bg=colour24,bold] 😎 #W #[fg=colour24,bg=colour016,nobold]⮀'
# right side of status bar
set -g status-right-length 30
set -g status-right '#[fg=colour24,bg=colour016,nobold]⮂#[fg=colour250,bg=colour24,bold] %Y-%m-%d - %H:%M #[fg=colour016,bg=colour24,nobold]⮂'
# status bar options
set-option -g status-justify centre # alignment of windows
set -g window-status-format ' #W ' # Inactive windows in status bar
set -g window-status-current-format '#[fg=colour250,bg=colour24,bold] #W '
# message bar
set -g message-fg colour250
set -g message-bg colour24
set -g message-attr bold
set -g pane-border-fg colour233
set-option -g pane-active-border-fg colour24
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window
bind v split-window -h
bind Space split-window -v
# ctsr pane traversal
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# new window
unbind m
bind-key m new-window
# swap window to the beginning
bind L swap-window -t +1
bind H swap-window -t -1
# reload tmux conf
bind-key R source-file ~/.tmux.conf \; display "Config reloaded"
set -g status-fg colour250
set -g status-bg colour016
# left side of status bar
set -g status-left-length 30
set -g status-left '#[fg=colour016,bg=colour24,nobold]⮀#[fg=colour250,bg=colour24,bold] 😎 #W #[fg=colour24,bg=colour016,nobold]⮀'
# right side of status bar
set -g status-right-length 30
set -g status-right '#[fg=colour24,bg=colour016,nobold]⮂#[fg=colour250,bg=colour24,bold] %Y-%m-%d - %H:%M #[fg=colour016,bg=colour24,nobold]⮂'
# status bar options
set-option -g status-justify centre # alignment of windows
set -g window-status-format ' #W ' # Inactive windows in status bar
set -g window-status-current-format '#[fg=colour250,bg=colour24,bold] #W '
# message bar
set -g message-fg colour250
set -g message-bg colour24
set -g message-attr bold
set -g pane-border-fg colour233
set -g pane-active-border-fg colour24
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window
bind v split-window -h
bind Space split-window -v
# ctsr pane traversal
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# new window
unbind m
bind-key m new-window
# swap window to the beginning
bind L swap-window -t +1
bind H swap-window -t -1
# reload tmux conf
bind-key R source-file ~/.tmux.conf \; display "Config reloaded"
set -g status-fg colour250
set -g status-bg colour016
# left side of status bar
set -g status-left-length 30
set -g status-left '#[fg=colour016,bg=colour24,nobold]⮀#[fg=colour250,bg=colour24,bold] 😎 #W #[fg=colour24,bg=colour016,nobold]⮀'
# right side of status bar
set -g status-right-length 30
set -g status-right '#[fg=colour24,bg=colour016,nobold]⮂#[fg=colour250,bg=colour24,bold] %Y-%m-%d - %H:%M #[fg=colour016,bg=colour24,nobold]⮂'
# status bar options
set-option -g status-justify centre # alignment of windows
set -g window-status-format ' #W ' # Inactive windows in status bar
set -g window-status-current-format '#[fg=colour250,bg=colour24,bold] #W '
# message bar
set -g message-fg colour250
set -g message-bg colour24
set -g message-attr bold
set -g pane-border-fg colour233
set -g pane-active-border-fg colour24
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window
bind v split-window -h
bind Space split-window -v
# ctsr pane traversal
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# new window
unbind m
bind-key m new-window
# swap window to the beginning
bind L swap-window -t +1
bind H swap-window -t -1
# reload tmux conf
bind-key R source-file ~/.tmux.conf \; display "Config reloaded"
set -g status-fg colour250
set -g status-bg colour016
# left side of status bar
set -g status-left-length 30
set -g status-left '#[fg=colour016,bg=colour24,nobold]⮀#[fg=colour250,bg=colour24,bold] 😎 #W #[fg=colour24,bg=colour016,nobold]⮀'
# right side of status bar
set -g status-right-length 30
set -g status-right '#[fg=colour24,bg=colour016,nobold]⮂#[fg=colour250,bg=colour24,bold] %Y-%m-%d - %H:%M #[fg=colour016,bg=colour24,nobold]⮂'
# status bar options
set-option -g status-justify centre # alignment of windows
set -g window-status-format ' #W ' # Inactive windows in status bar
set -g window-status-current-format '#[fg=colour250,bg=colour24,bold] #W '
# message bar
set -g message-fg colour250
set -g message-bg colour24
set -g message-attr bold
set -g pane-border-fg colour233
set -g pane-active-border-fg colour24
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window
bind v split-window -h
bind Space split-window -v
# ctsr pane traversal
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# new window
unbind m
bind-key m new-window
# swap window to the beginning
bind L swap-window -t +1
bind H swap-window -t -1
# reload tmux conf
bind-key R source-file ~/.tmux.conf \; display "Config reloaded"
set -g status-fg colour250
set -g status-bg colour016
# left side of status bar
set -g status-left-length 30
set -g status-left '#[fg=colour016,bg=colour24,nobold]⮀#[fg=colour250,bg=colour24,bold] 😎 #W #[fg=colour24,bg=colour016,nobold]⮀'
# right side of status bar
set -g status-right-length 30
set -g status-right '#[fg=colour24,bg=colour016,nobold]⮂#[fg=colour250,bg=colour24,bold] %Y-%m-%d - %H:%M #[fg=colour016,bg=colour24,nobold]⮂'
# status bar options
set-option -g status-justify centre # alignment of windows
set -g window-status-format ' #W ' # Inactive windows in status bar
set -g window-status-current-format '#[fg=colour250,bg=colour24,bold] #W '
# message bar
set -g message-fg colour250
set -g message-bg colour24
set -g message-attr bold
set -g pane-border-fg colour233
set -g pane-active-border-fg colour24
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window
bind v split-window -h
bind Space split-window -v
# ctsr pane traversal
bind c select-pane -L
bind t select-pane -D
bind s select-pane -U
bind r select-pane -R
# new window
unbind m
bind-key m new-window
# swap window to the beginning
bind L swap-window -t +1
bind H swap-window -t -1
# reload tmux conf
bind-key R source-file ~/.tmux.conf \; display "Config reloaded"
set -g status-fg colour250
set -g status-bg colour016
# left side of status bar
set -g status-left-length 30
set -g status-left '#[fg=colour016,bg=colour24,nobold]⮀#[fg=colour250,bg=colour24,bold] 😎 #W #[fg=colour24,bg=colour016,nobold]⮀'
# right side of status bar
set -g status-right-length 30
set -g status-right '#[fg=colour24,bg=colour016,nobold]⮂#[fg=colour250,bg=colour24,bold] %Y-%m-%d - %H:%M #[fg=colour016,bg=colour24,nobold]⮂'
# status bar options
set-option -g status-justify centre # alignment of windows
set -g window-status-format ' #W ' # Inactive windows in status bar
set -g window-status-current-format '#[fg=colour250,bg=colour24,bold] #W '
# message bar
set -g message-fg colour250
set -g message-bg colour24
set -g message-attr bold
set -g pane-border-fg colour233
set -g pane-active-border-fg colour24
set-option -g default-terminal screen-256color
set-option -g default-shell /bin/zsh
# rebind default keys
set -g prefix C-Space
unbind C-b
bind C-Space send-prefix
# split window