dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 8265034a15a67e70b5bb9b53566441013ff05619
parent 6dcaa5f25df9ec36a97b973802f704e431afe4a3
Author: Pablo Cárdenas <pablo-cardenas@outlook.com>
Date:   Thu,  2 Aug 2018 20:12:16 -0500

Changing repository's shape

Diffstat:
DX11/.Xresources.d/rxvt-unicode | 22----------------------
DX11/.Xresources.d/themes/gruvbox-dark.xresources | 37-------------------------------------
DX11/.Xresources.d/themes/gruvbox-light.xresources | 36------------------------------------
DX11/.Xresources.d/themes/solarized.xresources | 68--------------------------------------------------------------------
DX11/.Xresources.d/themes/zenburn.xresources | 23-----------------------
Dbash/.bash_logout | 2--
Dbash/.bashrc | 28----------------------------
Dconky/.conkyrc | 74--------------------------------------------------------------------------
Ahome/.bash/aliases.bash | 4++++
Ahome/.bash/colors.bash | 20++++++++++++++++++++
Ahome/.bash/env.bash | 9+++++++++
Ahome/.bash/functions.bash | 11+++++++++++
Ahome/.bash/prompt.bash | 25+++++++++++++++++++++++++
Rbash/.bash_profile -> home/.bash_profile | 0
Ahome/.bashrc | 39+++++++++++++++++++++++++++++++++++++++
Ahome/.config/nvim/.gitignore | 2++
Ahome/.config/nvim/colorscheme.vim | 1+
Ahome/.config/nvim/init.vim | 169+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Ahome/.config/nvim/plugins.vim | 46++++++++++++++++++++++++++++++++++++++++++++++
Rgit/.gitconfig -> home/.gitconfig | 0
Rlatexmk/.latexmkrc -> home/.latexmkrc | 0
Roctave/.octaverc -> home/.octaverc | 0
Ahome/.tmux.conf | 5+++++
Di3/.config/i3/config | 171-------------------------------------------------------------------------------
RX11/.Xresources -> linux/.Xresources | 0
Alinux/.Xresources.d/colors | 45+++++++++++++++++++++++++++++++++++++++++++++
RX11/.Xresources.d/fonts -> linux/.Xresources.d/fonts | 0
Alinux/.Xresources.d/rxvt-unicode | 29+++++++++++++++++++++++++++++
Rcompton/.compton.conf -> linux/.compton.conf | 0
Alinux/.config/i3/config | 177+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alinux/.config/polybar/config | 229+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alinux/.config/polybar/launch.sh | 13+++++++++++++
Alinux/.fonts.conf | 12++++++++++++
RX11/.xinitrc -> linux/.xinitrc | 0
Dopenbox/.config/openbox/autostart | 2--
Dopenbox/.config/openbox/environment | 10----------
Dopenbox/.config/openbox/menu.xml | 74--------------------------------------------------------------------------
Dopenbox/.config/openbox/rc.xml | 784-------------------------------------------------------------------------------
Dtint2/.config/tint2/tint2rc | 194-------------------------------------------------------------------------------
Dtint2/.config/tint2/vertical-neutral-icons.tint2rc | 212-------------------------------------------------------------------------------
Dtmux/.tmux.conf | 35-----------------------------------
Dvim/.vim/gvimrc | 27---------------------------
Dvim/.vim/vimrc | 124-------------------------------------------------------------------------------
Dzathura/.config/zathura/zathurarc | 1-
44 files changed, 836 insertions(+), 1924 deletions(-)

diff --git a/X11/.Xresources.d/rxvt-unicode b/X11/.Xresources.d/rxvt-unicode @@ -1,22 +0,0 @@ -URxvt*geometry: 80x30 -URxvt*font: xft:Fira Mono:book:pixelsize=12;xft:FontAwesome -URxvt*boldFont: xft:Fira Mono:bold:pixelsize=12;xft:FontAwesome -!URxvt*font: xft:xos4 Terminus:pixelsize=12 -!URxvt*boldFont: xft:xos4 Terminus:pixelsize=12 -URxvt.intensityStyles: false -URxvt.scrollBar: false -URxvt.internalBorder: 0 -URxvt.saveLines: 20000 -URxvt.cursorBlink: true - -! Para clases 480p -!URxvt*font: xft:xos4 Terminus:pixelsize=16:bold -!URxvt*boldFont: xft:xos4 Terminus:pixelsize=16:bold -!URxvt.cursorBlink: true - -! Para clases 720p -!URxvt*font: xft:Dejavu Sans Mono:size=13:style=Regular -!URxvt*boldFont: xft:Dejavu Sans Mono:size=13:style=Bold -!URxvt*italicFont: xft:Dejavu Sans Mono:size=13:style=Italic -!URxvt*boldItalicFont: xft:Dejavu Sans Mono:size=13:style=Bold Italic -!URxvt.cursorBlink: true diff --git a/X11/.Xresources.d/themes/gruvbox-dark.xresources b/X11/.Xresources.d/themes/gruvbox-dark.xresources @@ -1,37 +0,0 @@ -! ----------------------------------------------------------------------------- -! File: gruvbox-dark.xresources -! Description: Retro groove colorscheme generalized -! Author: morhetz <morhetz@gmail.com> -! Source: https://github.com/morhetz/gruvbox-generalized -! Last Modified: 6 Sep 2014 -! ----------------------------------------------------------------------------- - -! hard contrast: *background: #1d2021 -*background: #282828 -! soft contrast: *background: #32302f -*foreground: #ebdbb2 -! Black + DarkGrey -!*color0: #282828 -*color0: #000000 -*color8: #928374 -! DarkRed + Red -*color1: #cc241d -*color9: #fb4934 -! DarkGreen + Green -*color2: #98971a -*color10: #b8bb26 -! DarkYellow + Yellow -*color3: #d79921 -*color11: #fabd2f -! DarkBlue + Blue -*color4: #458588 -*color12: #83a598 -! DarkMagenta + Magenta -*color5: #b16286 -*color13: #d3869b -! DarkCyan + Cyan -*color6: #689d6a -*color14: #8ec07c -! LightGrey + White -*color7: #a89984 -*color15: #ebdbb2 diff --git a/X11/.Xresources.d/themes/gruvbox-light.xresources b/X11/.Xresources.d/themes/gruvbox-light.xresources @@ -1,36 +0,0 @@ -! ----------------------------------------------------------------------------- -! File: gruvbox-light.xresources -! Description: Retro groove colorscheme generalized -! Author: morhetz <morhetz@gmail.com> -! Source: https://github.com/morhetz/gruvbox-generalized -! Last Modified: 6 Sep 2014 -! ----------------------------------------------------------------------------- - -! hard contrast: *background: #f9f5d7 -*background: #fbf1c7 -! soft contrast: *background: #f2e5bc -*foreground: #3c3836 -! Black + DarkGrey -*color0: #fdf4c1 -*color8: #928374 -! DarkRed + Red -*color1: #cc241d -*color9: #9d0006 -! DarkGreen + Green -*color2: #98971a -*color10: #79740e -! DarkYellow + Yellow -*color3: #d79921 -*color11: #b57614 -! DarkBlue + Blue -*color4: #458588 -*color12: #076678 -! DarkMagenta + Magenta -*color5: #b16286 -*color13: #8f3f71 -! DarkCyan + Cyan -*color6: #689d6a -*color14: #427b58 -! LightGrey + White -*color7: #7c6f64 -*color15: #3c3836 diff --git a/X11/.Xresources.d/themes/solarized.xresources b/X11/.Xresources.d/themes/solarized.xresources @@ -1,68 +0,0 @@ -! Solarized color scheme for the X Window System -! -! http://ethanschoonover.com/solarized - - -! Common - -#define S_yellow #b58900 -#define S_orange #cb4b16 -#define S_red #dc322f -#define S_magenta #d33682 -#define S_violet #6c71c4 -#define S_blue #268bd2 -#define S_cyan #2aa198 -#define S_green #859900 - - -! Dark - -#define S_base03 #002b36 -#define S_base02 #073642 -#define S_base01 #586e75 -#define S_base00 #657b83 -#define S_base0 #839496 -#define S_base1 #93a1a1 -#define S_base2 #eee8d5 -#define S_base3 #fdf6e3 - - -! Light - -! #define S_base03 #fdf6e3 -! #define S_base02 #eee8d5 -! #define S_base01 #93a1a1 -! #define S_base00 #839496 -! #define S_base0 #657b83 -! #define S_base1 #586e75 -! #define S_base2 #073642 -! #define S_base3 #002b36 - - -URxvt*depth: 32 -URxvt*background: [80]S_base03 - -*background: S_base03 -*foreground: S_base0 -*fading: 40 -*fadeColor: S_base03 -*cursorColor: S_base1 -*pointerColorBackground: S_base01 -*pointerColorForeground: S_base1 - -*color0: S_base02 -*color1: S_red -*color2: S_green -*color3: S_yellow -*color4: S_blue -*color5: S_magenta -*color6: S_cyan -*color7: S_base2 -*color9: S_orange -*color8: S_base03 -*color10: S_base01 -*color11: S_base00 -*color12: S_base0 -*color13: S_violet -*color14: S_base1 -*color15: S_base3 diff --git a/X11/.Xresources.d/themes/zenburn.xresources b/X11/.Xresources.d/themes/zenburn.xresources @@ -1,23 +0,0 @@ -URxvt*termName: rxvt-256color -URxvt*xftAntialias: true -URxvt*background: #3f3f3f -URxvt*foreground: #dcdccc -URxvt*cursorColor: #aaaaaa -URxvt*colorUL: #366060 -URxvt*underlineColor: #dfaf8f -URxvt*color0: #3f3f3f -URxvt*color1: #cc9393 -URxvt*color2: #7f9f7f -URxvt*color3: #d0bf8f -URxvt*color4: #6ca0a3 -URxvt*color5: #dc8cc3 -URxvt*color6: #93e0e3 -URxvt*color7: #dcdccc -URxvt*color8: #000000 -URxvt*color9: #dca3a3 -URxvt*color10: #bfebbf -URxvt*color11: #f0dfaf -URxvt*color12: #8cd0d3 -URxvt*color13: #dc8cc3 -URxvt*color14: #93e0e3 -URxvt*color15: #ffffff diff --git a/bash/.bash_logout b/bash/.bash_logout @@ -1,2 +0,0 @@ -# Clear the screen for security's sake. -clear diff --git a/bash/.bashrc b/bash/.bashrc @@ -1,28 +0,0 @@ -# If not running interactively, don't do anything -[[ $- != *i* ]] && return - -# History operations: modify the way command history is stored. -HISTCONTROL=ignoreboth # don't put duplicate lines on history -shopt -s histappend # append to history instead of overwriting -HISTSIZE=1000 # max number of commands to save in history -HISTFILESIZE=2000 # max number of lines in history file - -# Re-evaluate window size after each command. Useful on X terminals -shopt -s checkwinsize - -if [ -f /etc/bash_completion ] && ! shopt -oq posix; then - . /etc/bash_completion -fi - -# Enable colors if the program is available -if [ -x /usr/bin/dircolors ]; then - alias ls='ls --color=auto' - alias grep='grep --color=auto' - alias fgrep='fgrep --color=auto' - alias egrep='egrep --color=auto' -fi - -export EDITOR=nvim - -# Para clases -#export PS1='\[\033[01;31m\]\W $\[\033[00m\] ' diff --git a/conky/.conkyrc b/conky/.conkyrc @@ -1,74 +0,0 @@ --- vim: ts=4 sw=4 noet ai cindent syntax=lua - -conky.config = { - alignment = 'top_right', - background = false, - border_width = 1, - cpu_avg_samples = 2, - default_color = 'white', - default_outline_color = 'white', - default_shade_color = 'white', - draw_borders = false, - draw_graph_borders = true, - draw_outline = false, - draw_shades = false, - use_xft = true, - font = 'xos4 Terminus:pixelsize=12', - gap_x = 5, - gap_y = 20, - minimum_height = 5, - minimum_width = 5, - net_avg_samples = 2, - no_buffers = true, - out_to_console = false, - out_to_stderr = false, - extra_newline = false, - own_window = false, - own_window_class = 'Conky', - own_window_type = 'desktop', - stippled_borders = 0, - update_interval = 1.0, - uppercase = false, - use_spacer = 'none', - show_graph_scale = false, - show_graph_range = false -} - -conky.text = [[ -${font xos4 Terminus:pixelsize=14}SYSTEM $hr $font -${color grey}Host: $color${nodename} -${color grey}Uptime: $color$uptime -${color grey}Kernel: $color$kernel -${color grey}Processes: $color$processes \ -${color grey}Running: $color$running_processes - -${font xos4 Terminus:pixelsize=14}CPU $hr $font -${color grey}Frequency: $color$freq MHz -${color grey}CPU 0:$color ${cpu cpu0}% ${cpubar cpu0 4} -${color grey}CPU 1:$color ${cpu cpu1}% ${cpubar cpu1 4} -${color grey}CPU 2:$color ${cpu cpu2}% ${cpubar cpu2 4} -${color grey}CPU 3:$color ${cpu cpu3}% ${cpubar cpu3 4} - -${font xos4 Terminus:pixelsize=14}MEMORY $hr $font -${color grey}RAM: $color$mem/$memmax $memperc% ${membar 6} -${color grey}Swap: $color$swap/$swapmax $swapperc% ${swapbar 6} - -${font xos4 Terminus:pixelsize=14}File systems $hr $font -${color grey}/ $color${fs_used /}/${fs_size /} ${fs_bar 6 /} -${color grey}/home $color${fs_used /home}/${fs_size /home} ${fs_bar 6 /home} - -${font xos4 Terminus:pixelsize=14}NETWORKING $hr $font -${color grey}enp4s0: - ${color grey}↑ $color${upspeedf enp4s0}K/${totalup enp4s0}$alignr\ -${color grey}↓ $color${alignr}${downspeedf enp4s0}K/${totaldown enp4s0} -${color grey}wlp9s0: - ${color grey}↑ $color${upspeedf wlp9s0}K/${totalup wlp9s0}$alignr\ -${color grey}↓ $color${alignr}${downspeedf wlp9s0}K/${totaldown wlp9s0} - -${font xos4 Terminus:pixelsize=14}TOP $hr $font${color grey} -Name PID CPU% MEM% -$color${top name 1} ${color gray}${top pid 1} $color${top cpu 1} ${color gray}${top mem 1} -${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} -${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} -${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4} -]] diff --git a/home/.bash/aliases.bash b/home/.bash/aliases.bash @@ -0,0 +1,4 @@ +# system +alias ll='ls -alFh' +alias la='ls -A' +alias vim='nvim' diff --git a/home/.bash/colors.bash b/home/.bash/colors.bash @@ -0,0 +1,20 @@ +# Note that BSD ls (Mac) and GNU ls (Linux) have different flags for +# toggling color on command output. Therefore we have to check which +# OS are we supporting. + +case `uname` in + Darwin*) + alias ls='ls -G' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' + ;; + Linux*) + if [ -x /usr/bin/dircolors ]; then + alias ls='ls --color=auto' + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' + fi + ;; +esac diff --git a/home/.bash/env.bash b/home/.bash/env.bash @@ -0,0 +1,9 @@ +export EDITOR=nvim +export PAGER=less +export LANG=es_ES.UTF-8 +export BROWSER=qutebrowser + +# /usr/bin/open will be present on macOS +if [ -x /usr/bin/open ]; then + export BROWSER=open +fi diff --git a/home/.bash/functions.bash b/home/.bash/functions.bash @@ -0,0 +1,11 @@ +# Check if command exists. Actually just runs `command -v` silently. +exists() { command -v "$1" >/dev/null 2>&1 && return 0 || return 1; } + +# Echo to stderr. +echoerr() { echo $@ 1>&2; } + +# Colored messages: info, success, warning, error +cm_info() { tput setaf 6; echoerr "INFO: $@"; tput sgr0; } +cm_success() { tput setaf 2; echoerr "SUCCESS: $@"; tput sgr0; } +cm_warning() { tput setaf 3; echoerr "WARNING: $@"; tput sgr0; } +cm_error() { tput setaf 1; echoerr "ERROR: $@"; tput sgr0; } diff --git a/home/.bash/prompt.bash b/home/.bash/prompt.bash @@ -0,0 +1,25 @@ +__prompt() { + local EXIT_CODE="$?" + local base01='\[\e[1;31m\]' + local base02='\[\e[1;32m\]' + local base03='\[\e[1;33m\]' + local base04='\[\e[1;34m\]' + local base05='\[\e[1;35m\]' + local base06='\[\e[1;36m\]' + local base07='\[\e[1;37m\]' + local base08='\[\e[1;30m\]' + local reset='\[\e[0m\]' + + PS1="\n$base04\u$reset at $base06\h$reset in $base03\w" + + + if [ $EXIT_CODE != 0 ]; then + PS1="$PS1 $base01[$EXIT_CODE]\n$" + else + PS1="$PS1 $base05\n$" + fi + + PS1="$PS1$reset " +} + +export PROMPT_COMMAND=__prompt diff --git a/bash/.bash_profile b/home/.bash_profile diff --git a/home/.bashrc b/home/.bashrc @@ -0,0 +1,39 @@ +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +shopt -s checkwinsize histappend + +HISTCONTROL=ignoreboth +HISTSIZE=10000 +HISTFILESIZE=2000 + + +# TODO: What's a portable way for doing this? +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" + +# Bash completions +if ! shopt -oq posix; then + [ -f /etc/bash_completion ] && source /etc/bash_completion + [ -f /usr/local/etc/bash_completion ] && source /usr/local/etc/bash_completion +fi + +source ~/.bash/colors.bash +source ~/.bash/aliases.bash +source ~/.bash/functions.bash +source ~/.bash/prompt.bash + +for f in ~/.bash/local.d/*.bash; do + if [ -x $f ]; then . $f; fi +done + +export EDITOR=nvim + +# Para clases +#export PS1='\[\033[01;31m\]\W $\[\033[00m\] ' + +# Base16 Shell +BASE16_SHELL_SET_BACKGROUND=false +BASE16_SHELL="$HOME/.base16-manager/chriskempson/base16-shell/" +[ -n "$PS1" ] && \ + [ -s "$BASE16_SHELL/profile_helper.sh" ] && \ + eval "$("$BASE16_SHELL/profile_helper.sh")" diff --git a/home/.config/nvim/.gitignore b/home/.config/nvim/.gitignore @@ -0,0 +1,2 @@ +autoload/plug.vim +plugged diff --git a/home/.config/nvim/colorscheme.vim b/home/.config/nvim/colorscheme.vim @@ -0,0 +1 @@ +colorscheme base16-solarized-dark diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim @@ -0,0 +1,169 @@ +" Installs vim-plug +if empty(glob("~/.config/nvim/autoload/plug.vim")) + silent !curl -fLso ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim + autocmd VimEnter * PlugInstall +end + +" vim-plug plugins +call plug#begin("~/.config/nvim/plugged/") +source $HOME/.config/nvim/plugins.vim +call plug#end() + +" Disable aditional files. +set noswapfile " disable swapfiles (maybe a bad idea? 🤔) +set nobackup " disable backup files (use git) +set encoding=utf-8 " windows needs to be reminded about utf-8 +set backspace=indent,eol,start " backspace will always work on insert mode + +" Indent settings +set autoindent +set smarttab +set expandtab +set shiftwidth=4 +set softtabstop=4 + +" Buffer settings +set hidden +set nowrap +set showmatch +set noshowmode + +" Some programming languages work better when 2 spaces for tab is used... +autocmd FileType html,css,sass,scss,javascript setlocal sw=2 sts=2 +autocmd FileType json setlocal sw=2 sts=2 +autocmd FileType ruby,eruby setlocal sw=2 sts=2 +autocmd FileType yaml setlocal sw=2 sts=2 +autocmd FileType python setlocal tw=79 + +" Enable colorschemes, but only if terminal supports so. +if &t_Co > 2 || has("gui_running") + syntax on + set colorcolumn=80 + let base16colorspace=256 + silent! color base16-default-dark +endif + +" Line numberings and relative numberings +set number +set relativenumber +nmap <F5> :set invrelativenumber<CR> +imap <F5> <ESC>:set invrelativenumber<CR>i + +" Mark cursor lines and columns, but only if there are enough colors. +" (These settings don't look so pleasant when there are not enough colors). +if &t_Co >= 256 + set cursorline +endif + +" Mark trailing spaces. +if &t_Co >= 2 + " Fancy highlighting for space groups. + highlight ExtraWhitespace ctermbg=red guibg=red + match ExtraWhitespace /\s\+$/ +else + " Fallback trailing system. + set listchars=trail:~ + set list +endif + +" Make the vertical separator between panes a continuous vertical line. +" NOTE! The font must support this character to make it look continuous. +" Otherwise, the vertical bar will have little gaps in between lines. +set fillchars+=vert:\│ +highlight VertSplit guibg=NONE cterm=NONE ctermbg=NONE + +" Leader. We're having fun. +let mapleader="," + +" Switch active buffers. + map <C-N> :bnext<CR> +imap <C-N> <Esc>:bnext<CR>i + map <C-P> :bprev<CR> +imap <C-P> <Esc>:bprev<CR>i + +" Folding settings: global and particular for specific plugins. +nmap <Space> za +let g:SimpylFold_docstring_preview = 1 + +" CtrlP +let g:ctrlp_map = '<Leader>,' +let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard'] + +" vim-gitgutter +nmap <Leader>hn <Plug>GitGutterNextHunk +nmap <Leader>hp <Plug>GitGutterPrevHunk +nmap <Leader>ha <Plug>GitGutterStageHunk +nmap <Leader>hr <Plug>GitGutterUndoHunk +nmap <Leader>hv <Plug>GitGutterPreviewHunk + +" undotree +nmap <Leader>u :UndotreeToggle<CR> +if has("persistent_undo") + set undodir=$HOME/.local/share/nvim/undo/ + set undofile +endif + +" Buffergator +nmap <Leader>b :BuffergatorToggle<CR> + +" NERDtree +map <Leader>nt :NERDTreeToggle<CR> +let NERDTreeQuitOnOpen=1 +let NERDTreeWinSize=20 + +" tagbar +nmap <F8> :TagbarOpen fj<CR> +let g:tagbar_indent = 1 +let g:tagbar_autoshowtag = 1 +function DaniComputeTagbarWidth() + if winwidth(0) > 180 + let g:tagbar_width = 40 + else + let g:tagbar_width = 25 + endif +endfunction +call DaniComputeTagbarWidth() +autocmd VimResized * exe "call DaniComputeTagbarWidth()" + +" ack +nnoremap <C-T> :Ack!<Space> +if executable('ag') + let g:ackprg = 'ag --vimgrep' +end + +" vimwiki +let g:vimwiki_list = [{'path': '~/.vimwiki'}] + +" deoplete +let g:deoplete#enable_at_startup = 1 +let g:deoplete#sources#jedi#show_docstring = 1 +let g:LanguageClient_serverCommands = { + \ 'javascript': ['javascript-typescript-stdio'], + \ 'css': ['css-languageserver', '--stdio'], + \ 'typescript': ['javascript-typescript-stdio'], + \ } +autocmd InsertLeave,CompleteDone * if pumvisible() == 0 | pclose | endif + +" deoplete-clang +" TODO: These routes are hardcoded to work with macOS. What about Linux / BSD? +let g:deoplete#sources#clang#clang_header = '/Library/Developer/CommandLineTools/usr/lib/clang/9.1.0/include' +let g:deoplete#sources#clang#libclang_path = '/Library/Developer/CommandLineTools/usr/lib/libclang.dylib' + +" syntastic +let g:syntastic_check_on_open = 1 +let g:syntastic_c_config_file = '.syntastic_c_config' + +" echodoc +let g:echodoc_enable_at_startup = 1 + +" indentline +let g:indentLine_concealcursor=0 + +" markdown + vim-markdown +let g:vim_markdown_frontmatter = 1 +autocmd FileType markdown set breakindent wrap linebreak + +source ~/.config/nvim/colorscheme.vim + +silent! hi Normal ctermbg=none +silent! hi NonText ctermbg=none diff --git a/home/.config/nvim/plugins.vim b/home/.config/nvim/plugins.vim @@ -0,0 +1,46 @@ +" Vim productivity +Plug 'ap/vim-buftabline' +Plug 'ctrlpvim/ctrlp.vim' +Plug 'jeetsukumaran/vim-buffergator' +Plug 'mbbill/undotree' +Plug 'mileszs/ack.vim' +Plug 'scrooloose/nerdtree' +Plug 'vimwiki/vimwiki' +Plug 'tpope/vim-obsession' +Plug 'jeffkreeftmeijer/vim-numbertoggle' +Plug 'Yggdroot/indentLine' +Plug 'godlygeek/tabular' +Plug 'junegunn/goyo.vim' + +" Language productivity +" Plug 'AndrewRadev/splitjoin.vim' +Plug 'airblade/vim-gitgutter' +" Plug 'alvan/vim-closetag' +Plug 'editorconfig/editorconfig-vim' +Plug 'mattn/emmet-vim' +" Plug 'tpope/vim-endwise' +Plug 'tpope/vim-fugitive' +Plug 'majutsushi/tagbar' +Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } +Plug 'Shougo/neoinclude.vim' +Plug 'Shougo/neco-syntax' +Plug 'autozimu/LanguageClient-neovim', { 'branch': 'next', 'do': 'bash install.sh' } +Plug 'leafgarland/typescript-vim' +Plug 'vim-syntastic/syntastic' +Plug 'ervandew/supertab' +Plug 'jiangmiao/auto-pairs' +Plug 'Shougo/echodoc.vim' + +" Python productivity pack +Plug 'tmhedberg/SimpylFold', { 'for': ['python'] } +Plug 'zchee/deoplete-jedi', { 'for': ['python'] } +Plug 'Vimjas/vim-python-pep8-indent', { 'for': ['python'] } + +" C productivity pack +Plug 'zchee/deoplete-clang', { 'for': ['c', 'c++'] } + +" Markdown productivity pack +Plug 'plasticboy/vim-markdown' + +" Colorschemes +Plug 'chriskempson/base16-vim' diff --git a/git/.gitconfig b/home/.gitconfig diff --git a/latexmk/.latexmkrc b/home/.latexmkrc diff --git a/octave/.octaverc b/home/.octaverc diff --git a/home/.tmux.conf b/home/.tmux.conf @@ -0,0 +1,5 @@ +set -g default-terminal tmux-256color # Use 256 colors +set -g history-limit 100000 # Scrollback buffer number of lines +set -s escape-time 0 + +source-file "${HOME}/.base16-tmux/base16.tmuxtheme" diff --git a/i3/.config/i3/config b/i3/.config/i3/config @@ -1,171 +0,0 @@ -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 Fira Mono 10 - -# Start polybar -exec_always --no-startup-id $HOME/.config/polybar/polybar.sh - -# 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+Shift+q kill - -# start dmenu (a program launcher) -bindsym $mod+d exec dmenu_run -fn 'Fira Mono-10' -nb '#282828' -nf '#ebdbb2' -sb '#98971a' -sf '#282828' -i -p ' RUN ' - -# change focus -bindsym $mod+j focus left -bindsym $mod+k focus down -bindsym $mod+l focus up -bindsym $mod+semicolon focus right -bindsym $mod+ntilde 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+j move left -bindsym $mod+Shift+k move down -bindsym $mod+Shift+l move up -bindsym $mod+Shift+semicolon move right -bindsym $mod+Shift+ntilde 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 - -# 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+space focus mode_toggle - -# focus the parent container -bindsym $mod+a focus parent - -# focus the child container -bindsym $mod+Shift+a focus child - -# switch to workspace -bindsym $mod+1 workspace 1 -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 - -# 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 -# 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 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 semicolon resize grow width 10 px or 10 ppt - bindsym ntilde 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 -# colors { -# background #002b36 -# statusline #839496 -# separator #586e75 -# focused_workspace #b58900 #b58900 #002b36 -# active_workspace #586e75 #586e75 #002b36 -# inactive_workspace #073642 #002b36 #839496 -# urgent_workspace #dc322f #dc322f #fdf6e3 -# } -#} - -client.focused #002b36 #586e75 #fdf6e3 #268bd2 -client.focused_inactive #002b36 #073642 #839496 #073642 -client.unfocused #002b36 #073642 #839496 #073642 -client.urgent #002b36 #dc322f #fdf6e3 #002b36 - - -#Alsa key bindings -bindsym XF86AudioRaiseVolume exec amixer -q set Master 10%+ unmute -bindsym XF86AudioLowerVolume exec amixer -q set Master 10%- unmute -bindysm XF86AudioLowerVolume exec amixer -q set Master toogle - -#Media player key bindings (you need playerctl for this to work.) -bindsym XF86AudioPlay exec playerctl play -bindsym XF86AudioPause exec playerctl pause -bindsym XF86AudioNext exec playerctl next -bindsym XF86AudioPrev exec playerctl previous - -#Brightness key bindings -bindsym XF86MonBrightnessUp exec xbacklight -inc 5 -bindsym XF86MonBrightnessDown exec xbacklight -dec 5 - -new_window pixel 2 -new_float pixel 2 -gaps inner 8 -gaps outer 8 -smart_gaps on diff --git a/X11/.Xresources b/linux/.Xresources diff --git a/linux/.Xresources.d/colors b/linux/.Xresources.d/colors @@ -0,0 +1,45 @@ +! Base16 Solarized Dark +! Scheme: Ethan Schoonover (http://ethanschoonover.com/solarized) + +#define base00 #002b36 +#define base01 #073642 +#define base02 #586e75 +#define base03 #657b83 +#define base04 #839496 +#define base05 #93a1a1 +#define base06 #eee8d5 +#define base07 #fdf6e3 +#define base08 #dc322f +#define base09 #cb4b16 +#define base0A #b58900 +#define base0B #859900 +#define base0C #2aa198 +#define base0D #268bd2 +#define base0E #6c71c4 +#define base0F #d33682 + +*foreground: base05 +#ifdef background_opacity +*background: [background_opacity]base00 +#else +*background: base00 +#endif +*cursorColor: base05 + +*color0: base00 +*color1: base08 +*color2: base0B +*color3: base0A +*color4: base0D +*color5: base0E +*color6: base0C +*color7: base05 + +*color8: base03 +*color9: base09 +*color10: base01 +*color11: base02 +*color12: base04 +*color13: base06 +*color14: base0F +*color15: base07 diff --git a/X11/.Xresources.d/fonts b/linux/.Xresources.d/fonts diff --git a/linux/.Xresources.d/rxvt-unicode b/linux/.Xresources.d/rxvt-unicode @@ -0,0 +1,29 @@ +URxvt*geometry: 80x25 +URxvt.font: xft:Fira Mono:book:pixelsize=12,\ + xft:Font Awesome 5 Brands:pixelsize=12,\ + xft:Font Awesome 5 Free + +URxvt.boldFont: xft:Fira Mono:bold:pixelsize=12,\ + xft:Font Awesome 5 Brands:pixelsize=12,\ + xft:Font Awesome 5 Free + +URxvt.intensityStyles: false +URxvt.scrollBar: false +URxvt.internalBorder: 10 +URxvt.cursorBlink: true + +! Transparency +URxvt.depth: 32 +#define background_opacity 80 + +! Para clases 480p +!URxvt*font: xft:xos4 Terminus:pixelsize=16:bold +!URxvt*boldFont: xft:xos4 Terminus:pixelsize=16:bold +!URxvt.cursorBlink: true + +! Para clases 720p +!URxvt*font: xft:Dejavu Sans Mono:size=13:style=Regular +!URxvt*boldFont: xft:Dejavu Sans Mono:size=13:style=Bold +!URxvt*italicFont: xft:Dejavu Sans Mono:size=13:style=Italic +!URxvt*boldItalicFont: xft:Dejavu Sans Mono:size=13:style=Bold Italic +!URxvt.cursorBlink: true diff --git a/compton/.compton.conf b/linux/.compton.conf diff --git a/linux/.config/i3/config b/linux/.config/i3/config @@ -0,0 +1,177 @@ +set_from_resource $base00 color0 #000000 +set_from_resource $base01 color10 #000000 +set_from_resource $base02 color11 #000000 +set_from_resource $base03 color8 #000000 +set_from_resource $base04 color12 #000000 +set_from_resource $base05 color7 #000000 +set_from_resource $base06 color13 #000000 +set_from_resource $base07 color15 #000000 +set_from_resource $base08 color1 #000000 +set_from_resource $base09 color9 #000000 +set_from_resource $base0A color3 #000000 +set_from_resource $base0B color2 #000000 +set_from_resource $base0C color6 #000000 +set_from_resource $base0D color4 #000000 +set_from_resource $base0E color5 #000000 +set_from_resource $base0F color14 #000000 + +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:Fira Mono 8 + +# Start polybar +exec_always --no-startup-id $HOME/.config/polybar/launch.sh + +# 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+Shift+q kill + +# start dmenu (a program launcher) +bindsym $mod+d exec dmenu_run -fn 'Fira Mono-9' -nb '$base01' -nf '$base03' -sb '$base02' -sf '$base01' -i -p ' RUN ' + +# change focus +bindsym $mod+j focus left +bindsym $mod+k focus down +bindsym $mod+l focus up +bindsym $mod+semicolon focus right +bindsym $mod+ntilde 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+j move left +bindsym $mod+Shift+k move down +bindsym $mod+Shift+l move up +bindsym $mod+Shift+semicolon move right +bindsym $mod+Shift+ntilde 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 + +# 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+space focus mode_toggle + +# focus the parent container +bindsym $mod+a focus parent + +# focus the child container +bindsym $mod+Shift+a focus child + +# switch to workspace +bindsym $mod+1 workspace 1 +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 + +# 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 +# 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 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 semicolon resize grow width 10 px or 10 ppt + bindsym ntilde 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" + +# Property Name Border BG Text Indicator Child Border +client.focused $base05 $base0D $base00 $base0D $base0D +client.focused_inactive $base01 $base01 $base05 $base03 $base01 +client.unfocused $base01 $base00 $base05 $base01 $base01 +client.urgent $base08 $base08 $base00 $base08 $base08 +client.placeholder $base00 $base00 $base05 $base00 $base00 +client.background $base07 + +# Pulse Audio controls +bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume 0 +10% #increase sound volume +bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume 0 -10% #decrease sound volume +bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute 0 toggle # mute sound + +# Sreen brightness controls +bindsym XF86MonBrightnessUp exec xbacklight -inc 5 # increase screen brightness +bindsym XF86MonBrightnessDown exec xbacklight -dec 5 # decrease screen brightness + +# Touchpad controls +bindsym XF86TouchpadToggle exec /some/path/toggletouchpad.sh # toggle touchpad + +# Media player controls +bindsym XF86AudioPlay exec playerctl play +bindsym XF86AudioPause exec playerctl pause +bindsym XF86AudioNext exec playerctl next +bindsym XF86AudioPrev exec playerctl previous + +new_window pixel 2 +new_float pixel 2 +gaps inner 8 +gaps outer 8 diff --git a/linux/.config/polybar/config b/linux/.config/polybar/config @@ -0,0 +1,229 @@ +[colors] +base00 = ${xrdb:color0:#000000} +base01 = ${xrdb:color10:#000000} +base02 = ${xrdb:color11:#000000} +base03 = ${xrdb:color8:#000000} +base04 = ${xrdb:color12:#000000} +base05 = ${xrdb:color7:#000000} +base06 = ${xrdb:color13:#000000} +base07 = ${xrdb:color15:#000000} +base08 = ${xrdb:color1:#000000} +base09 = ${xrdb:color9:#000000} +base0A = ${xrdb:color3:#000000} +base0B = ${xrdb:color2:#000000} +base0C = ${xrdb:color6:#000000} +base0D = ${xrdb:color4:#000000} +base0E = ${xrdb:color5:#000000} +base0F = ${xrdb:color14:#000000} + +[bar/base] +width = 100% +height = 18 +offset-x = 0% +offset-y = 0% +module-margin = 2 +padding = 2 +radius = 0.0 +fixed-center = false + +; font-N = <fontconfig pattern>;<vertical offset><Paste> +font-0 = Fira Mono:pixelsize=9;2 +font-1 = FontAwesome5Free:style=Solid:pixelsize=9;1 +font-2 = FontAwesome5Brands:style=Solid:pixelsize=9;1 +font-3 = Dejavu:pixelsize=13;3 + +background = ${colors.base00} +foreground = ${colors.base05} + +scroll-up = i3wm-wsnext +scroll-down = i3wm-wsprev + +[bar/top] +inherit = bar/base +padding-left = 0 +modules-left = i3 xwindow +modules-right = backlight volume date + +[bar/bottom] +inherit = bar/base +bottom = true +tray-position = right +tray-margin-right = 5 +modules-left = cpu memory +modules-right = network + +[module/xwindow] +type = internal/xwindow +label = %title% +label-maxlen = 120 + +[module/i3] +type = internal/i3 +format = <label-state> <label-mode> +index-sort = true +wrapping-scroll = false + +; Only show workspaces on the same output as the bar +;pin-workspaces = true + +ws-icon-0 = 1; +ws-icon-1 = 2; +ws-icon-2 = 3; +ws-icon-3 = 4; +ws-icon-4 = 5; +ws-icon-5 = 6; + +label-mode-padding = 1 +label-mode-foreground = ${colors.base05} +label-mode-background = ${colors.base01} +label-mode-underline = ${colors.base09} + +; focused = Active workspace on focused monitor +label-focused = %icon% %index% +label-focused-foreground = ${colors.base05} +label-focused-background = ${colors.base01} +label-focused-underline = ${colors.base0B} +label-focused-padding = 1 + +; unfocused = Inactive workspace on any monitor +label-unfocused = %icon% %index% +label-unfocused-padding = 1 +label-unfocused-foreground = ${colors.base03} +label-unfocused-background = ${colors.base00} + +; visible = Active workspace on unfocused monitor +label-visible = %index% +label-visible-foreground = ${colors.base05} +label-visible-background = ${colors.base00} +label-visible-padding = ${self.label-focused-padding} + +; urgent = Workspace with urgency hint set +label-urgent = %index% +label-urgent-foreground = ${colors.base07} +label-urgent-background = ${colors.base03} +label-urgent-underline = ${colors.base0A} +label-urgent-padding = 1 + +[module/date] +type = internal/date +interval = 5 +date = %a +date-alt = %Y-%m-%d +time = %H:%M +time-alt = %H:%M:%S +format-prefix = " " +label = %date% %time% + +[module/volume] +type = internal/pulseaudio + +format-volume = "<label-volume> <bar-volume>" +label-volume =  %percentage:2%% + +format-muted-prefix = " " +format-muted-prefix-foreground = ${colors.base03} +label-muted = "AUDIO MUTE" +label-muted-foreground = ${colors.base03} + +bar-volume-width = 11 +bar-volume-foreground-0 = ${colors.base0B} +bar-volume-foreground-1 = ${colors.base0B} +bar-volume-foreground-2 = ${colors.base0B} +bar-volume-foreground-3 = ${colors.base0B} +bar-volume-foreground-4 = ${colors.base0A} +bar-volume-foreground-5 = ${colors.base0A} +bar-volume-foreground-6 = ${colors.base09} +bar-volume-foreground-7 = ${colors.base09} +bar-volume-foreground-8 = ${colors.base08} +bar-volume-foreground-9 = ${colors.base08} +bar-volume-gradient = true +bar-volume-indicator = ● +bar-volume-indicator-font = 2 +bar-volume-fill = ─ +bar-volume-fill-font = 2 +bar-volume-empty = ─ +bar-volume-empty-font = 2 +bar-volume-empty-foreground = ${colors.base03} + +[module/network] +type = internal/network +interface = wlp9s0 + +format-connected = <label-connected> <ramp-signal> + +format-disconnected = offline  +format-disconnected-foreground = ${colors.base03} + +ramp-signal-0 = 😱 +ramp-signal-0-foreground = ${colors.base08} +ramp-signal-1 = 😠 +ramp-signal-1-foreground = ${colors.base0A} +ramp-signal-2 = 😒 +ramp-signal-2-foreground = ${colors.base0A} +ramp-signal-3 = 😊 +ramp-signal-3-foreground = ${colors.base0B} +ramp-signal-4 = 😃 +ramp-signal-4-foreground = ${colors.base0B} +ramp-signal-5 = 😈 +ramp-signal-5-foreground = ${colors.base0B} + +label-connected = %local_ip%  %essid% %downspeed:8%  %upspeed:8%  + +[module/cpu] +type = internal/cpu +interval = 0.5 +format = <label> <ramp-coreload> +label = CPU %percentage:2%% + +ramp-coreload-0 = ▁ +ramp-coreload-0-foreground = ${colors.base0B} +ramp-coreload-1 = ▂ +ramp-coreload-1-foreground = ${colors.base0B} +ramp-coreload-2 = ▃ +ramp-coreload-2-foreground = ${colors.base0B} +ramp-coreload-3 = ▄ +ramp-coreload-3-foreground = ${colors.base0A} +ramp-coreload-4 = ▅ +ramp-coreload-4-foreground = ${colors.base0A} +ramp-coreload-5 = ▆ +ramp-coreload-5-foreground = ${colors.base09} +ramp-coreload-6 = ▇ +ramp-coreload-6-foreground = ${colors.base09} +ramp-coreload-7 = █ +ramp-coreload-7-foreground = ${colors.base08} + +[module/memory] +type = internal/memory +format = <label> <bar-used> +interval = 3 +label = RAM %gb_used%/%gb_free% + +bar-used-indicator = +bar-used-width = 25 +bar-used-foreground-0 = ${colors.base0B} +bar-used-foreground-1 = ${colors.base0B} +bar-used-foreground-2 = ${colors.base0A} +bar-used-foreground-3 = ${colors.base08} +bar-used-fill = ▐ +bar-used-empty = ▐ +bar-used-empty-foreground = ${colors.base02} + +[module/backlight] +type = internal/xbacklight +output = eDP1 +format = <label> <ramp> + +ramp-0 = 🌕 +ramp-1 = 🌔 +ramp-2 = 🌓 +ramp-3 = 🌒 +ramp-4 = 🌑 + +[settings] +screenchange-reload = true + +[global/wm] +margin-top = 0 +margin-bottom = 0 + +; vim:ft=dosini diff --git a/linux/.config/polybar/launch.sh b/linux/.config/polybar/launch.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +# Terminate already running bar instances +killall -q polybar + +# Wait until the processes have been shut down +while pgrep -u $UID -x polybar >/dev/null; do sleep 1; done + +# Launch top and bottom +polybar top & +polybar bottom & + +echo "Bars launched..." diff --git a/linux/.fonts.conf b/linux/.fonts.conf @@ -0,0 +1,12 @@ +<?xml version="1.0"?> +<!DOCTYPE fontconfig SYSTEM "fonts.dtd"> +<fontconfig> + <match target="font"> + <edit mode="assign" name="hinting"><bool>true</bool></edit> + <edit mode="assign" name="autohint"><bool>false</bool></edit> + <edit mode="assign" name="hintstyle"><const>hintfull</const></edit> + <edit mode="assign" name="rgba"><const>rgb</const></edit> + <edit mode="assign" name="antialias"><bool>true</bool></edit> + <edit mode="assign" name="lcdfilter"><const>lcddefault</const></edit> + </match> +</fontconfig> diff --git a/X11/.xinitrc b/linux/.xinitrc diff --git a/openbox/.config/openbox/autostart b/openbox/.config/openbox/autostart @@ -1,2 +0,0 @@ -conky --daemonize -tint2 & diff --git a/openbox/.config/openbox/environment b/openbox/.config/openbox/environment @@ -1,10 +0,0 @@ -# -# Set system-wide environment variables here for Openbox -# User-specific variables should be placed in $HOME/.config/openbox/environment -# - -# To set your language for displaying messages and time/date formats, use the following: -#LANG=en_CA.UTF8 - -# To set your keyboard layout, you need to modify your X config: -# http://www.google.com/search?q=how+to+set+keyboard+layout+xorg diff --git a/openbox/.config/openbox/menu.xml b/openbox/.config/openbox/menu.xml @@ -1,74 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<openbox_menu xmlns="http://openbox.org/3.4/menu"> - <menu id="root-menu" label="Openbox 3"> - <separator label="Applications"/> - <item label="Run command"> - <action name="Execute"> - <command>gmrun</command> - </action> - </item> - <item label="Terminal"> - <action name="Execute"> - <command>urxvt</command> - <startupnotify> - <enabled>yes</enabled> - </startupnotify> - </action> - </item> - <item label="Firefox"> - <action name="Execute"> - <command>firefox</command> - <startupnotify> - <enabled>yes</enabled> - <wmclass>Firefox</wmclass> - </startupnotify> - </action> - </item> - <item label="Gvim"> - <action name="Execute"> - <command>gvim</command> - <startupnotify> - <enabled>yes</enabled> - </startupnotify> - </action> - </item> - <item label="File Manager"> - <action name="Execute"> - <command>pcmanfm</command> - <startupnotify> - <enabled>yes</enabled> - </startupnotify> - </action> - </item> - <separator label="System"/> - <menu id="openbox_settings-menu" label="Settings"> - <item label="obconf"> - <action name="Execute"> - <execute>obconf</execute> - </action> - </item> - <item label="obmenu"> - <action name="Execute"> - <execute>obmenu</execute> - </action> - </item> - <item label="lxappearance"> - <action name="Execute"> - <execute>lxappearance</execute> - </action> - </item> - <separator/> - <item label="Reconfigure"> - <action name="Reconfigure"/> - </item> - <item label="Restart"> - <action name="Restart"/> - </item> - </menu> - <item label="Log Out"> - <action name="Exit"> - <prompt>yes</prompt> - </action> - </item> - </menu> -</openbox_menu> diff --git a/openbox/.config/openbox/rc.xml b/openbox/.config/openbox/rc.xml @@ -1,784 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- Do not edit this file, it will be overwritten on install. - Copy the file to $HOME/.config/openbox/ instead. --> -<openbox_config xmlns="http://openbox.org/3.4/rc" xmlns:xi="http://www.w3.org/2001/XInclude"> - <resistance> - <strength>10</strength> - <screen_edge_strength>20</screen_edge_strength> - </resistance> - <focus> - <focusNew>yes</focusNew> - <!-- always try to focus new windows when they appear. other rules do - apply --> - <followMouse>no</followMouse> - <!-- move focus to a window when you move the mouse into it --> - <focusLast>yes</focusLast> - <!-- focus the last used window when changing desktops, instead of the one - under the mouse pointer. when followMouse is enabled --> - <underMouse>no</underMouse> - <!-- move focus under the mouse, even when the mouse is not moving --> - <focusDelay>200</focusDelay> - <!-- when followMouse is enabled, the mouse must be inside the window for - this many milliseconds (1000 = 1 sec) before moving focus to it --> - <raiseOnFocus>no</raiseOnFocus> - <!-- when followMouse is enabled, and a window is given focus by moving the - mouse into it, also raise the window --> - </focus> - <placement> - <policy>Smart</policy> - <!-- 'Smart' or 'UnderMouse' --> - <center>yes</center> - <!-- whether to place windows in the center of the free area found or - the top left corner --> - <monitor>Primary</monitor> - <!-- with Smart placement on a multi-monitor system, try to place new windows - on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where - the active window is, 'Primary' - only on the primary monitor --> - <primaryMonitor>1</primaryMonitor> - <!-- The monitor where Openbox should place popup dialogs such as the - focus cycling popup, or the desktop switch popup. It can be an index - from 1, specifying a particular monitor. Or it can be one of the - following: 'Mouse' - where the mouse is, or - 'Active' - where the active window is --> - </placement> - <theme> - <name>Clearlooks</name> - <titleLayout>NLIMC</titleLayout> - <!-- - available characters are NDSLIMC, each can occur at most once. - N: window icon - L: window label (AKA title). - I: iconify - M: maximize - C: close - S: shade (roll up/down) - D: omnipresent (on all desktops). - --> - <keepBorder>yes</keepBorder> - <animateIconify>yes</animateIconify> - <font place="ActiveWindow"> - <name>xos4 Terminus</name> - <size>8</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="InactiveWindow"> - <name>xos4 Terminus</name> - <size>8</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="MenuHeader"> - <name>xos4 Terminus</name> - <size>9</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="MenuItem"> - <name>xos4 Terminus</name> - <size>9</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="ActiveOnScreenDisplay"> - <name>xos4 Terminus</name> - <size>9</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - <font place="InactiveOnScreenDisplay"> - <name>xos4 Terminus</name> - <size>9</size> - <!-- font size in points --> - <weight>Normal</weight> - <!-- 'bold' or 'normal' --> - <slant>Normal</slant> - <!-- 'italic' or 'normal' --> - </font> - </theme> - <desktops> - <!-- this stuff is only used at startup, pagers allow you to change them - during a session - - these are default values to use when other ones are not already set - by other applications, or saved in your session - - use obconf if you want to change these without having to log out - and back in --> - <number>4</number> - <firstdesk>1</firstdesk> - <names> - <!-- set names up here if you want to, like this: - <name>desktop 1</name> - <name>desktop 2</name> - --> - </names> - <popupTime>875</popupTime> - <!-- The number of milliseconds to show the popup for when switching - desktops. Set this to 0 to disable the popup. --> - </desktops> - <resize> - <drawContents>yes</drawContents> - <popupShow>Nonpixel</popupShow> - <!-- 'Always', 'Never', or 'Nonpixel' (xterms and such) --> - <popupPosition>Center</popupPosition> - <!-- 'Center', 'Top', or 'Fixed' --> - <popupFixedPosition> - <!-- these are used if popupPosition is set to 'Fixed' --> - <x>10</x> - <!-- positive number for distance from left edge, negative number for - distance from right edge, or 'Center' --> - <y>10</y> - <!-- positive number for distance from top edge, negative number for - distance from bottom edge, or 'Center' --> - </popupFixedPosition> - </resize> - <!-- You can reserve a portion of your screen where windows will not cover when - they are maximized, or when they are initially placed. - Many programs reserve space automatically, but you can use this in other - cases. --> - <margins> - <top>0</top> - <bottom>0</bottom> - <left>0</left> - <right>0</right> - </margins> - <dock> - <position>TopLeft</position> - <!-- (Top|Bottom)(Left|Right|)|Top|Bottom|Left|Right|Floating --> - <floatingX>0</floatingX> - <floatingY>0</floatingY> - <noStrut>no</noStrut> - <stacking>Above</stacking> - <!-- 'Above', 'Normal', or 'Below' --> - <direction>Vertical</direction> - <!-- 'Vertical' or 'Horizontal' --> - <autoHide>no</autoHide> - <hideDelay>300</hideDelay> - <!-- in milliseconds (1000 = 1 second) --> - <showDelay>300</showDelay> - <!-- in milliseconds (1000 = 1 second) --> - <moveButton>Middle</moveButton> - <!-- 'Left', 'Middle', 'Right' --> - </dock> - <keyboard> - <chainQuitKey>C-g</chainQuitKey> - <!-- Keybindings for desktop switching --> - <keybind key="C-A-Left"> - <action name="GoToDesktop"> - <to>left</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="C-A-Right"> - <action name="GoToDesktop"> - <to>right</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="C-A-Up"> - <action name="GoToDesktop"> - <to>up</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="C-A-Down"> - <action name="GoToDesktop"> - <to>down</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="S-A-Left"> - <action name="SendToDesktop"> - <to>left</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="S-A-Right"> - <action name="SendToDesktop"> - <to>right</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="S-A-Up"> - <action name="SendToDesktop"> - <to>up</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="S-A-Down"> - <action name="SendToDesktop"> - <to>down</to> - <wrap>no</wrap> - </action> - </keybind> - <keybind key="W-F1"> - <action name="GoToDesktop"> - <to>1</to> - </action> - </keybind> - <keybind key="W-F2"> - <action name="GoToDesktop"> - <to>2</to> - </action> - </keybind> - <keybind key="W-F3"> - <action name="GoToDesktop"> - <to>3</to> - </action> - </keybind> - <keybind key="W-F4"> - <action name="GoToDesktop"> - <to>4</to> - </action> - </keybind> - <keybind key="W-d"> - <action name="ToggleShowDesktop"/> - </keybind> - <!-- Keybindings for windows --> - <keybind key="A-F4"> - <action name="Close"/> - </keybind> - <keybind key="A-Escape"> - <action name="Lower"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - </keybind> - <keybind key="A-space"> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </keybind> - <!-- Keybindings for window switching --> - <keybind key="A-Tab"> - <action name="NextWindow"> - <finalactions> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </finalactions> - </action> - </keybind> - <keybind key="A-S-Tab"> - <action name="PreviousWindow"> - <finalactions> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </finalactions> - </action> - </keybind> - <keybind key="C-A-Tab"> - <action name="NextWindow"> - <panels>yes</panels> - <desktop>yes</desktop> - <finalactions> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </finalactions> - </action> - </keybind> - <!-- Keybindings for window switching with the arrow keys --> - <keybind key="W-S-Right"> - <action name="DirectionalCycleWindows"> - <direction>right</direction> - </action> - </keybind> - <keybind key="W-S-Left"> - <action name="DirectionalCycleWindows"> - <direction>left</direction> - </action> - </keybind> - <keybind key="W-S-Up"> - <action name="DirectionalCycleWindows"> - <direction>up</direction> - </action> - </keybind> - <keybind key="W-S-Down"> - <action name="DirectionalCycleWindows"> - <direction>down</direction> - </action> - </keybind> - <!-- Keybindings for running applications --> - <keybind key="W-e"> - <action name="Execute"> - <startupnotify> - <enabled>true</enabled> - <name>Konqueror</name> - </startupnotify> - <command>kfmclient openProfile filemanagement</command> - </action> - </keybind> - </keyboard> - <mouse> - <dragThreshold>1</dragThreshold> - <!-- number of pixels the mouse must move before a drag begins --> - <doubleClickTime>500</doubleClickTime> - <!-- in milliseconds (1000 = 1 second) --> - <screenEdgeWarpTime>400</screenEdgeWarpTime> - <!-- Time before changing desktops when the pointer touches the edge of the - screen while moving a window, in milliseconds (1000 = 1 second). - Set this to 0 to disable warping --> - <screenEdgeWarpMouse>false</screenEdgeWarpMouse> - <!-- Set this to TRUE to move the mouse pointer across the desktop when - switching due to hitting the edge of the screen --> - <context name="Frame"> - <mousebind button="W-Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="W-Left" action="Click"> - <action name="Unshade"/> - </mousebind> - <mousebind button="W-Left" action="Drag"> - <action name="Move"/> - </mousebind> - <mousebind button="W-Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="W-Right" action="Drag"> - <action name="Resize"/> - </mousebind> - <mousebind button="W-Middle" action="Press"> - <action name="Lower"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - </mousebind> - <mousebind button="W-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="W-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="C-W-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="C-W-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="W-S-Up" action="Click"> - <action name="SendToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="W-S-Down" action="Click"> - <action name="SendToDesktop"> - <to>next</to> - </action> - </mousebind> - </context> - <context name="Titlebar"> - <mousebind button="Left" action="Drag"> - <action name="Move"/> - </mousebind> - <mousebind button="Left" action="DoubleClick"> - <action name="ToggleMaximize"/> - </mousebind> - <mousebind button="Up" action="Click"> - <action name="if"> - <shaded>no</shaded> - <then> - <action name="Shade"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - <action name="Lower"/> - </then> - </action> - </mousebind> - <mousebind button="Down" action="Click"> - <action name="if"> - <shaded>yes</shaded> - <then> - <action name="Unshade"/> - <action name="Raise"/> - </then> - </action> - </mousebind> - </context> - <context name="Titlebar Top Right Bottom Left TLCorner TRCorner BRCorner BLCorner"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Middle" action="Press"> - <action name="Lower"/> - <action name="FocusToBottom"/> - <action name="Unfocus"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - </context> - <context name="Top"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>top</edge> - </action> - </mousebind> - </context> - <context name="Left"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>left</edge> - </action> - </mousebind> - </context> - <context name="Right"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>right</edge> - </action> - </mousebind> - </context> - <context name="Bottom"> - <mousebind button="Left" action="Drag"> - <action name="Resize"> - <edge>bottom</edge> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - </context> - <context name="TRCorner BRCorner TLCorner BLCorner"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Drag"> - <action name="Resize"/> - </mousebind> - </context> - <context name="Client"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Middle" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - </context> - <context name="Icon"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="ShowMenu"> - <menu>client-menu</menu> - </action> - </mousebind> - </context> - <context name="AllDesktops"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="ToggleOmnipresent"/> - </mousebind> - </context> - <context name="Shade"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="ToggleShade"/> - </mousebind> - </context> - <context name="Iconify"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="Iconify"/> - </mousebind> - </context> - <context name="Maximize"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Middle" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="ToggleMaximize"/> - </mousebind> - <mousebind button="Middle" action="Click"> - <action name="ToggleMaximize"> - <direction>vertical</direction> - </action> - </mousebind> - <mousebind button="Right" action="Click"> - <action name="ToggleMaximize"> - <direction>horizontal</direction> - </action> - </mousebind> - </context> - <context name="Close"> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - <action name="Unshade"/> - </mousebind> - <mousebind button="Left" action="Click"> - <action name="Close"/> - </mousebind> - </context> - <context name="Desktop"> - <mousebind button="Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="W-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="W-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="C-W-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="C-W-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="Left" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="Focus"/> - <action name="Raise"/> - </mousebind> - </context> - <context name="Root"> - <!-- Menus --> - <mousebind button="Middle" action="Press"> - <action name="ShowMenu"> - <menu>client-list-combined-menu</menu> - </action> - </mousebind> - <mousebind button="Right" action="Press"> - <action name="ShowMenu"> - <menu>root-menu</menu> - </action> - </mousebind> - </context> - <context name="MoveResize"> - <mousebind button="Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - <mousebind button="W-Up" action="Click"> - <action name="GoToDesktop"> - <to>previous</to> - </action> - </mousebind> - <mousebind button="W-Down" action="Click"> - <action name="GoToDesktop"> - <to>next</to> - </action> - </mousebind> - </context> - </mouse> - <menu> - <!-- You can specify more than one menu file in here and they are all loaded, - just don't make menu ids clash or, well, it'll be kind of pointless --> - <!-- default menu file (or custom one in $HOME/.config/openbox/) --> - <file>menu.xml</file> - <hideDelay>200</hideDelay> - <!-- if a press-release lasts longer than this setting (in milliseconds), the - menu is hidden again --> - <middle>no</middle> - <!-- center submenus vertically about the parent entry --> - <submenuShowDelay>100</submenuShowDelay> - <!-- time to delay before showing a submenu after hovering over the parent - entry. - if this is a negative value, then the delay is infinite and the - submenu will not be shown until it is clicked on --> - <submenuHideDelay>400</submenuHideDelay> - <!-- time to delay before hiding a submenu when selecting another - entry in parent menu - if this is a negative value, then the delay is infinite and the - submenu will not be hidden until a different submenu is opened --> - <showIcons>yes</showIcons> - <!-- controls if icons appear in the client-list-(combined-)menu --> - <manageDesktops>yes</manageDesktops> - <!-- show the manage desktops section in the client-list-(combined-)menu --> - </menu> - <applications> - <!-- - # this is an example with comments through out. use these to make your - # own rules, but without the comments of course. - # you may use one or more of the name/class/role/title/type rules to specify - # windows to match - - <application name="the window's _OB_APP_NAME property (see obxprop)" - class="the window's _OB_APP_CLASS property (see obxprop)" - groupname="the window's _OB_APP_GROUP_NAME property (see obxprop)" - groupclass="the window's _OB_APP_GROUP_CLASS property (see obxprop)" - role="the window's _OB_APP_ROLE property (see obxprop)" - title="the window's _OB_APP_TITLE property (see obxprop)" - type="the window's _OB_APP_TYPE property (see obxprob).. - (if unspecified, then it is 'dialog' for child windows)"> - # you may set only one of name/class/role/title/type, or you may use more - # than one together to restrict your matches. - - # the name, class, role, and title use simple wildcard matching such as those - # used by a shell. you can use * to match any characters and ? to match - # any single character. - - # the type is one of: normal, dialog, splash, utility, menu, toolbar, dock, - # or desktop - - # when multiple rules match a window, they will all be applied, in the - # order that they appear in this list - - - # each rule element can be left out or set to 'default' to specify to not - # change that attribute of the window - - <decor>yes</decor> - # enable or disable window decorations - - <shade>no</shade> - # make the window shaded when it appears, or not - - <position force="no"> - # the position is only used if both an x and y coordinate are provided - # (and not set to 'default') - # when force is "yes", then the window will be placed here even if it - # says you want it placed elsewhere. this is to override buggy - # applications who refuse to behave - <x>center</x> - # a number like 50, or 'center' to center on screen. use a negative number - # to start from the right (or bottom for <y>), ie -50 is 50 pixels from - # the right edge (or bottom). use 'default' to specify using value - # provided by the application, or chosen by openbox, instead. - <y>200</y> - <monitor>1</monitor> - # specifies the monitor in a xinerama setup. - # 1 is the first head, or 'mouse' for wherever the mouse is - </position> - - <size> - # the size to make the window. - <width>20</width> - # a number like 20, or 'default' to use the size given by the application. - # you can use fractions such as 1/2 or percentages such as 75% in which - # case the value is relative to the size of the monitor that the window - # appears on. - <height>30%</height> - </size> - - <focus>yes</focus> - # if the window should try be given focus when it appears. if this is set - # to yes it doesn't guarantee the window will be given focus. some - # restrictions may apply, but Openbox will try to - - <desktop>1</desktop> - # 1 is the first desktop, 'all' for all desktops - - <layer>normal</layer> - # 'above', 'normal', or 'below' - - <iconic>no</iconic> - # make the window iconified when it appears, or not - - <skip_pager>no</skip_pager> - # asks to not be shown in pagers - - <skip_taskbar>no</skip_taskbar> - # asks to not be shown in taskbars. window cycling actions will also - # skip past such windows - - <fullscreen>yes</fullscreen> - # make the window in fullscreen mode when it appears - - <maximized>true</maximized> - # 'Horizontal', 'Vertical' or boolean (yes/no) - </application> - - # end of the example ---> - </applications> -</openbox_config> diff --git a/tint2/.config/tint2/tint2rc b/tint2/.config/tint2/tint2rc @@ -1,194 +0,0 @@ -#---- Generated by tint2conf 2641 ---- -# See https://gitlab.com/o9000/tint2/wikis/Configure for -# full documentation of the configuration options. -#------------------------------------- -# Backgrounds -# Background 1: Panel -rounded = 0 -border_width = 0 -background_color = #000000 60 -border_color = #000000 30 -background_color_hover = #000000 60 -border_color_hover = #000000 30 -background_color_pressed = #000000 60 -border_color_pressed = #000000 30 - -# Background 2: Default task, Iconified task -rounded = 4 -border_width = 1 -background_color = #777777 20 -border_color = #777777 30 -background_color_hover = #aaaaaa 22 -border_color_hover = #eaeaea 44 -background_color_pressed = #555555 4 -border_color_pressed = #eaeaea 44 - -# Background 3: Active task -rounded = 4 -border_width = 1 -background_color = #777777 20 -border_color = #ffffff 40 -background_color_hover = #aaaaaa 22 -border_color_hover = #eaeaea 44 -background_color_pressed = #555555 4 -border_color_pressed = #eaeaea 44 - -# Background 4: Urgent task -rounded = 4 -border_width = 1 -background_color = #aa4400 100 -border_color = #aa7733 100 -background_color_hover = #cc7700 100 -border_color_hover = #aa7733 100 -background_color_pressed = #555555 4 -border_color_pressed = #aa7733 100 - -# Background 5: Tooltip -rounded = 1 -border_width = 1 -background_color = #ffffaa 100 -border_color = #000000 100 -background_color_hover = #ffffaa 100 -border_color_hover = #000000 100 -background_color_pressed = #ffffaa 100 -border_color_pressed = #000000 100 - -#------------------------------------- -# Panel -panel_items = LTSC -panel_size = 100% 25 -panel_margin = 0 0 -panel_padding = 2 0 2 -panel_background_id = 1 -wm_menu = 1 -panel_dock = 0 -panel_position = bottom center horizontal -panel_layer = top -panel_monitor = all -primary_monitor_first = 0 -autohide = 0 -autohide_show_timeout = 0 -autohide_hide_timeout = 0.5 -autohide_height = 2 -strut_policy = follow_size -panel_window_name = tint2 -disable_transparency = 1 -mouse_effects = 1 -font_shadow = 0 -mouse_hover_icon_asb = 100 0 10 -mouse_pressed_icon_asb = 100 0 0 - -#------------------------------------- -# Taskbar -taskbar_mode = single_desktop -taskbar_padding = 0 0 2 -taskbar_background_id = 0 -taskbar_active_background_id = 0 -taskbar_name = 1 -taskbar_hide_inactive_tasks = 0 -taskbar_hide_different_monitor = 0 -taskbar_always_show_all_desktop_tasks = 0 -taskbar_name_padding = 4 2 -taskbar_name_background_id = 0 -taskbar_name_active_background_id = 0 -taskbar_name_font = xos4 Terminus 8 -taskbar_name_font_color = #e3e3e3 100 -taskbar_name_active_font = xos4 Terminus 8 -taskbar_name_active_font_color = #ffffff 100 -taskbar_distribute_size = 0 -taskbar_sort_order = none -task_align = left - -#------------------------------------- -# Task -task_text = 1 -task_icon = 1 -task_centered = 1 -urgent_nb_of_blink = 100000 -task_maximum_size = 150 35 -task_padding = 2 2 4 -task_tooltip = 1 -task_font = xos4 Terminus 8 -task_font_color = #ffffff 100 -task_background_id = 2 -task_active_background_id = 3 -task_urgent_background_id = 4 -task_iconified_background_id = 2 -mouse_left = toggle_iconify -mouse_middle = none -mouse_right = close -mouse_scroll_up = toggle -mouse_scroll_down = iconify - -#------------------------------------- -# System tray (notification area) -systray_padding = 0 4 2 -systray_background_id = 0 -systray_sort = ascending -systray_icon_size = 24 -systray_icon_asb = 100 0 0 -systray_monitor = 1 - -#------------------------------------- -# Launcher -launcher_padding = 2 4 2 -launcher_background_id = 0 -launcher_icon_background_id = 0 -launcher_icon_size = 24 -launcher_icon_asb = 100 0 0 -launcher_icon_theme_override = 0 -startup_notifications = 1 -launcher_tooltip = 1 -launcher_item_app = /usr/share/applications/tint2conf.desktop -launcher_item_app = /usr/local/share/applications/tint2conf.desktop -launcher_item_app = /usr/share/applications/firefox.desktop -launcher_item_app = /usr/share/applications/urxvt-rxvt-unicode.desktop -launcher_item_app = /usr/share/applications/gvim.desktop -launcher_item_app = /usr/share/applications/pcmanfm.desktop - -#------------------------------------- -# Clock -time1_font = xos4 Terminus 8 -time2_font = xos4 Terminus 8 -time1_format = %H:%M -time2_format = %A %d %B -time1_timezone = -time2_timezone = -clock_font_color = #ffffff 100 -clock_padding = 2 0 -clock_background_id = 0 -clock_tooltip = -clock_tooltip_timezone = -clock_lclick_command = -clock_rclick_command = orage -clock_mclick_command = -clock_uwheel_command = -clock_dwheel_command = - -#------------------------------------- -# Battery -battery_tooltip = 1 -battery_low_status = 10 -battery_low_cmd = notify-send "battery low" -battery_font = xos4 Terminus 8 -battery_font_color = #ffffff 100 -battery_padding = 1 0 -battery_background_id = 0 -battery_hide = 101 -battery_lclick_command = -battery_rclick_command = -battery_mclick_command = -battery_uwheel_command = -battery_dwheel_command = -ac_connected_cmd = -ac_disconnected_cmd = - -#------------------------------------- -# Tooltip -tooltip_show_timeout = 0.5 -tooltip_hide_timeout = 0.1 -tooltip_padding = 2 2 -tooltip_background_id = 5 -tooltip_font = xos4 Terminus 8 -tooltip_font_color = #222222 100 - diff --git a/tint2/.config/tint2/vertical-neutral-icons.tint2rc b/tint2/.config/tint2/vertical-neutral-icons.tint2rc @@ -1,212 +0,0 @@ -#---- Generated by tint2conf d2bc ---- -# See https://gitlab.com/o9000/tint2/wikis/Configure for -# full documentation of the configuration options. -#------------------------------------- -# Backgrounds -# Background 1: Battery, Clock, Inactive taskbar, Launcher, Systray -rounded = 0 -border_width = 1 -background_color = #181818 85 -border_color = #303030 85 -background_color_hover = #181818 85 -border_color_hover = #303030 85 -background_color_pressed = #303030 85 -border_color_pressed = #606060 85 - -# Background 2: Active taskbar -rounded = 0 -border_width = 1 -background_color = #404040 85 -border_color = #808080 85 -background_color_hover = #404040 85 -border_color_hover = #808080 85 -background_color_pressed = #404040 85 -border_color_pressed = #808080 85 - -# Background 3: Active task -rounded = 0 -border_width = 1 -background_color = #cfcfcf 50 -border_color = #e7e7e7 50 -background_color_hover = #cfcfcf 50 -border_color_hover = #e7e7e7 50 -background_color_pressed = #cfcfcf 50 -border_color_pressed = #e7e7e7 50 - -# Background 4: Urgent task -rounded = 0 -border_width = 1 -background_color = #cfcfcf 80 -border_color = #e7e7e7 80 -background_color_hover = #cfcfcf 90 -border_color_hover = #e7e7e7 90 -background_color_pressed = #cfcfcf 50 -border_color_pressed = #e7e7e7 50 - -# Background 5: Default task, Iconified task, Launcher icon, Normal task -rounded = 0 -border_width = 1 -background_color = #cfcfcf 0 -border_color = #e7e7e7 0 -background_color_hover = #cfcfcf 30 -border_color_hover = #e7e7e7 30 -background_color_pressed = #cfcfcf 70 -border_color_pressed = #e7e7e7 70 - -# Background 6: Tooltip -rounded = 0 -border_width = 1 -background_color = #181818 85 -border_color = #303030 85 -background_color_hover = #181818 85 -border_color_hover = #303030 85 -background_color_pressed = #181818 85 -border_color_pressed = #303030 85 - -#------------------------------------- -# Panel -panel_items = LTSBC -panel_size = 100% 36 -panel_margin = 0 0 -panel_padding = 0 0 2 -panel_background_id = 0 -wm_menu = 1 -panel_dock = 0 -panel_position = center left vertical -panel_layer = top -panel_monitor = 1 -primary_monitor_first = 1 -autohide = 0 -autohide_show_timeout = 0.3 -autohide_hide_timeout = 2 -autohide_height = 2 -strut_policy = follow_size -panel_window_name = tint2 -disable_transparency = 0 -mouse_effects = 1 -font_shadow = 0 -mouse_hover_icon_asb = 100 0 10 -mouse_pressed_icon_asb = 100 0 25 - -#------------------------------------- -# Taskbar -taskbar_mode = multi_desktop -taskbar_padding = 0 0 1 -taskbar_background_id = 1 -taskbar_active_background_id = 2 -taskbar_name = 0 -taskbar_hide_inactive_tasks = 0 -taskbar_hide_different_monitor = 0 -taskbar_always_show_all_desktop_tasks = 0 -taskbar_name_padding = 0 0 -taskbar_name_background_id = 0 -taskbar_name_active_background_id = 0 -taskbar_name_font = Liberation Sans Bold 10 -taskbar_name_font_color = #000000 100 -taskbar_name_active_font_color = #000000 100 -taskbar_distribute_size = 0 -taskbar_sort_order = none -task_align = left - -#------------------------------------- -# Task -task_text = 1 -task_icon = 1 -task_centered = 0 -urgent_nb_of_blink = 65535 -task_maximum_size = 34 34 -task_padding = 0 0 2 -task_font = Liberation Sans 10 -task_tooltip = 1 -task_font_color = #e7e7e7 80 -task_normal_font_color = #e7e7e7 80 -task_active_font_color = #e7e7e7 86 -task_urgent_font_color = #e7e7e7 100 -task_iconified_font_color = #e7e7e7 66 -task_icon_asb = 90 0 0 -task_normal_icon_asb = 90 0 0 -task_active_icon_asb = 100 0 0 -task_urgent_icon_asb = 100 0 10 -task_iconified_icon_asb = 35 0 0 -task_background_id = 5 -task_normal_background_id = 5 -task_active_background_id = 3 -task_urgent_background_id = 4 -task_iconified_background_id = 5 -mouse_left = toggle_iconify -mouse_middle = close -mouse_right = maximize_restore -mouse_scroll_up = toggle -mouse_scroll_down = iconify - -#------------------------------------- -# System tray (notification area) -systray_padding = 5 5 1 -systray_background_id = 1 -systray_sort = ascending -systray_icon_size = 24 -systray_icon_asb = 100 0 0 -systray_monitor = 1 - -#------------------------------------- -# Launcher -launcher_padding = 5 5 1 -launcher_background_id = 1 -launcher_icon_background_id = 5 -launcher_icon_size = 24 -launcher_icon_asb = 100 0 0 -launcher_icon_theme_override = 0 -startup_notifications = 1 -launcher_tooltip = 1 -launcher_item_app = firefox.desktop -launcher_item_app = thunderbird.desktop -launcher_item_app = pidgin.desktop -launcher_item_app = x-terminal-emulator.desktop - -#------------------------------------- -# Clock -time1_format = %m-%d -time2_format = %H:%M -time1_font = Liberation Sans 8 -time1_timezone = -time2_timezone = -time2_font = Liberation Sans Bold 10 -clock_font_color = #e7e7e7 82 -clock_padding = 1 1 -clock_background_id = 1 -clock_tooltip = %Y-%m-%d %H:%M:%S -clock_tooltip_timezone = -clock_lclick_command = gsimplecal -clock_rclick_command = gsimplecal -clock_mclick_command = gsimplecal -clock_uwheel_command = -clock_dwheel_command = - -#------------------------------------- -# Battery -battery_tooltip = 1 -battery_low_status = 10 -battery_low_cmd = notify-send -u critical "Battery low" -bat1_font = Liberation Sans 10 -bat2_font = Liberation Sans 10 -battery_font_color = #e7e7e7 82 -battery_padding = 1 1 -battery_background_id = 1 -battery_hide = 101 -battery_lclick_command = -battery_rclick_command = -battery_mclick_command = -battery_uwheel_command = -battery_dwheel_command = -ac_connected_cmd = notify-send -u normal "AC connected" -ac_disconnected_cmd = notify-send -u normal "AC disconnected" - -#------------------------------------- -# Tooltip -tooltip_show_timeout = 0 -tooltip_hide_timeout = 0 -tooltip_padding = 3 3 -tooltip_background_id = 6 -tooltip_font_color = #e7e7e7 82 -tooltip_font = Liberation Sans 10 - diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf @@ -1,35 +0,0 @@ -set -g default-terminal tmux-256color # Use 256 colors -set -g history-limit 100000 # Scrollback buffer number of lines - - -#### COLOUR (Solarized 256) - -# default statusbar colors -set-option -g status-bg colour235 #base02 -set-option -g status-fg colour136 #yellow -set-option -g status-attr default - -# default window title colors -set-window-option -g window-status-fg colour244 #base0 -set-window-option -g window-status-bg default -#set-window-option -g window-status-attr dim - -# active window title colors -set-window-option -g window-status-current-fg colour166 #orange -set-window-option -g window-status-current-bg default -#set-window-option -g window-status-current-attr bright - -# pane border -set-option -g pane-border-fg colour235 #base02 -set-option -g pane-active-border-fg colour240 #base01 - -# message text -set-option -g message-bg colour235 #base02 -set-option -g message-fg colour166 #orange - -# pane number display -set-option -g display-panes-active-colour colour33 #blue -set-option -g display-panes-colour colour166 #orange - -# clock -set-window-option -g clock-mode-colour colour64 #green diff --git a/vim/.vim/gvimrc b/vim/.vim/gvimrc @@ -1,27 +0,0 @@ -" Disable toolbar and scrollbars -set guioptions-=T -set guioptions-=r -set guioptions-=R -set guioptions-=l -set guioptions-=L - -" Disable menubar -if has("gui_gtk2") || has("x11") || has("win32") || has("win64") - set guioptions-=m -end - -" Pixels between lines -set linespace=1 - -" Window dimensions -set lines=35 -set columns=120 - -" Set font. It depends on which operating system I'm using. -if has("win32") || has("win64") - set guifont=Terminus:h12,Consolas:h11,Courier\ New:h10 -elseif has("gui_gtk2") || has("gui_gtk3") - set guifont=xos4\ Terminus\ 12,Terminus\ 12,Monospace\ 10 -elseif has("x11") - set guifont=-*-terminus-*-*-*-*-12-*-*-*-*-*-*-* -endif diff --git a/vim/.vim/vimrc b/vim/.vim/vimrc @@ -1,124 +0,0 @@ -" if vim-plug is not installed -if empty(glob("~/.vim/autoload/plug.vim")) - silent !curl -fLso ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - autocmd VimEnter * PlugInstall -end - -" Init vim-plug plugins -call plug#begin('~/.vim/plugged/') - -" General purpose plugins -Plug 'tpope/vim-fugitive' -Plug 'airblade/vim-gitgutter' -"Plug 'ctrlpvim/ctrlp.vim' -"Plug 'ap/vim-buftabline' -Plug 'mattn/emmet-vim' -Plug 'editorconfig/editorconfig-vim' -Plug 'scrooloose/nerdtree' -Plug 'ntpeters/vim-better-whitespace' -Plug 'ron89/thesaurus_query.vim' -"Plug 'Valloric/YouCompleteMe' -"Plug 'rdnetto/YCM-Generator' - -" Language support -Plug 'wlangstroth/vim-racket' -Plug 'tfnico/vim-gradle' -Plug 'tpope/vim-rails' -Plug 'tpope/vim-endwise' -Plug 'alvan/vim-closetag' -Plug 'rust-lang/rust.vim' -Plug 'racer-rust/vim-racer' -Plug 'lervag/vimtex' -Plug 'nvie/vim-flake8' - -" Colorschemes -Plug 'morhetz/gruvbox' -call plug#end() - -" Stop acting like classic vi -set nocompatible " disable vi compatibility mode -set history=1000 " increase history size -set noswapfile " don't create swapfiles -set nobackup " don't backup, use git! - -" Modify indenting settings -set autoindent " autoindent always ON. -set expandtab " expand tabs to spaces -set shiftwidth=4 " spaces for autoindenting -set softtabstop=4 " remove a full pseudo-TAB when i press <BS> -set tabstop=8 " spaces for <TAB> - -" Modify some other settings about files -set encoding=utf-8 " always use unicode -set backspace=indent,eol,start " backspace always works on insert mode -set hidden -set colorcolumn=80 - -" Some programming languages work better when only 2 spaces padding is used. -autocmd FileType html,css,sass,scss,javascript setlocal sw=2 sts=2 -autocmd FileType json setlocal sw=2 sts=2 -autocmd FileType ruby,eruby setlocal sw=2 sts=2 -autocmd FileType yaml setlocal sw=2 sts=2 -autocmd FileType tex,plaintex setlocal sw=2 sts=2 nocuc cc=66,84,102,126,150 - -" Required for alvan/vim-closetag -let g:closetag_filenames = "*.html,*.xhtml,*.phtml,*.html.erb,*.xml.erb,*.xml" - -" Are we supporting colors? -if &t_Co > 2 || has("gui_running") - syntax on - silent! color gruvbox -else - set colorcolumn=0 -endif - -" Extra fancyness if full pallete is supported. -if &t_Co >= 256 || has("gui_running") - set cursorline - set cursorcolumn -endif - -set fillchars+=vert:\ " Remove unpleasant pipes from vertical splits - " Sauce on this: http://stackoverflow.com/a/9001540 - -set showmode " always show which more are we in -set laststatus=2 " always show statusbar -set wildmenu " enable visual wildmenu -set nowrap " don't wrap long lines -set number " show line numbers -set relativenumber " show numbers as relative by default -set showmatch " higlight matching parentheses and brackets -"let mapleader="," - -set spelllang=es_es -"set thesaurus='~/.vim/thesaurus/es_ES.txt' -let g:tq_language=['es'] -let g:tq_openoffice_en_file="/usr/share/myspell/th_en_US_v2" -let g:tq_openoffice_es_file="/usr/share/myspell/th_es_ES_v2" - -map <Leader>nt :NERDTreeToggle<CR> -"let NERDTreeQuitOnOpen=0 -let NERDTreeWinSize=20 - -let g:vimtex_view_method = 'zathura' - -"let g:ycm_server_python_interpreter = 'python2' -"let g:ycm_path_to_python_interpreter = '/usr/bin/python2' -"let g:ycm_python_binary_path = '/usr/bin/python2' -"let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file -"let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure -"let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword -"let g:ycm_complete_in_comments = 1 " Completion in comments -"let g:ycm_complete_in_strings = 1 " Completion in string -"let g:ycm_auto_trigger = 0 - -"" Para clases -"set nocuc -"set nornu -"set nonu -"set nuw=2 -"set bg=light -"set ls=1 -"set sts=2 -"set sw=2 -"set mouse=a diff --git a/zathura/.config/zathura/zathurarc b/zathura/.config/zathura/zathurarc @@ -1 +0,0 @@ -set selection-clipboard clipboard