Last active
May 30, 2017 12:18
-
-
Save melihucar/9fee48b6952bd80459496a3ef6b6399e to your computer and use it in GitHub Desktop.
.tmux.conf
This file contains hidden or 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 http://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 | |
| new_window pixel 3 | |
| focus_follows_mouse yes | |
| force_focus_wrapping yes | |
| set $gray1 #373d48 | |
| set $gray2 #29303a | |
| client.focused $gray1 $gray1 #FFFFFF $gray1 | |
| client.focused_inactive $gray2 $gray2 #FFFFFF #000000 | |
| client.unfocused $gray2 $gray2 #FFFFFF #000000 | |
| # 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+q kill | |
| # start dmenu (a program launcher) | |
| bindsym $mod+space exec "dmenu_run -nb black -p 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+h move left | |
| bindsym $mod+Shift+j move down | |
| bindsym $mod+Shift+k move up | |
| bindsym $mod+Shift+l 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+g split h | |
| # split in vertical orientation | |
| bindsym $mod+v split v | |
| # enter fullscreen mode for the focused container | |
| 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+Shift+f 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+1 workspace 1; layout default | |
| bindsym $mod+2 workspace 2 | |
| bindsym $mod+3 workspace 3 | |
| bindsym $mod+4 workspace 4 | |
| bindsym $mod+5 workspace 5 | |
| bindsym $mod+6 workspace 6 | |
| bindsym $mod+7 workspace 7 | |
| bindsym $mod+8 workspace 8 | |
| bindsym $mod+9 workspace 9 | |
| bindsym $mod+0 workspace 10; layout default | |
| # move focused container to workspace | |
| bindsym $mod+Shift+1 move container to workspace 1 | |
| bindsym $mod+Shift+2 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+7 move container to workspace 7 | |
| bindsym $mod+Shift+8 move container to workspace 8 | |
| bindsym $mod+Shift+9 move container to workspace 9 | |
| bindsym $mod+Shift+0 move container to workspace 10 | |
| # 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 | |
| bindsym Mod1+Control+l exec "dm-tool lock" | |
| # 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 10 px or 10 ppt | |
| bindsym j resize grow height 10 px or 10 ppt | |
| bindsym k resize shrink height 10 px or 10 ppt | |
| bindsym l 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+r mode "resize" | |
| # Start i3bar to display a workspace bar (plus the system information i3status | |
| # finds out, if available) | |
| #bar { | |
| # status_command i3status | |
| # tray_output primary | |
| #} | |
| # Shortcuts | |
| bindsym Control+F12 exec amixer -D pulse set Master 5%+ unmute | |
| bindsym XF86AudioRaiseVolume exec amixer -D pulse set Master 5%+ unmute | |
| bindsym Control+F11 exec amixer -D pulse set Master 5%- unmute | |
| bindsym XF86AudioLowerVolume exec amixer -D pulse set Master 5%- unmute | |
| bindsym Control+F10 exec amixer -D pulse set Master toggle | |
| bindsym XF86AudioMute exec amixer -D pulse set Master toggle | |
| # Multimedia | |
| bindsym XF86AudioPlay exec playerctl play-pause | |
| bindsym XF86AudioPause exec playerctl pause | |
| bindsym XF86AudioNext exec playerctl next | |
| bindsym XF86AudioPrev exec playerctl previous | |
| bindsym Control+F9 exec playerctl next | |
| bindsym Control+F8 exec playerctl play-pause | |
| bindsym Control+F7 exec playerctl previous | |
| # Monitor setup | |
| exec --no-startup-id xrandr --output VGA-0 --auto --right-of HDMI-0 | |
| exec --no-startup-id nitrogen --restore | |
| exec --no-startup-id emojione-picker | |
| exec --no-startup-id redshift | |
| # Start i3bar to display a workspace bar (plus the system information i3status | |
| # finds out, if available) | |
| bar { | |
| colors { | |
| background #1C2224 | |
| statusline #ffffff | |
| separator #354a4f | |
| focused_workspace #37C8AB #37C8AB #1C2224 | |
| active_workspace #333333 #5f676a #ffffff | |
| inactive_workspace #333333 #222222 #888888 | |
| urgent_workspace #aa0000 #990000 #ffffff | |
| } | |
| position top | |
| status_command i3status -c ~/.config/i3/statusbar | |
| } | |
| # Colors | |
| client.focused #37C8AB #37C8AB #ffffff | |
| client.unfocused #666666 #666666 #ffffff | |
| client.urgent #aa0000 #990000 #ffffff | |
| exec_always gsettings set org.gnome.desktop.background show-desktop-icons false | |
| exec_always gsettings set org.nemo.desktop show-desktop-icons false |
This file contains hidden or 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
| # github.com/rafi i3status config | |
| # 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 | |
| #color_good = "#BBBBBB" | |
| #color_bad = "#CC1616" | |
| #color_degraded = "#55858E" | |
| interval = 5 | |
| } | |
| order += "volume master" | |
| order += "load" | |
| order += "cpu_usage" | |
| #order += "cpu_temperature 0" | |
| #order += "cpu_temperature 1" | |
| #order += "cpu_temperature 2" | |
| #order += "cpu_temperature 3" | |
| #order += "disk /" | |
| #order += "disk /media/media" | |
| #order += "ethernet eth0" | |
| #order += "ipv6" | |
| #order += "run_watch DHCP" | |
| #order += "run_watch VPN" | |
| #order += "wireless wlp3s0" | |
| order += "tztime time" | |
| volume master { | |
| format = " ♪: %volume " | |
| device = "default" | |
| mixer = "Master" | |
| mixer_idx = 0 | |
| # termsyn font | |
| format = " %volume " | |
| } | |
| load { | |
| format = " Δ: %1min " | |
| # termsyn font | |
| format = " %1min" | |
| } | |
| cpu_usage { | |
| format = "%usage " | |
| } | |
| # | |
| ##cpu_temperature 0 { | |
| # format = " ± %degrees°" | |
| # path = "/sys/devices/platform/coretemp.0/temp2_input" | |
| # max_threshold = 95 | |
| #} | |
| # | |
| #cpu_temperature 1 { | |
| # format = "%degrees°" | |
| # path = "/sys/devices/platform/coretemp.0/temp3_input" | |
| # max_threshold = 95 | |
| #} | |
| # | |
| #cpu_temperature 2 { | |
| # format = "%degrees°" | |
| # path = "/sys/devices/platform/coretemp.0/temp4_input" | |
| # max_threshold = 95 | |
| #} | |
| # | |
| #cpu_temperature 3 { | |
| # format = "%degrees° " | |
| # path = "/sys/devices/platform/coretemp.0/temp5_input" | |
| # max_threshold = 95 | |
| #} | |
| #disk "/" { | |
| # format = " ¨ %avail:/ " | |
| #} | |
| # | |
| #disk "/media/media" { | |
| # format = " ¨ %avail:m " | |
| #} | |
| #wireless wlp3s0{ | |
| # format_up = " W: (%quality at %essid) %ip " | |
| # format_down = " ☡ WiFi " | |
| #} | |
| #ethernet eth0 { | |
| # # if you use %speed, i3status requires root privileges | |
| # format_up = " Ω: %ip " | |
| # format_down = " ∅ eth0 " | |
| # | |
| # # termsyn font | |
| # format_up = " %ip " | |
| # format_down = " Ð eth0 " | |
| #} | |
| #run_watch DHCP { | |
| # pidfile = "/var/run/dhclient*.pid" | |
| #} | |
| #run_watch VPN { | |
| # pidfile = "/var/run/vpnc/pid" | |
| #} | |
| tztime time{ | |
| format = "%time " | |
| format_time = "%d %h, %H:%M" | |
| # termsyn font | |
| } |
This file contains hidden or 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
| # improve colors | |
| set -g default-terminal 'screen-256color' | |
| # act like vim | |
| setw -g mode-keys vi | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| bind-key -r C-h select-window -t :- | |
| bind-key -r C-l select-window -t :+ | |
| set -g prefix2 C-s | |
| # start window numbers at 1 to match keyboard order with tmux window order | |
| set -g base-index 1 | |
| set-window-option -g pane-base-index 1 | |
| # renumber windows sequentially after closing any of them | |
| set -g renumber-windows on | |
| # soften status bar color from harsh green to light gray | |
| set -g status-bg '#666666' | |
| set -g status-fg '#aaaaaa' | |
| # remove administrative debris (session name, hostname, time) in status bar | |
| set -g status-left '' | |
| set -g status-right '' | |
| # increase scrollback lines | |
| set -g history-limit 10000 | |
| # prefix -> back-one-character | |
| bind-key C-b send-prefix | |
| # prefix-2 -> forward-incremental-history-search | |
| bind-key C-s send-prefix -2 | |
| # Local config | |
| set -g default-terminal "screen-256color" | |
| # Change prefix key to ` | |
| unbind C-b | |
| set-option -g prefix C-a | |
| # we might need ` at some point, allow switching | |
| bind-key C-a set-option -g prefix C-a | |
| bind-key C-b set-option -g prefix ` | |
| # Default key repeat is 500ms, lower to 125ms | |
| # otherwise hitting up arrow right after moving to new window counts | |
| # as moving back to window above | |
| set -g repeat-time 125 | |
| #bind-key C-a last-window | |
| # count from 1 | |
| set -g base-index 1 | |
| # More straight forward key bindings for splitting | |
| unbind % | |
| bind | split-window -h | |
| bind - split-window -v | |
| # vim style movement | |
| bind h select-pane -L | |
| bind j select-pane -D | |
| bind k select-pane -U | |
| bind l select-pane -R | |
| # vim key in copy mode | |
| setw -g mode-keys vi | |
| # History | |
| set -g history-limit 1000 | |
| # Terminal emulator window title | |
| set -g set-titles on | |
| set -g set-titles-string '#S:#I.#P #W' | |
| set-option -g status-position top | |
| set -g status-utf8 on | |
| set -g status-bg black | |
| set -g status-fg white | |
| set -g status-interval 60 | |
| set -g status-left-length 30 | |
| #set -g status-left '[#I:#P]' # Show window:pane numbers | |
| set -g status-left '#[fg=colour237]#I:#P #[fg=white]#(whoami)@#H ' | |
| set -g status-justify left | |
| set -g status-right-length 120 | |
| set -g status-right '#[fg=gray]%a %d %b %R' | |
| # Notifying if other windows has activities | |
| #setw -g monitor-activity on | |
| set -g visual-activity on | |
| # Window modes color | |
| setw -g mode-bg colour240 | |
| setw -g mode-fg colour255 | |
| # Message/command input colors | |
| set -g message-bg colour240 | |
| set -g message-fg colour255 | |
| # Window status colors | |
| setw -g window-status-bg black | |
| setw -g window-status-fg colour248 | |
| #setw -g window-status-alert-attr underscore | |
| #setw -g window-status-alert-bg colour235 | |
| #setw -g window-status-alert-fg colour248 | |
| setw -g window-status-current-attr bright | |
| setw -g window-status-current-bg colour235 | |
| setw -g window-status-current-fg colour248 | |
| # Clock | |
| setw -g clock-mode-colour colour250 | |
| setw -g clock-mode-style 24 | |
| #setw -g mode-mouse on # Mouse scroll / select / copy | |
| # `p pastes tmux buffer to X buffer | |
| bind-key p run-shell "tmux show-buffer | xsel -i" |
This file contains hidden or 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
| call plug#begin('~/.vim/plugged') | |
| Plug 'tpope/vim-sensible' | |
| Plug 'Xuyuanp/nerdtree-git-plugin' | Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } | |
| Plug 'jistr/vim-nerdtree-tabs' | |
| Plug 'airblade/vim-gitgutter' | |
| Plug 'itchyny/lightline.vim' | |
| Plug 'tpope/vim-surround' | |
| Plug 'editorconfig/editorconfig-vim' | |
| Plug 'bronson/vim-trailing-whitespace' | |
| " Fuzzy file finder | |
| Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' } | |
| " Syntax highlighting | |
| Plug 'stephpy/vim-yaml' | |
| Plug 'fatih/vim-go' | |
| Plug 'Glench/Vim-Jinja2-Syntax' | |
| " Syntax checking | |
| Plug 'scrooloose/syntastic' | |
| Plug 'nvie/vim-flake8' | |
| " Autocomplete | |
| Plug 'davidhalter/jedi-vim' | |
| Plug 'Valloric/YouCompleteMe' | |
| Plug 'jiangmiao/auto-pairs' | |
| " Code folding for python | |
| Plug 'tmhedberg/SimpylFold' | |
| " Ctags | |
| Plug 'majutsushi/tagbar' | |
| " File search panel | |
| Plug 'ctrlpvim/ctrlp.vim' | |
| " Colorscheme | |
| Plug 'morhetz/gruvbox' | |
| " Productivity | |
| Plug 'terryma/vim-multiple-cursors' | |
| Plug 'mattn/emmet-vim' | |
| call plug#end() | |
| " Encoding | |
| set encoding=utf-8 | |
| " Colorscheme | |
| syntax on | |
| set background=dark | |
| colorscheme gruvbox | |
| " All key mappings | |
| " ~~~~~~~~~~~~~~~~~~~ | |
| " Set leader | |
| let mapleader = "," | |
| " Set case-sensitivity in search | |
| set ignorecase! | |
| " Only hide buffers when changing between them; | |
| " this way we can keep their undo histories. | |
| set hidden | |
| " Clipboard | |
| set clipboard=unnamed | |
| " Nerdtree toggle | |
| noremap <leader>t :NERDTreeToggle<CR> | |
| " Python spesific config | |
| " ~~~~~~~~~~~~~~~~~~~~~~ | |
| " Set spaces insted of tabs | |
| autocmd FileType python setlocal shiftwidth=4 expandtab tabstop=4 softtabstop=4 | |
| " Keep python code less than 80 cols | |
| autocmd FileType python setlocal colorcolumn=80 | |
| autocmd FileType python setlocal colorcolumn=120 | |
| " Omnifunc for python | |
| autocmd FileType python set omnifuncpythoncomplete#Complete | |
| " Virtualenv autocomplete | |
| "python << EOF | |
| "import os | |
| "import sys | |
| "if 'VIRTUAL_ENV' in os.environ: | |
| " project_base_dir = os.environ['VIRTUAL_ENV'] | |
| " activate_this = os.path.join(project_base_dir, 'bin/activate_this.py') | |
| " execfile(activate_this, dict(__file__=activate_this)) | |
| "EOF | |
| " NERDTree settings | |
| let NERDTreeIgnore = ['\.pyc$', '\.egg$', '\.o$', '\~$', '__pycache__$', '\.egg-info$'] | |
| let g:flake8_ignore="E128,E501" | |
| " Map main trigger for fuzzy file finder | |
| let g:fzf_height = '30%' | |
| " I CAN HAZ NORMAL REGEXES? | |
| nnoremap / /\v | |
| vnoremap / /\v | |
| " Highlight VCS conflict markers | |
| match ErrorMsg '^\(<\|=\|>\)\{7\}\([^=].\+\)\?$' | |
| " Line numbers | |
| set number | |
| " Vim backup dirs | |
| set backupdir=~/.vim/backup_files | |
| set directory=~/.vim/swap_files | |
| set directory=~/.vim/undo_files | |
| " Code folding for pythonm | |
| let g:SimpylFold_docstring_preview = 1 | |
| autocmd BufWinEnter *.py setlocal foldexpr=SimpylFold(v:lnum) foldmethod=expr | |
| autocmd BufWinLeave *.py setlocal foldexpr< foldmethod< | |
| let g:SimplyFold_docstring_preview=1 | |
| hi Normal guibg=NONE ctermbg=NONE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment