├── .gitignore ├── .gitmodules ├── .stow-local-ignore ├── README.md ├── _legacy ├── Xmodmap │ └── .Xmodmap ├── compton │ └── .compton.conf ├── conky │ └── .conkyrc ├── espanso │ └── Library │ │ └── Preferences │ │ └── espanso │ │ ├── config │ │ └── default.yml │ │ └── match │ │ └── base.yml ├── gem │ └── .gemrc ├── ipython │ └── .ipython │ │ └── profile_default │ │ └── .ipython_config.py ├── mailcap │ └── .mailcap ├── mpd │ └── .mpd │ │ └── mpd.conf ├── mr │ └── .mrconfig ├── mutt │ └── .mutt │ │ ├── dark.256.muttrc.erb │ │ ├── mailcap │ │ ├── muttrc │ │ └── view_attachment.sh ├── ncmpcpp │ └── .ncmpcpp │ │ ├── bindings │ │ └── config ├── newsbeuter │ └── .newsbeuter │ │ ├── config │ │ └── config-or ├── npm │ └── .npmrc ├── openbox │ └── .config │ │ └── openbox │ │ ├── autostart │ │ ├── menu.xml │ │ └── rc.xml ├── pirate-get │ └── .config │ │ └── pirate-get ├── terminator │ └── .config │ │ └── terminator │ │ └── config ├── tint2 │ └── .config │ │ └── tint2 │ │ └── tint2rc ├── w3m │ └── .w3m │ │ └── config └── xxkb │ └── .xxkbrc ├── ack └── .ackrc ├── bash ├── .aliases ├── .bash_profile ├── .bashrc ├── .bashrc.linux-gnu ├── .bashrc.macos └── .profile ├── beets └── .config │ └── beets │ ├── config.yaml │ └── genres-whitelist ├── cocoa-text └── Library │ └── KeyBindings │ └── DefaultKeyBinding.dict ├── detox ├── .detoxrc └── .unicode-tweaked.tbl ├── git └── .gitconfig ├── hsxkpasswd └── .hsxkpasswdrc ├── ncdu └── .config │ └── ncdu │ └── config ├── readline └── .inputrc ├── ssh └── .ssh │ └── config ├── tmux ├── .tmux.conf └── .tmux.original.conf └── vim └── .vimrc /.gitignore: -------------------------------------------------------------------------------- 1 | ncmpcpp/.ncmpcpp/* 2 | !ncmpcpp/.ncmpcpp/bindings 3 | !ncmpcpp/.ncmpcpp/config 4 | mpd/.mpd/* 5 | !mpd/.mpd/mpd.conf 6 | mutt/.mutt/* 7 | !mutt/.mutt/muttrc 8 | !mutt/.mutt/mailcap 9 | !mutt/.mutt/dark.256.muttrc.erb 10 | !mutt/.mutt/view_attachment.sh 11 | ssh/.ssh/* 12 | !ssh/.ssh/config 13 | _legacy/espanso/Library/Preferences/espanso/match/packages 14 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrzool/dotfiles/0c9d01de26905feb35a6c0d7580e96dc8333de45/.gitmodules -------------------------------------------------------------------------------- /.stow-local-ignore: -------------------------------------------------------------------------------- 1 | \.git 2 | \.gitignore 3 | \.gitmodules 4 | /README.md 5 | /preview.png 6 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Config files for my \*nix systems. 2 | 3 | This repository includes dotfiles for Bash, Readline, Vim, tmux, Git, and more. Old dotfiles unused at the moment are archived in `_legacy`. 4 | 5 | Managed with the [GNU Stow](https://www.gnu.org/software/stow/) utility. 6 | 7 | A discussion about an old version of this setup is available on [/r/unixporn](https://www.reddit.com/r/unixporn/comments/3ddudy/os_x_vimtmux_setup/). 8 | 9 | ## Resources 10 | 11 | - [Using GNU Stow to manage your dotfiles](http://brandon.invergo.net/news/2012-05-26-using-gnu-stow-to-manage-your-dotfiles.html) 12 | - [Consistent terminal colors with 16-ANSI-color Vim themes](https://jeffkreeftmeijer.com/vim-16-color/) 13 | 14 | ## License 15 | 16 | [MIT](https://opensource.org/licenses/MIT) 17 | 18 | ## Author 19 | 20 | [mrzool](http://mrzool.cc) 21 | -------------------------------------------------------------------------------- /_legacy/Xmodmap/.Xmodmap: -------------------------------------------------------------------------------- 1 | keycode 66 = Control_L 2 | clear Lock 3 | add Control = Control_L 4 | -------------------------------------------------------------------------------- /_legacy/compton/.compton.conf: -------------------------------------------------------------------------------- 1 | ################################# 2 | # 3 | # Backend 4 | # 5 | ################################# 6 | 7 | # Backend to use: "xrender" or "glx". 8 | # GLX backend is typically much faster but depends on a sane driver. 9 | backend = "glx"; 10 | 11 | ################################# 12 | # 13 | # GLX backend 14 | # 15 | ################################# 16 | 17 | glx-no-stencil = true; 18 | 19 | # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all. 20 | # My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified, 21 | # but a 20% increase when only 1/4 is. 22 | # My tests on nouveau show terrible slowdown. 23 | # Useful with --glx-swap-method, as well. 24 | glx-copy-from-front = false; 25 | 26 | # GLX backend: Use MESA_copy_sub_buffer to do partial screen update. 27 | # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated. 28 | # May break VSync and is not available on some drivers. 29 | # Overrides --glx-copy-from-front. 30 | # glx-use-copysubbuffermesa = true; 31 | 32 | # GLX backend: Avoid rebinding pixmap on window damage. 33 | # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe). 34 | # Recommended if it works. 35 | glx-no-rebind-pixmap = true; 36 | 37 | 38 | # GLX backend: GLX buffer swap method we assume. 39 | # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1). 40 | # undefined is the slowest and the safest, and the default value. 41 | # copy is fastest, but may fail on some drivers, 42 | # 2-6 are gradually slower but safer (6 is still faster than 0). 43 | # Usually, double buffer means 2, triple buffer means 3. 44 | # buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers. 45 | # Useless with --glx-use-copysubbuffermesa. 46 | # Partially breaks --resize-damage. 47 | # Defaults to undefined. 48 | glx-swap-method = "copy"; 49 | 50 | ################################# 51 | # 52 | # Shadows 53 | # 54 | ################################# 55 | 56 | # Enabled client-side shadows on windows. 57 | shadow = true; 58 | # Don't draw shadows on DND windows. 59 | no-dnd-shadow = true; 60 | # Avoid drawing shadows on dock/panel windows. 61 | no-dock-shadow = true; 62 | # Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows. 63 | clear-shadow = true; 64 | # The blur radius for shadows. (default 12) 65 | shadow-radius = 5; 66 | # The left offset for shadows. (default -15) 67 | shadow-offset-x = -5; 68 | # The top offset for shadows. (default -15) 69 | shadow-offset-y = -5; 70 | # The translucency for shadows. (default .75) 71 | shadow-opacity = 0.5; 72 | 73 | # Set if you want different colour shadows 74 | # shadow-red = 0.0; 75 | # shadow-green = 0.0; 76 | # shadow-blue = 0.0; 77 | 78 | # The shadow exclude options are helpful if you have shadows enabled. Due to the way compton draws its shadows, certain applications will have visual glitches 79 | # (most applications are fine, only apps that do weird things with xshapes or argb are affected). 80 | # This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher. 81 | shadow-exclude = [ 82 | "! name~=''", 83 | "name = 'Notification'", 84 | "name = 'Plank'", 85 | "name = 'Docky'", 86 | "name = 'Kupfer'", 87 | "name = 'xfce4-notifyd'", 88 | "name *= 'VLC'", 89 | "name *= 'compton'", 90 | "name *= 'Chromium'", 91 | "name *= 'Chrome'", 92 | "name *= 'Firefox'", 93 | "class_g = 'Conky'", 94 | "class_g = 'Kupfer'", 95 | "class_g = 'Synapse'", 96 | "class_g ?= 'Notify-osd'", 97 | "class_g ?= 'Cairo-dock'", 98 | "class_g ?= 'Xfce4-notifyd'", 99 | "class_g ?= 'Xfce4-power-manager'" 100 | ]; 101 | # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners) 102 | shadow-ignore-shaped = true; 103 | 104 | ################################# 105 | # 106 | # Opacity 107 | # 108 | ################################# 109 | 110 | menu-opacity = 1; 111 | inactive-opacity = 1; 112 | active-opacity = 1; 113 | frame-opacity = 1; 114 | inactive-opacity-override = false; 115 | alpha-step = 0.06; 116 | 117 | # Dim inactive windows. (0.0 - 1.0) 118 | # inactive-dim = 0.2; 119 | # Do not let dimness adjust based on window opacity. 120 | # inactive-dim-fixed = true; 121 | # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred. 122 | blur-background = true; 123 | # Blur background of opaque windows with transparent frames as well. 124 | blur-background-frame = true; 125 | # Do not let blur radius adjust based on window opacity. 126 | blur-background-fixed = false; 127 | blur-background-exclude = [ 128 | "window_type = 'dock'", 129 | "window_type = 'desktop'" 130 | ]; 131 | 132 | ################################# 133 | # 134 | # Fading 135 | # 136 | ################################# 137 | 138 | # Fade windows during opacity changes. 139 | fading = true; 140 | # The time between steps in a fade in milliseconds. (default 10). 141 | fade-delta = 4; 142 | # Opacity change between steps while fading in. (default 0.028). 143 | fade-in-step = 0.03; 144 | # Opacity change between steps while fading out. (default 0.03). 145 | fade-out-step = 0.03; 146 | # Fade windows in/out when opening/closing 147 | # no-fading-openclose = true; 148 | 149 | # Specify a list of conditions of windows that should not be faded. 150 | fade-exclude = [ ]; 151 | 152 | ################################# 153 | # 154 | # Other 155 | # 156 | ################################# 157 | 158 | # Try to detect WM windows and mark them as active. 159 | mark-wmwin-focused = true; 160 | # Mark all non-WM but override-redirect windows active (e.g. menus). 161 | mark-ovredir-focused = true; 162 | # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events. 163 | # Usually more reliable but depends on a EWMH-compliant WM. 164 | use-ewmh-active-win = true; 165 | # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on. 166 | detect-rounded-corners = true; 167 | 168 | # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows. 169 | # This prevents opacity being ignored for some apps. 170 | # For example without this enabled my xfce4-notifyd is 100% opacity no matter what. 171 | detect-client-opacity = true; 172 | 173 | # Specify refresh rate of the screen. 174 | # If not specified or 0, compton will try detecting this with X RandR extension. 175 | refresh-rate = 0; 176 | 177 | # Set VSync method. VSync methods currently available: 178 | # none: No VSync 179 | # drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers. 180 | # opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers. 181 | # opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers. 182 | # opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental. 183 | # opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use. 184 | # (Note some VSync methods may not be enabled at compile time.) 185 | vsync = "opengl-swc"; 186 | 187 | # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing. 188 | # Reported to have no effect, though. 189 | dbe = false; 190 | # Painting on X Composite overlay window. Recommended. 191 | paint-on-overlay = true; 192 | 193 | # Limit compton to repaint at most once every 1 / refresh_rate second to boost performance. 194 | # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already, 195 | # unless you wish to specify a lower refresh rate than the actual value. 196 | sw-opti = false; 197 | 198 | # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games. 199 | # Known to cause flickering when redirecting/unredirecting windows. 200 | # paint-on-overlay may make the flickering less obvious. 201 | unredir-if-possible = true; 202 | 203 | # Specify a list of conditions of windows that should always be considered focused. 204 | focus-exclude = [ ]; 205 | 206 | # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time. 207 | detect-transient = true; 208 | # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time. 209 | # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too. 210 | detect-client-leader = true; 211 | 212 | ################################# 213 | # 214 | # Window type settings 215 | # 216 | ################################# 217 | 218 | wintypes: 219 | { 220 | tooltip = 221 | { 222 | # fade: Fade the particular type of windows. 223 | fade = true; 224 | # shadow: Give those windows shadow 225 | shadow = false; 226 | # opacity: Default opacity for the type of windows. 227 | opacity = 0.85; 228 | # focus: Whether to always consider windows of this type focused. 229 | focus = true; 230 | }; 231 | }; 232 | 233 | -------------------------------------------------------------------------------- /_legacy/conky/.conkyrc: -------------------------------------------------------------------------------- 1 | background yes 2 | use_xft yes 3 | xftfont Sans:size=8 4 | xftalpha 1 5 | update_interval 1.0 6 | total_run_times 0 7 | own_window yes 8 | own_window_transparent yes 9 | own_window_type desktop 10 | own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager 11 | double_buffer yes 12 | minimum_size 200 200 13 | maximum_width 240 14 | draw_shades no 15 | draw_outline no 16 | draw_borders no 17 | draw_graph_borders yes 18 | default_color 757575 19 | default_shade_color 000000 20 | default_outline_color 828282 21 | alignment top_right 22 | gap_x 12 23 | gap_y 50 24 | no_buffers yes 25 | uppercase no 26 | cpu_avg_samples 2 27 | override_utf8_locale yes 28 | 29 | TEXT 30 | ${font sans-serif:bold:size=8}SYSTEM ${hr 2} 31 | ${font sans-serif:normal:size=8}$sysname $kernel $alignr $machine 32 | Host:$alignr$nodename 33 | Uptime:$alignr$uptime 34 | Battery: $alignr${execi 60 acpi | grep -Eo '[0-9]+%'} 35 | File System: $alignr${fs_type} 36 | 37 | ${font sans-serif:bold:size=8}PROCESSORS ${hr 2} 38 | ${font sans-serif:normal:size=8}${cpugraph cpu1} 39 | CPU1: ${cpu cpu1}% ${cpubar cpu1} 40 | Temp:$alignr${hwmon 0 temp 1}°C 41 | ${font sans-serif:normal:size=8}${cpugraph cpu2} 42 | CPU2: ${cpu cpu2}% ${cpubar cpu2} 43 | Temp:$alignr${hwmon 1 temp 1}°C 44 | 45 | ${font sans-serif:bold:size=8}MEMORY ${hr 2} 46 | ${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc% 47 | $membar 48 | 49 | ${font sans-serif:bold:size=8}DISKS ${hr 2} 50 | ${font sans-serif:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}% 51 | ${fs_bar /} 52 | ${font sans-serif:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}% 53 | ${fs_bar /home} 54 | SWAP $alignc ${swap} / ${swapmax} $alignr ${swapperc}% 55 | ${swapbar} 56 | 57 | ${font sans-serif:bold:size=8}TOP PROCESSES ${hr 2} 58 | ${font sans-serif:normal:size=8}${top_mem name 1}${alignr}${top mem 1} % 59 | ${top_mem name 2}${alignr}${top mem 2} % 60 | $font${top_mem name 3}${alignr}${top mem 3} % 61 | $font${top_mem name 4}${alignr}${top mem 4} % 62 | $font${top_mem name 5}${alignr}${top mem 5} % 63 | 64 | ${font sans-serif:bold:size=8}NETWORK ${hr 2} 65 | ${font sans-serif:normal:size=8}IP address: $alignr ${addr wlan0} 66 | ESSID: $alignr ${wireless_essid wlan0} 67 | Connection quality: $alignr ${wireless_link_qual_perc wlan0}% 68 | ${downspeedgraph wlan0} 69 | DLS:${downspeed wlan0} kb/s $alignr total: ${totaldown wlan0} 70 | ${upspeedgraph wlan0} 71 | ULS:${upspeed wlan0} kb/s $alignr total: ${totalup wlan0} 72 | -------------------------------------------------------------------------------- /_legacy/espanso/Library/Preferences/espanso/config/default.yml: -------------------------------------------------------------------------------- 1 | # Automatically generated by espanso migration tool 2 | # Original file: default.yml 3 | 4 | show_icon: false 5 | show_notifications: false -------------------------------------------------------------------------------- /_legacy/espanso/Library/Preferences/espanso/match/base.yml: -------------------------------------------------------------------------------- 1 | # Automatically generated by espanso migration tool 2 | # Original file: default.yml 3 | 4 | matches: 5 | - trigger: ":sz" 6 | replace: ß 7 | - trigger: ":LG" 8 | replace: Liebe Grüße 9 | - trigger: ":FG" 10 | replace: Freundliche Grüße 11 | - trigger: ":lG" 12 | replace: liebe Grüße 13 | - trigger: ":eu" 14 | replace: € 15 | - trigger: ":dfa.de" 16 | replace: deutsche-filmakademie.de 17 | - trigger: ":->" 18 | replace: → 19 | - trigger: ":apple" 20 | replace:  21 | - trigger: ":date" 22 | replace: "{{mydate}}" 23 | vars: 24 | - name: mydate 25 | type: date 26 | params: 27 | format: "%m/%d/%Y" 28 | - trigger: ":shell" 29 | replace: "{{output}}" 30 | vars: 31 | - name: output 32 | type: shell 33 | params: 34 | cmd: echo Hello from your shell 35 | -------------------------------------------------------------------------------- /_legacy/gem/.gemrc: -------------------------------------------------------------------------------- 1 | --- 2 | :verbose: true 3 | :sources: 4 | - http://gems.rubyforge.org/ 5 | - http://gems.github.com/ 6 | :update_sources: true 7 | :backtrace: false 8 | :bulk_threshold: 1000 9 | :benchmark: false 10 | gem: --no-ri --no-rdoc --no-document --suggestions 11 | -------------------------------------------------------------------------------- /_legacy/ipython/.ipython/profile_default/.ipython_config.py: -------------------------------------------------------------------------------- 1 | # Don't display banner at startup 2 | c.TerminalIPythonApp.display_banner = False 3 | 4 | # Set the color scheme (NoColor, Linux, or LightBG). 5 | c.InteractiveShell.colors = 'Linux' 6 | 7 | # No blank line between prompts 8 | c.InteractiveShell.separate_in = '' 9 | -------------------------------------------------------------------------------- /_legacy/mailcap/.mailcap: -------------------------------------------------------------------------------- 1 | image/*; /usr/bin/qlmanage -p %s 2> /dev/null; 2 | -------------------------------------------------------------------------------- /_legacy/mpd/.mpd/mpd.conf: -------------------------------------------------------------------------------- 1 | music_directory "/Volumes/DataHD/music/" 2 | playlist_directory "~/Dropbox/m3u/" 3 | db_file "/Volumes/DataHD/music/mpd.db" 4 | log_file "~/.mpd/mpd.log" 5 | pid_file "~/.mpd/mpd.pid" 6 | state_file "~/.mpd/mpdstate" 7 | auto_update "yes" 8 | auto_update_depth "2" 9 | follow_outside_symlinks "yes" 10 | follow_inside_symlinks "yes" 11 | filesystem_charset "UTF-8" 12 | save_absolute_paths_in_playlists "yes" 13 | 14 | audio_output { 15 | type "osx" 16 | name "CoreAudio" 17 | mixer_type "software" 18 | } 19 | 20 | decoder { 21 | plugin "mp4ff" 22 | enabled "no" 23 | } 24 | 25 | bind_to_address "127.0.0.1" 26 | port "6600" 27 | 28 | -------------------------------------------------------------------------------- /_legacy/mr/.mrconfig: -------------------------------------------------------------------------------- 1 | 2 | [.vim/bundle/ack.vim] 3 | checkout = git clone 'https://github.com/mileszs/ack.vim' 'ack.vim' 4 | 5 | [.vim/bundle/auto-pairs] 6 | checkout = git clone 'https://github.com/jiangmiao/auto-pairs' 'auto-pairs' 7 | 8 | [.vim/bundle/ctrlp.vim] 9 | checkout = git clone 'https://github.com/kien/ctrlp.vim' 'ctrlp.vim' 10 | 11 | [.vim/bundle/goyo.vim] 12 | checkout = git clone 'https://github.com/junegunn/goyo.vim' 'goyo.vim' 13 | 14 | [.vim/bundle/grep.vim] 15 | checkout = git clone 'https://github.com/vim-scripts/grep.vim' 'grep.vim' 16 | 17 | [.vim/bundle/gundo.vim] 18 | checkout = git clone 'https://github.com/sjl/gundo.vim' 'gundo.vim' 19 | 20 | [.vim/bundle/html5.vim] 21 | checkout = git clone 'git@github.com:othree/html5.vim.git' 'html5.vim' 22 | 23 | [.vim/bundle/lightline.vim] 24 | checkout = git clone 'https://github.com/itchyny/lightline.vim' 'lightline.vim' 25 | 26 | [.vim/bundle/matchit.zip] 27 | checkout = git clone 'https://github.com/vim-scripts/matchit.zip' 'matchit.zip' 28 | 29 | [.vim/bundle/scss-syntax.vim] 30 | checkout = git clone 'git@github.com:cakebaker/scss-syntax.vim.git' 'scss-syntax.vim' 31 | 32 | [.vim/bundle/supertab] 33 | checkout = git clone 'https://github.com/ervandew/supertab' 'supertab' 34 | 35 | [.vim/bundle/syntastic] 36 | checkout = git clone 'https://github.com/scrooloose/syntastic.git' 'syntastic' 37 | 38 | [.vim/bundle/tcomment_vim] 39 | checkout = git clone 'https://github.com/tomtom/tcomment_vim' 'tcomment_vim' 40 | 41 | [.vim/bundle/tlib_vim] 42 | checkout = git clone 'https://github.com/tomtom/tlib_vim.git' 'tlib_vim' 43 | 44 | [.vim/bundle/vim-addon-mw-utils] 45 | checkout = git clone 'https://github.com/MarcWeber/vim-addon-mw-utils.git' 'vim-addon-mw-utils' 46 | 47 | [.vim/bundle/vim-css3-syntax] 48 | checkout = git clone 'https://github.com/hail2u/vim-css3-syntax.git' 'vim-css3-syntax' 49 | 50 | [.vim/bundle/vim-fugitive] 51 | checkout = git clone 'git://github.com/tpope/vim-fugitive.git' 'vim-fugitive' 52 | 53 | [.vim/bundle/vim-json] 54 | checkout = git clone 'https://github.com/elzr/vim-json' 'vim-json' 55 | 56 | [.vim/bundle/vim-liquid] 57 | checkout = git clone 'https://github.com/tpope/vim-liquid' 'vim-liquid' 58 | 59 | [.vim/bundle/vim-mustache-handlebars] 60 | checkout = git clone 'https://github.com/mustache/vim-mustache-handlebars.git' 'vim-mustache-handlebars' 61 | 62 | [.vim/bundle/vim-repeat] 63 | checkout = git clone 'https://github.com/tpope/vim-repeat' 'vim-repeat' 64 | 65 | [.vim/bundle/vim-snipmate] 66 | checkout = git clone 'https://github.com/garbas/vim-snipmate.git' 'vim-snipmate' 67 | 68 | [.vim/bundle/vim-snippets] 69 | checkout = git clone 'https://github.com/honza/vim-snippets.git' 'vim-snippets' 70 | 71 | [.vim/bundle/vim-surround] 72 | checkout = git clone 'git://github.com/tpope/vim-surround.git' 'vim-surround' 73 | 74 | [.vim/bundle/vim-colors-solarized] 75 | checkout = git clone 'git://github.com/altercation/vim-colors-solarized.git' 'vim-colors-solarized' 76 | -------------------------------------------------------------------------------- /_legacy/mutt/.mutt/dark.256.muttrc.erb: -------------------------------------------------------------------------------- 1 | # Mutt template by Robert Timm (https://github.com/rti) 2 | # Base16 scheme and Base16 Builder by Chris Kempson (https://github.com/chriskempson) 3 | # 4 | # ----------------------------------------------------------------------------- 5 | # MESSAGE MATCH PATTERNS 6 | # ----------------------------------------------------------------------------- 7 | # ~A all messages 8 | # ~b EXPR messages which contain EXPR in the message body 9 | # ~B EXPR messages which contain EXPR in the whole message 10 | # ~c USER messages carbon-copied to USER 11 | # ~C EXPR message is either to: or cc: EXPR 12 | # ~D deleted messages 13 | # ~d [MIN]-[MAX] messages with ``date-sent'' in a Date range 14 | # ~E expired messages 15 | # ~e EXPR message which contains EXPR in the ``Sender'' field 16 | # ~F flagged messages 17 | # ~f USER messages originating from USER 18 | # ~g PGP signed messages 19 | # ~G PGP encrypted messages 20 | # ~h EXPR messages which contain EXPR in the message header 21 | # ~k message contains PGP key material 22 | # ~i ID message which match ID in the ``Message-ID'' field 23 | # ~L EXPR message is either originated or received by EXPR 24 | # ~l message is addressed to a known mailing list 25 | # ~m [MIN]-[MAX] message in the range MIN to MAX *) 26 | # ~n [MIN]-[MAX] messages with a score in the range MIN to MAX *) 27 | # ~N new messages 28 | # ~O old messages 29 | # ~p message is addressed to you (consults $alternates) 30 | # ~P message is from you (consults $alternates) 31 | # ~Q messages which have been replied to 32 | # ~R read messages 33 | # ~r [MIN]-[MAX] messages with ``date-received'' in a Date range 34 | # ~S superseded messages 35 | # ~s SUBJECT messages having SUBJECT in the ``Subject'' field. 36 | # ~T tagged messages 37 | # ~t USER messages addressed to USER 38 | # ~U unread messages 39 | # ~v message is part of a collapsed thread. 40 | # ~x EXPR messages which contain EXPR in the `References' field 41 | # ~y EXPR messages which contain EXPR in the `X-Label' field 42 | # ~z [MIN]-[MAX] messages with a size in the range MIN to MAX *) 43 | # ~= duplicated messages (see $duplicate_threads) 44 | 45 | # basic colors --------------------------------------------------------- 46 | # name foreground background pattern 47 | color normal color20 color0 48 | color error color1 color0 49 | color tilde color20 color0 50 | color message color20 color0 51 | color markers color1 color0 52 | color attachment color8 color0 53 | color search color2 color0 54 | color status color8 color18 55 | color indicator color7 color19 56 | color tree color19 color0 # arrow in threads 57 | 58 | color index color20 color0 "~A" # all messages 59 | color index color1 color0 "~F" # flagged messages 60 | color index color20 color0 "~v~(!~N)" # collapsed thread with no unread 61 | color index color4 color0 "~U" # unread messages 62 | color index color4 color0 "~v~(~N)" # collapsed thread with some unread 63 | color index color1 color0 "~v~(~F)" # collapsed thread with some flagged 64 | color index color0 color1 "~D" # deleted messages 65 | 66 | # header 67 | color hdrdefault color20 color18 68 | color header color20 color18 "^" 69 | color header color7 color18 "^(From)" 70 | color header color7 color18 "^(Subject)" 71 | 72 | # body 73 | color normal color7 color0 74 | color underline color7 color0 75 | color bold color7 color0 76 | color signature color20 color0 77 | 78 | color quoted color3 color0 79 | color quoted1 color2 color0 80 | color quoted2 color5 color0 81 | color quoted3 color6 color0 82 | color quoted4 color4 color0 83 | 84 | # pgp 85 | color body color2 color0 "(Good signature)" 86 | color body color2 color0 "^gpg: Good signature .*" 87 | color body color20 color0 "^gpg: " 88 | color body color1 color0 "(BAD signature)" 89 | color body color1 color1 "^gpg: BAD signature from.*" 90 | 91 | # body url 92 | color body color4 color0 "([a-z][a-z0-9+-]*://(((([a-z0-9_.!~*'();:&=+$,-]|%[0-9a-f][0-9a-f])*@)?((([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?|[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)(:[0-9]+)?)|([a-z0-9_.!~*'()$,;:@&=+-]|%[0-9a-f][0-9a-f])+)(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*(/([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*(;([a-z0-9_.!~*'():@&=+$,-]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?(#([a-z0-9_.!~*'();/?:@&=+$,-]|%[0-9a-f][0-9a-f])*)?|(www|ftp)\\.(([a-z0-9]([a-z0-9-]*[a-z0-9])?)\\.)*([a-z]([a-z0-9-]*[a-z0-9])?)\\.?(:[0-9]+)?(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*(/([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*(;([-a-z0-9_.!~*'():@&=+$,]|%[0-9a-f][0-9a-f])*)*)*)?(\\?([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?(#([-a-z0-9_.!~*'();/?:@&=+$,]|%[0-9a-f][0-9a-f])*)?)[^].,:;!)? \t\r\n<>\"]" 93 | # body email 94 | color body color4 color0 "((@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]),)*@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\.[0-9]?[0-9]?[0-9]\\]):)?[0-9a-z_.+%$-]+@(([0-9a-z-]+\\.)*[0-9a-z-]+\\.?|#[0-9]+|\\[[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\.[0-2]?[0-9]?[0-9]\\])" 95 | 96 | 97 | # vim: filetype=muttrc 98 | 99 | -------------------------------------------------------------------------------- /_legacy/mutt/.mutt/mailcap: -------------------------------------------------------------------------------- 1 | # MS Word documents 2 | application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app' 3 | # 4 | # # Images 5 | image/jpg; ~/.mutt/view_attachment.sh %s jpg 6 | image/jpeg; ~/.mutt/view_attachment.sh %s jpg 7 | image/pjpeg; ~/.mutt/view_attachment.sh %s jpg 8 | image/png; ~/.mutt/view_attachment.sh %s png 9 | image/gif; ~/.mutt/view_attachment.sh %s gif 10 | # 11 | # # PDFs 12 | application/pdf; ~/.mutt/view_attachment.sh %s pdf 13 | 14 | # 15 | # # HTML 16 | text/html; ~/.mutt/view_attachment.sh %s html; copiousoutput 17 | # 18 | # # Unidentified files 19 | application/octet-stream; ~/.mutt/view_attachment.sh %s "-" -------------------------------------------------------------------------------- /_legacy/mutt/.mutt/muttrc: -------------------------------------------------------------------------------- 1 | # Based on: 2 | # http://stevelosh.com/blog/2012/10/the-homely-mutt/ 3 | # http://www.lucianofiandesio.com/getting-started-with-mutt-on-osx 4 | # http://www.bartbania.com/index.php/consolify-your-gmail-with-mutt/ 5 | # http://lifehacker.com/5574557/how-to-use-the-fast-and-powerful-mutt-email-client-with-gmail 6 | # https://web.archive.org/web/20100704062413/http://cache.gawker.com/assets/images/lifehacker/2010/06/muttrc-gmail.txt 7 | # 8 | # TODO: more comments 9 | 10 | # set locale = "en_US.UTF-8" 11 | 12 | # Account parameters 13 | source ~/Dropbox/sec/gmail # FYI: no passwords have been stored in this file 14 | 15 | # Account details 16 | set imap_user = $my_address 17 | set imap_pass = $my_pass 18 | set from = $my_address 19 | set realname = $my_realname 20 | set smtp_url = $my_smtp_url 21 | set smtp_pass = $my_pass 22 | 23 | # Gmail config 24 | set hostname = "gmail.com" 25 | set folder = "imaps://imap.gmail.com:993" 26 | set spoolfile = "+INBOX" 27 | set postponed = "+[GMail]/Drafts" 28 | set record = "+[GMail]/Sent Mail" 29 | # set trash = "+[GMail]/Trash" # Requires ad-hoc patch 30 | # set any_label = "+[Gmail]/any_label" 31 | set imap_check_subscribed 32 | set smtp_authenticators = 'gssapi:login' # Fixes 'No authenticators available' error 33 | set imap_keepalive = 900 34 | set query_command="goobook query '%s'" # Use goobook to search contacts 35 | 36 | # Paths 37 | set header_cache ="~/.mutt/cache/headers" 38 | set message_cachedir ="~/.mutt/cache/bodies" 39 | set certificate_file ="~/.mutt/certificates" 40 | set mailcap_path = "~/.mutt/mailcap" 41 | # set tmpdir = "~/.mutt/temp" 42 | # set signature = "~/.mutt/sig" 43 | 44 | # Basic Options 45 | set wait_key = no # shut up, mutt 46 | set mbox_type = Maildir # mailbox type 47 | unset move # gmail does that 48 | set delete # don't ask, just do 49 | unset confirmappend # don't ask, just do! 50 | set quit # don't ask, just do!! 51 | unset mark_old # read/new is good enough for me 52 | set pipe_decode # strip headers and eval mimes when piping 53 | set thorough_search # strip headers and eval mimes before searching 54 | unset markers # Don't display ugly plus signs when wrapping lines 55 | set pager_index_lines=10 # Keep index visible when opening mail (split view) 56 | set smart_wrap # Be smart when wrapping lines 57 | set pager_stop 58 | set include 59 | set fast_reply 60 | # set auto_tag 61 | 62 | # Email check 63 | set timeout=10 64 | set mail_check=120 65 | set beep_new 66 | 67 | # Index View Options 68 | set date_format = "%d/%m" 69 | set index_format = "[%Z] %D %-20.20F %s" 70 | set sort = threads # like gmail 71 | set sort_aux = reverse-last-date-received # like gmail 72 | set uncollapse_jump # don't collapse on an unread message 73 | set sort_re # thread based on regex 74 | set reply_regexp = "^(([Rr][Ee]?(\[[0-9]+\])?: *)?(\[[^]]+\] *)?)*" 75 | 76 | # Status Bar 77 | set status_chars = " *%A" 78 | set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───" 79 | 80 | # Header 81 | ignore * # ignore all headers 82 | unignore from: to: cc: date: subject: # show only these 83 | unhdr_order * # some distros order things by default 84 | hdr_order from: to: cc: date: subject: # and in this order 85 | 86 | # Sidebar 87 | # set sidebar_delim = '│' 88 | # set sidebar_visible = yes 89 | # set sidebar_width = 34 90 | # color sidebar_new color221 color0 91 | 92 | # Sidebar Bindings 93 | # bind index,pager sidebar-next 94 | # bind index,pager sidebar-prev 95 | # bind index,pager sidebar-open 96 | 97 | 98 | auto_view text/html # view html automatically 99 | alternative_order text/plain text/enriched text/html # save html for last 100 | 101 | # Key bindings 102 | bind generic,index Q exit 103 | bind editor noop 104 | bind editor complete-query 105 | 106 | bind browser gg top-page 107 | bind browser G bottom-page 108 | bind browser \Cb previous-page 109 | bind browser \Cf next-page 110 | bind browser A check-new 111 | bind browser v view-file 112 | 113 | bind index ~ set-flag 114 | bind index \Cv what-key 115 | bind index H current-top 116 | bind index M current-middle 117 | bind index L current-bottom 118 | bind index / search 119 | bind index : enter-command 120 | bind index i mail 121 | 122 | bind pager i edit 123 | bind pager u mark-as-new 124 | bind pager gg top 125 | bind pager G bottom 126 | bind pager j next-line 127 | bind pager k previous-line 128 | 129 | bind index,attach gg first-entry 130 | bind index,attach G last-entry 131 | 132 | bind index,pager L list-reply 133 | # bind index,pager P print-message 134 | bind index,pager R group-reply 135 | bind index,pager \Cd half-down 136 | bind index,pager \Cu half-up 137 | bind index,pager \Cf next-page 138 | bind index,pager \Cb previous-page 139 | bind index,pager \Cn next-thread 140 | bind index,pager \Cp previous-thread 141 | 142 | bind index,pager f forward-message 143 | bind index,pager p previous-undeleted 144 | bind index,pager N next-unread 145 | bind index,pager P previous-unread 146 | 147 | bind index,pager X print-message 148 | 149 | # Gmail-style keyboard shortcuts 150 | macro index,pager y "unset trash\n " "Gmail archive message" 151 | macro index,pager d "set trash=\"imaps://imap.googlemail.com/[GMail]/Bin\"\n " "Gmail delete message" 152 | macro index,pager gi "=INBOX" "Go to inbox" 153 | macro index,pager ga "=[Gmail]/All Mail" "Go to all mail" 154 | macro index,pager gs "=[Gmail]/Starred" "Go to starred messages" 155 | macro index,pager gd "=[Gmail]/Drafts" "Go to drafts" 156 | 157 | # Color scheme 158 | source ~/.mutt/dark.256.muttrc.erb 159 | -------------------------------------------------------------------------------- /_legacy/mutt/.mutt/view_attachment.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # 3 | # Author: Eric Gebhart 4 | # 5 | # Purpose: To be called by mutt as indicated by .mailcap to handle mail attachments. 6 | # 7 | # Function: Copy the given file to a temporary directory so mutt 8 | # Won't delete it before it is read by the application. 9 | # 10 | # Along the way, discern the file type or use the type 11 | # That is given. 12 | # 13 | # Finally use 'open' or 'open -a' if the third argument is 14 | # given. 15 | # 16 | # 17 | # Arguments: 18 | # 19 | # $1 is the file 20 | # $2 is the type - for those times when file magic isn't enough. 21 | # I frequently get html mail that has no extension 22 | # and file can't figure out what it is. 23 | # 24 | # Set to '-' if you don't want the type to be discerned. 25 | # Many applications can sniff out the type on their own. 26 | # And they do a better job of it too. 27 | # 28 | # Open Office and MS Office for example. 29 | # 30 | # $3 is open with. as in open -a 'open with this .app' foo.xls 31 | # 32 | # Examples: These are typical .mailcap entries which use this program. 33 | # 34 | # Image/JPEG; /Users/vdanen/.mutt/view_attachment %s 35 | # Image/PNG; /Users/vdanen/.mutt/view_attachment %s 36 | # Image/GIF; /Users/vdanen/.mutt/view_attachment %s 37 | # 38 | # Application/PDF; /Users/vdanen/.mutt/view_attachment %s 39 | # 40 | # #This HTML example passes the type because file doesn't always work and 41 | # #there aren't always extensions. 42 | # 43 | # text/html; /Users/vdanen/.mutt/view_attachment %s html 44 | # 45 | # # If your Start OpenOffice.org.app is spelled with a space like this one, <-- 46 | # # then you'll need to precede the space with a \ . I found that too painful 47 | # # and renamed it with an _. 48 | # 49 | # Application/vnd.ms-excel; /Users/vdanen/.mutt/view_attachment %s "-" '/Applications/OpenOffice.org1.1.2/Start_OpenOffice.org.app' 50 | # Application/msword; /Users/vdanen/.mutt/view_attachment %s "-" '/Applications/OpenOffice.org1.1.2/Start_OpenOffice.org.app' 51 | # 52 | # 53 | # Debugging: If you have problems set debug to 'yes'. That will cause a debug file 54 | # be written to /tmp/mutt_attach/debug so you can see what is going on. 55 | # 56 | # See Also: The man pages for open, file, basename 57 | # 58 | 59 | # the tmp directory to use. 60 | tmpdir="$HOME/.tmp/mutt_attach" 61 | 62 | # the name of the debug file if debugging is turned on. 63 | debug_file=$tmpdir/debug 64 | 65 | # debug. yes or no. 66 | #debug="no" 67 | debug="yes" 68 | 69 | type=$2 70 | open_with=$3 71 | 72 | # make sure the tmpdir exists. 73 | mkdir -p $tmpdir 74 | 75 | # clean it out. Remove this if you want the directory 76 | # to accumulate attachment files. 77 | rm -f $tmpdir/* 78 | 79 | # Mutt puts everything in /tmp by default. 80 | # This gets the basic filename from the full pathname. 81 | filename=`basename $1` 82 | 83 | # get rid of the extenson and save the name for later. 84 | file=`echo $filename | cut -d"." -f1` 85 | 86 | if [ $debug = "yes" ]; then 87 | echo "1:" $1 " 2:" $2 " 3:" $3 > $debug_file 88 | echo "Filename:"$filename >> $debug_file 89 | echo "File:"$file >> $debug_file 90 | echo "===========================" >> $debug_file 91 | fi 92 | 93 | # if the type is empty then try to figure it out. 94 | if [ -z $type ]; then 95 | file $1 96 | type=`file -bi $1 | cut -d"/" -f2` 97 | fi 98 | 99 | # if the type is '-' then we don't want to mess with type. 100 | # Otherwise we are rebuilding the name. Either from the 101 | # type that was passed in or from the type we discerned. 102 | if [ $type = "-" ]; then 103 | newfile=$filename 104 | else 105 | newfile=$file.$type 106 | fi 107 | 108 | newfile=$tmpdir/$newfile 109 | 110 | # Copy the file to our new spot so mutt can't delete it 111 | # before the app has a chance to view it. 112 | cp $1 $newfile 113 | 114 | if [ $debug = "yes" ]; then 115 | echo "File:" $file "TYPE:" $type >> $debug_file 116 | echo "Newfile:" $newfile >> $debug_file 117 | echo "Open With:" $open_with >> $debug_file 118 | fi 119 | 120 | # If there's no 'open with' then we can let preview do it's thing. 121 | # Otherwise we've been told what to use. So do an open -a. 122 | 123 | if [ -z $open_with ]; then 124 | open $newfile 125 | else 126 | open -a "$open_with" $newfile 127 | fi -------------------------------------------------------------------------------- /_legacy/ncmpcpp/.ncmpcpp/bindings: -------------------------------------------------------------------------------- 1 | ########################################################## 2 | ## this is example bindings configuration file, copy it ## 3 | ## to ~/.ncmpcpp/bindings and set up your preferences ## 4 | ########################################################## 5 | ## 6 | ##### General rules ##### 7 | ## 8 | ## 1) Because each action has runtime checks whether it's 9 | ## ok to run it, a few actions can be bound to one key. 10 | ## Actions will be bound in order given in configuration 11 | ## file. When a key is pressed, first action in order 12 | ## will test itself whether it's possible to run it. If 13 | ## test succeeds, action is executed and other actions 14 | ## bound to this key are ignored. If it doesn't, next 15 | ## action in order tests itself etc. 16 | ## 17 | ## 2) It's possible to bind more that one action at once 18 | ## to a key. It can be done using the following syntax: 19 | ## 20 | ## def_key "key" 21 | ## action1 22 | ## action2 23 | ## ... 24 | ## 25 | ## This creates chain of actions. When such chain is 26 | ## executed, each action in chain is run until the end of 27 | ## chain is reached or one of actions failed to execute 28 | ## due to its requirements not being met. Note that 29 | ## execution of chain of actions ALWAYS succeeds, no 30 | ## matter if one of actions from the chain failed (even 31 | ## if it was the first one in order and thus nothing 32 | ## was really executed). Because of that, if you decide 33 | ## to bind both actions and chains to a single key, make 34 | ## sure that chain is defined in the end. Otherwise, all 35 | ## actions bound to the key after chain will never be run. 36 | ## 37 | ## 3) When ncmpcpp starts, bindings configuration file is 38 | ## parsed and then ncmpcpp provides "missing pieces" 39 | ## of default keybindings. If you want to disable some 40 | ## bindings, there is a special action called 'dummy' 41 | ## for that purpose. Eg. if you want to disable ability 42 | ## to crop playlists, you need to put the following 43 | ## into configuration file: 44 | ## 45 | ## def_key "C" 46 | ## dummy 47 | ## 48 | ## After that ncmpcpp will not bind any default action 49 | ## to this key. 50 | ## 51 | ## 4) To let you write simple macros, the following special 52 | ## actions are provided: 53 | ## 54 | ## - push_character "character" - pushes given special 55 | ## character into input queue, so it will be immediately 56 | ## picked by ncmpcpp upon next call to readKey function. 57 | ## Accepted values: mouse, up, down, page_up, page_down, 58 | ## home, end, space, enter, insert, delete, left, right, 59 | ## tab, shift_tab, ctrl_a, ctrl_b, ..., ctrl_z, f1, f2, 60 | ## ..., f12, backspace, backspace_2. 61 | ## 62 | ## - push_characters "string" - pushes given string into 63 | ## input queue. 64 | ## 65 | ## - require_runnable "action" - checks whether given action 66 | ## is runnable and fails if it isn't. This is especially 67 | ## useful when mixed with previous two functions. Consider 68 | ## the following macro definition: 69 | ## 70 | ## def_key "key" 71 | ## push_characters "custom_filter" 72 | ## apply_filter 73 | ## 74 | ## If apply_filter can't be currently run, we end up with 75 | ## sequence of characters in input queue which will be 76 | ## treated just as we typed them. This may lead to unexpected 77 | ## results (in this case 'c' will most likely clear current 78 | ## playlist, 'u' will trigger database update, 's' will stop 79 | ## playback etc.). To prevent such thing from happening, we 80 | ## need to change above definition to this one: 81 | ## 82 | ## def_key "key" 83 | ## require_runnable "apply_filter" 84 | ## push_characters "custom_filter" 85 | ## apply_filter 86 | ## 87 | ## Here, first we test whether apply_filter can be actually run 88 | ## before we stuff characters into input queue, so if condition 89 | ## is not met, whole chain is aborted and we're fine. 90 | ## 91 | ## - require_screen "screen" - checks whether given screen is 92 | ## currently active. accepted values: browser, clock, help, 93 | ## media_library, outputs, playlist, playlist_editor, 94 | ## search_engine, tag_editor, visualizer, last_fm, lyrics, 95 | ## selected_items_adder, server_info, song_info, 96 | ## sort_playlist_dialog, tiny_tag_editor. 97 | ## 98 | ## - run_external_command "command" - runs given command using 99 | ## system() function. 100 | ## 101 | ## 5) In addition to binding to a key, you can also bind actions 102 | ## or chains of actions to a command. If it comes to commands, 103 | ## syntax is very similar to defining keys. Here goes example 104 | ## definition of a command: 105 | ## 106 | ## def_command "quit" [deferred] 107 | ## stop 108 | ## quit 109 | ## 110 | ## If you execute the above command (which can be done by 111 | ## invoking action execute_command, typing 'quit' and pressing 112 | ## enter), ncmpcpp will stop the player and then quit. Note the 113 | ## presence of word 'deferred' enclosed in square brackets. It 114 | ## tells ncmpcpp to wait for confirmation (ie. pressing enter) 115 | ## after you typed quit. Instead of 'deferred', 'immediate' 116 | ## could be used. Then ncmpcpp will not wait for confirmation 117 | ## (enter) and will execute the command the moment it sees it. 118 | ## 119 | ## Note: Both 'backspace' and 'backspace_2' are used because some 120 | ## terminals interpret backspace using keycode of 'backspace' 121 | ## and some the one of 'backspace_2'. You can get away with 122 | ## binding once if all your terminal emulators use the same 123 | ## value. 124 | ## 125 | ## Note: There is a difference between: 126 | ## 127 | ## def_key "key" 128 | ## action1 129 | ## 130 | ## def_key "key" 131 | ## action2 132 | ## 133 | ## and 134 | ## 135 | ## def_key "key" 136 | ## action1 137 | ## action2 138 | ## 139 | ## First one binds two single actions to the same key whilst 140 | ## second one defines a chain of actions. The behavior of 141 | ## these two is different and is described in (1) and (2). 142 | ## 143 | ## Note: Function def_key accepts non-ascii characters. 144 | ## 145 | # 146 | #def_key "mouse" 147 | # mouse_event 148 | # 149 | def_key "k" 150 | scroll_up 151 | # 152 | def_key "j" 153 | scroll_down 154 | # 155 | #def_key "[" 156 | # scroll_up_album 157 | # 158 | #def_key "]" 159 | # scroll_down_album 160 | # 161 | #def_key "{" 162 | # scroll_up_artist 163 | # 164 | #def_key "}" 165 | # scroll_down_artist 166 | # 167 | def_key "ctrl-u" 168 | page_up 169 | # 170 | def_key "ctrl-d" 171 | page_down 172 | # 173 | #def_key "home" 174 | # move_home 175 | # 176 | #def_key "end" 177 | # move_end 178 | # 179 | #def_key "space" 180 | # press_space 181 | # 182 | #def_key "enter" 183 | # press_enter 184 | # 185 | def_key "d" 186 | delete_playlist_items 187 | # 188 | def_key "D" 189 | delete_stored_playlist 190 | 191 | def_key "ctrl-l" 192 | next_column 193 | # 194 | #def_key "right" 195 | # slave_screen 196 | # 197 | #def_key "right" 198 | # volume_up 199 | # 200 | #def_key "+" 201 | # volume_up 202 | # 203 | def_key "ctrl-h" 204 | previous_column 205 | # 206 | #def_key "left" 207 | # master_screen 208 | # 209 | #def_key "left" 210 | # volume_down 211 | # 212 | #def_key "-" 213 | # volume_down 214 | # 215 | #def_key ":" 216 | # execute_command 217 | # 218 | #def_key "tab" 219 | # next_screen 220 | # 221 | #def_key "shift_tab" 222 | # previous_screen 223 | # 224 | #def_key "f1" 225 | # show_help 226 | # 227 | #def_key "1" 228 | # show_playlist 229 | # 230 | #def_key "2" 231 | # show_browser 232 | # 233 | #def_key "2" 234 | # change_browse_mode 235 | # 236 | #def_key "3" 237 | # show_search_engine 238 | # 239 | #def_key "3" 240 | # reset_search_engine 241 | # 242 | #def_key "4" 243 | # show_media_library 244 | # 245 | #def_key "4" 246 | # toggle_media_library_columns_mode 247 | # 248 | #def_key "5" 249 | # show_playlist_editor 250 | # 251 | #def_key "6" 252 | # show_tag_editor 253 | # 254 | #def_key "7" 255 | # show_outputs 256 | # 257 | #def_key "8" 258 | # show_visualizer 259 | # 260 | #def_key "=" 261 | # show_clock 262 | # 263 | #def_key "@" 264 | # show_server_info 265 | # 266 | #def_key "s" 267 | # stop 268 | # 269 | #def_key "p" 270 | # pause 271 | # 272 | #def_key ">" 273 | # next 274 | # 275 | #def_key "<" 276 | # previous 277 | # 278 | #def_key "ctrl_h" 279 | # jump_to_parent_directory 280 | # 281 | #def_key "ctrl_h" 282 | # replay_song 283 | # 284 | #def_key "backspace" 285 | # jump_to_parent_directory 286 | # 287 | #def_key "backspace" 288 | # replay_song 289 | # 290 | #def_key "backspace_2" 291 | # jump_to_parent_directory 292 | # 293 | #def_key "backspace_2" 294 | # replay_song 295 | # 296 | #def_key "f" 297 | # seek_forward 298 | # 299 | #def_key "b" 300 | # seek_backward 301 | # 302 | #def_key "r" 303 | # toggle_repeat 304 | # 305 | #def_key "z" 306 | # toggle_random 307 | # 308 | #def_key "y" 309 | # save_tag_changes 310 | # 311 | #def_key "y" 312 | # start_searching 313 | # 314 | #def_key "y" 315 | # toggle_single 316 | # 317 | #def_key "R" 318 | # toggle_consume 319 | # 320 | #def_key "Y" 321 | # toggle_replay_gain_mode 322 | # 323 | #def_key "t" 324 | # toggle_space_mode 325 | # 326 | #def_key "T" 327 | # toggle_add_mode 328 | # 329 | #def_key "|" 330 | # toggle_mouse 331 | # 332 | #def_key "#" 333 | # toggle_bitrate_visibility 334 | # 335 | #def_key "Z" 336 | # shuffle 337 | # 338 | #def_key "x" 339 | # toggle_crossfade 340 | # 341 | #def_key "X" 342 | # set_crossfade 343 | # 344 | #def_key "u" 345 | # update_database 346 | # 347 | #def_key "ctrl_v" 348 | # sort_playlist 349 | # 350 | #def_key "ctrl_r" 351 | # reverse_playlist 352 | # 353 | #def_key "ctrl_f" 354 | # apply_filter 355 | # 356 | #def_key "/" 357 | # find 358 | # 359 | #def_key "/" 360 | # find_item_forward 361 | # 362 | #def_key "?" 363 | # find 364 | # 365 | #def_key "?" 366 | # find_item_backward 367 | # 368 | #def_key "." 369 | # next_found_item 370 | # 371 | #def_key "," 372 | # previous_found_item 373 | # 374 | #def_key "w" 375 | # toggle_find_mode 376 | # 377 | #def_key "e" 378 | # edit_song 379 | # 380 | #def_key "e" 381 | # edit_library_tag 382 | # 383 | #def_key "e" 384 | # edit_library_album 385 | # 386 | #def_key "e" 387 | # edit_directory_name 388 | # 389 | #def_key "e" 390 | # edit_playlist_name 391 | # 392 | #def_key "e" 393 | # edit_lyrics 394 | # 395 | #def_key "i" 396 | # show_song_info 397 | # 398 | #def_key "I" 399 | # show_artist_info 400 | # 401 | #def_key "g" 402 | # jump_to_position_in_song 403 | # 404 | #def_key "l" 405 | # show_lyrics 406 | # 407 | #def_key "v" 408 | # reverse_selection 409 | # 410 | #def_key "V" 411 | # remove_selection 412 | # 413 | #def_key "B" 414 | # select_album 415 | # 416 | #def_key "a" 417 | # add_selected_items 418 | # 419 | #def_key "c" 420 | # clear_playlist 421 | # 422 | #def_key "c" 423 | # clear_main_playlist 424 | # 425 | #def_key "C" 426 | # crop_playlist 427 | # 428 | #def_key "C" 429 | # crop_main_playlist 430 | # 431 | #def_key "m" 432 | # move_sort_order_up 433 | # 434 | #def_key "m" 435 | # move_selected_items_up 436 | # 437 | #def_key "m" 438 | # toggle_media_library_sort_mode 439 | # 440 | #def_key "n" 441 | # move_sort_order_down 442 | # 443 | #def_key "n" 444 | # move_selected_items_down 445 | # 446 | #def_key "M" 447 | # move_selected_items_to 448 | # 449 | #def_key "A" 450 | # add 451 | # 452 | #def_key "S" 453 | # save_playlist 454 | # 455 | #def_key "o" 456 | # jump_to_playing_song 457 | # 458 | #def_key "G" 459 | # jump_to_browser 460 | # 461 | #def_key "G" 462 | # jump_to_playlist_editor 463 | # 464 | #def_key "~" 465 | # jump_to_media_library 466 | # 467 | #def_key "E" 468 | # jump_to_tag_editor 469 | # 470 | #def_key "U" 471 | # toggle_playing_song_centering 472 | # 473 | #def_key "P" 474 | # toggle_display_mode 475 | # 476 | #def_key "\\" 477 | # toggle_interface 478 | # 479 | #def_key "!" 480 | # toggle_separators_between_albums 481 | # 482 | #def_key "L" 483 | # toggle_lyrics_fetcher 484 | # 485 | #def_key "F" 486 | # toggle_fetching_lyrics_in_background 487 | # 488 | #def_key "ctrl_l" 489 | # toggle_screen_lock 490 | # 491 | #def_key "`" 492 | # toggle_browser_sort_mode 493 | # 494 | #def_key "`" 495 | # toggle_library_tag_type 496 | # 497 | #def_key "`" 498 | # refetch_lyrics 499 | # 500 | #def_key "`" 501 | # refetch_artist_info 502 | # 503 | #def_key "`" 504 | # add_random_items 505 | # 506 | #def_key "ctrl_p" 507 | # set_selected_items_priority 508 | # 509 | #def_key "q" 510 | # quit 511 | # 512 | -------------------------------------------------------------------------------- /_legacy/ncmpcpp/.ncmpcpp/config: -------------------------------------------------------------------------------- 1 | mpd_host = "localhost" 2 | mpd_port = "6600" 3 | mpd_music_dir = "/Volumes/z/music/" 4 | mpd_connection_timeout = "5" 5 | 6 | visualizer_fifo_path = "/tmp/mpd.fifo" 7 | visualizer_output_name = "my_fifo" 8 | visualizer_sync_interval = "30" 9 | visualizer_type = "wave" (spectrum/wave) 10 | visualizer_look = "∙▋" 11 | visualizer_in_stereo = "yes" 12 | 13 | playlist_disable_highlight_delay = "2" 14 | 15 | song_list_format = "$1 %n │ $5%a$1 │ $8%t $7(%l)$1 $R$6%b $7(%y)$1 $9" 16 | 17 | selected_item_prefix = "$8" 18 | selected_item_suffix = "$9" 19 | 20 | song_columns_list_format = " (5)[black]{n} (6)[magenta]{lr} (35)[blue]{t} (30)[cyan]{a} (20)[green]{bEr} (4)[white]{yE}" 21 | 22 | playlist_display_mode = "columns" (classic/columns) 23 | 24 | progressbar_look = "─░─" 25 | 26 | user_interface = "alternative" (classic/alternative) 27 | 28 | header_visibility = "yes" 29 | 30 | display_volume_level = "yes" 31 | -------------------------------------------------------------------------------- /_legacy/newsbeuter/.newsbeuter/config: -------------------------------------------------------------------------------- 1 | # reloading 2 | refresh-on-startup yes 3 | auto-reload no 4 | reload-time 360 # minutes 5 | prepopulate-query-feeds yes 6 | reload-threads 4 7 | reload-only-visible-feeds no 8 | show-read-feeds yes 9 | download-retries 4 10 | download-full-page yes 11 | cleanup-on-quit no 12 | 13 | # notification 14 | notify-screen yes 15 | notify-xterm yes 16 | 17 | # storage 18 | max-items 500 19 | 20 | # external programs 21 | browser w3m 22 | external-url-viewer "urlview" 23 | bookmark-cmd instapaper-add 24 | 25 | # display 26 | text-width 72 27 | article-sort-order date-asc 28 | feedlist-format "%S%n %11u %t" 29 | articlelist-format "%D %f %?T?;%-17T; ?%t" 30 | datetime-format "%d %b %y" 31 | color background white black 32 | color listnormal white black 33 | color listfocus black white 34 | color info black white 35 | color article white black 36 | 37 | # interface 38 | confirm-exit no 39 | bind-key k up 40 | bind-key j down 41 | -------------------------------------------------------------------------------- /_legacy/newsbeuter/.newsbeuter/config-or: -------------------------------------------------------------------------------- 1 | # vi: ft=config 2 | 3 | urls-source "oldreader" 4 | oldreader-login "zool.bib@gmail.com" 5 | oldreader-password "`security find-internet-password -g -w -j oldreader`" 6 | oldreader-flag-share "a" 7 | oldreader-flag-star "b" 8 | oldreader-show-special-feeds no 9 | 10 | include "~/dotfiles/newsbeuter/.newsbeuter/config" 11 | 12 | -------------------------------------------------------------------------------- /_legacy/npm/.npmrc: -------------------------------------------------------------------------------- 1 | message=Bumped to %s 2 | sign-git-tag=true 3 | -------------------------------------------------------------------------------- /_legacy/openbox/.config/openbox/autostart: -------------------------------------------------------------------------------- 1 | ## Openbox autostart.sh 2 | ## ==================== 3 | ## When you login to your CrunchBang Openbox session, this autostart script 4 | ## will be executed to set-up your environment and launch any applications 5 | ## you want to run at startup. 6 | ## 7 | ## Note*: some programs, such as 'nm-applet' are run via XDG autostart. 8 | ## Run '/usr/lib/openbox/openbox-xdg-autostart --list' to list any 9 | ## XDG autostarted programs. 10 | ## 11 | ## More information about this can be found at: 12 | ## http://openbox.org/wiki/Help:Autostart 13 | ## 14 | ## If you do something cool with your autostart script and you think others 15 | ## could benefit from your hack, please consider sharing it at: 16 | ## http://crunchbang.org/forums/ 17 | ## 18 | ## Have fun & happy CrunchBangin'! :) 19 | 20 | ## GNOME PolicyKit and Keyring 21 | eval $(gnome-keyring-daemon -s --components=pkcs11,secrets,ssh,gpg) & 22 | 23 | ## Set root window colour 24 | hsetroot -solid "#2E3436" & 25 | 26 | ## Detect wheather we have an external monitor connected or not 27 | /home/zool/bin/monitor-autodetect & 28 | 29 | ## Group start: 30 | ## 1. nitrogen - restores wallpaper 31 | ## 2. compositor - start 32 | ## 3. sleep - give compositor time to start 33 | ## 4. tint2 panel 34 | (\ 35 | nitrogen --restore && \ 36 | cb-compositor --start && \ 37 | sleep 2s && \ 38 | tint2 \ 39 | ) & 40 | 41 | ## Volume control for systray 42 | (sleep 2s && pnmixer) & 43 | 44 | ## Volume keys daemon 45 | xfce4-volumed & 46 | 47 | ## Enable power management 48 | xfce4-power-manager & 49 | 50 | ## Start Thunar Daemon 51 | thunar --daemon & 52 | 53 | ## Detect and configure touchpad. See 'man synclient' for more info. 54 | if egrep -iq 'touchpad' /proc/bus/input/devices; then 55 | synclient VertEdgeScroll=1 & 56 | synclient TapButton1=1 & 57 | fi 58 | 59 | ## Start xscreensaver 60 | xscreensaver -no-splash & 61 | 62 | ## Start Clipboard manager 63 | (sleep 3s && clipit) & 64 | 65 | ## Start keyboard layout switcher 66 | # (sleep 3s && fbxkb) & 67 | (sleep 6s && xxkb) & 68 | 69 | ## Set keyboard settings - 250 ms delay and 25 cps (characters per second) repeat rate. 70 | ## Adjust the values according to your preferances. 71 | xset r rate 250 25 & 72 | 73 | ## Turn on/off system beep 74 | xset b off & 75 | 76 | ## cb-fortune - have Waldorf say a little adage 77 | #(sleep 120s && cb-fortune) & 78 | 79 | ## Run the conky 80 | conky -q & 81 | 82 | # Autostart the Dropbox deamon 83 | (sleep 10s && ~/.dropbox-dist/dropboxd) & 84 | 85 | # Sets proper screen brightness 86 | xbacklight = 50 & 87 | 88 | # Remap capslock 89 | xmodmap ~/.Xmodmap 90 | -------------------------------------------------------------------------------- /_legacy/openbox/.config/openbox/menu.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | gmrun 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | terminator 21 | 22 | 23 | 24 | 25 | 26 | 27 | x-www-browser 28 | 29 | 30 | 31 | 32 | 33 | 34 | thunar 35 | 36 | 37 | 38 | 39 | 40 | 41 | gvim 42 | 43 | 44 | 45 | 46 | 47 | 48 | vlc 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | catfish 58 | 59 | 60 | 61 | 62 | 63 | 64 | file-roller 65 | 66 | 67 | 68 | 69 | 70 | 71 | gvim 72 | 73 | 74 | 75 | 76 | 77 | terminator --command="htop" 78 | 79 | 80 | 81 | 82 | 83 | terminator 84 | 85 | 86 | 87 | 88 | 89 | 90 | thunar 91 | 92 | 93 | 94 | 95 | 96 | 97 | gksudo thunar 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | gimp 107 | 108 | 109 | 110 | 111 | 112 | 113 | inkscape 114 | 115 | 116 | 117 | 118 | 119 | 120 | viewnior 121 | 122 | 123 | 124 | 125 | 126 | 127 | 128 | xfce4-screenshooter 129 | 130 | 131 | 132 | 133 | 134 | 135 | 136 | scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f' 137 | 138 | 139 | 140 | 141 | 142 | 143 | scrot -d 5 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f' 144 | 145 | 146 | 147 | 148 | 149 | 150 | scrot -d 10 '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f' 151 | 152 | 153 | 154 | 155 | 156 | 157 | scrot -s '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f' 158 | 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 | vlc 168 | 169 | 170 | 171 | 172 | 173 | 174 | pavucontrol 175 | 176 | 177 | 178 | 179 | 180 | 181 | xfburn 182 | 183 | 184 | 185 | 186 | 187 | 188 | 189 | 190 | 191 | gftp 192 | 193 | 194 | 195 | 196 | 197 | 198 | transmission-gtk 199 | 200 | 201 | 202 | 203 | 204 | 205 | xchat 206 | 207 | 208 | 209 | 210 | 211 | 212 | gigolo 213 | 214 | 215 | 216 | 217 | 218 | 219 | 220 | 221 | 222 | 223 | 224 | 225 | 226 | x-www-browser https://drive.google.com/ 227 | 228 | 229 | 230 | 231 | 232 | 233 | abiword 234 | 235 | 236 | 237 | 238 | 239 | 240 | gnumeric 241 | 242 | 243 | 244 | 245 | 246 | 247 | galculator 248 | 249 | 250 | 251 | 252 | 253 | 254 | evince 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | gvim ~/.conkyrc 270 | 271 | 272 | 273 | 274 | 275 | 276 | conkywonky 277 | 278 | 279 | 280 | 281 | 282 | 283 | 284 | terminator --command="man conky" 285 | 286 | 287 | 288 | 289 | 290 | 291 | x-www-browser http://crunchbanglinux.org/wiki/conky 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | gvim ~/.config/dmenu/dmenu-bind.sh 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | terminator --command="man dmenu" 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | gvim ~/.gmrunrc 318 | 319 | 320 | 321 | 322 | 323 | 324 | 325 | terminator --command="man gmrun" 326 | 327 | 328 | 329 | 330 | 331 | 332 | 333 | 334 | gvim ~/.config/openbox/menu.xml 335 | 336 | 337 | 338 | 339 | 340 | 341 | gvim ~/.config/openbox/rc.xml 342 | 343 | 344 | 345 | 346 | 347 | 348 | gvim ~/.config/openbox/autostart 349 | 350 | 351 | 352 | 353 | 354 | 355 | 356 | obmenu 357 | 358 | 359 | 360 | 361 | 362 | 363 | obapps 364 | 365 | 366 | 367 | 368 | 369 | 370 | obconf 371 | 372 | 373 | 374 | 375 | 376 | 377 | 378 | 379 | 380 | 381 | 382 | 383 | 384 | 385 | 386 | gvim ~/.config/terminator/config 387 | 388 | 389 | 390 | 391 | 392 | 393 | 394 | terminator --command="man terminator_config" 395 | 396 | 397 | 398 | 399 | 400 | 401 | 402 | 403 | gvim ~/.config/tint2/tint2rc 404 | 405 | 406 | 407 | 408 | 409 | 410 | tint2restart 411 | 412 | 413 | 414 | 415 | 416 | 417 | 418 | terminator --command="man tint2" 419 | 420 | 421 | 422 | 423 | 424 | 425 | x-www-browser http://code.google.com/p/tint2/wiki/Welcome 426 | 427 | 428 | 429 | 430 | 431 | 432 | 433 | 434 | arandr 435 | 436 | 437 | 438 | 439 | 440 | 441 | 442 | terminator --command="man xrandr" 443 | 444 | 445 | 446 | 447 | 448 | 449 | 450 | xfce4-notifyd-config 451 | 452 | 453 | 454 | 455 | 456 | 457 | terminator --command="sudo update-alternatives --all" 458 | 459 | 460 | 461 | 462 | 463 | 464 | lxappearance 465 | 466 | 467 | 468 | 469 | 470 | 471 | xfce4-power-manager-settings 472 | 473 | 474 | 475 | 476 | 477 | 478 | xscreensaver-demo 479 | 480 | 481 | 482 | 483 | 484 | 485 | nitrogen ~/images/wallpapers/ 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 494 | 495 | gksudo gparted 496 | 497 | 498 | 499 | 500 | 501 | 502 | gksudo synaptic 503 | 504 | 505 | 506 | 507 | 508 | 509 | gksudo slimconf 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | cb-lock 520 | 521 | 522 | 523 | 524 | 525 | 526 | cb-exit 527 | 528 | 529 | 530 | 531 | 532 | -------------------------------------------------------------------------------- /_legacy/openbox/.config/openbox/rc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 5 | 20 6 | 7 | 8 | yes 9 | 11 | no 12 | 13 | yes 14 | 16 | no 17 | 18 | 200 19 | 21 | no 22 | 24 | 25 | 26 | Smart 27 | 28 |
yes
29 | 31 | Any 32 | 35 | 1 36 | 41 |
42 | 43 | waldorf 44 | DSLIMC 45 | 55 | no 56 | yes 57 | 58 | Liberation Sans 59 | 10 60 | 61 | Bold 62 | 63 | Normal 64 | 65 | 66 | 67 | Liberation Sans 68 | 10 69 | 70 | Normal 71 | 72 | Normal 73 | 74 | 75 | 76 | Liberation Sans 77 | 10 78 | 79 | Normal 80 | 81 | Normal 82 | 83 | 84 | 85 | Liberation Sans 86 | 10 87 | 88 | Normal 89 | 90 | Normal 91 | 92 | 93 | 94 | Liberation Sans 95 | 10 96 | 97 | Normal 98 | 99 | normal 100 | 101 | 102 | 103 | Liberation Sans 104 | 10 105 | 106 | Normal 107 | 108 | normal 109 | 110 | 111 | 112 | 113 | 121 | 4 122 | 1 123 | 124 | 128 | 1 129 | 2 130 | 3 131 | 4 132 | 133 | 875 134 | 136 | 137 | 138 | yes 139 | Nonpixel 140 | 141 | Center 142 | 143 | 144 | 145 | 10 146 | 148 | 10 149 | 151 | 152 | 153 | 157 | 158 | 1 159 | 0 160 | 0 161 | 0 162 | 163 | 164 | TopLeft 165 | 166 | 0 167 | 0 168 | no 169 | Above 170 | 171 | Vertical 172 | 173 | no 174 | 300 175 | 176 | 300 177 | 178 | Middle 179 | 180 | 181 | 182 | C-g 183 | 184 | 185 | 186 | left 187 | no 188 | 189 | 190 | 191 | 192 | right 193 | no 194 | 195 | 196 | 197 | 198 | up 199 | no 200 | 201 | 202 | 203 | 204 | down 205 | no 206 | 207 | 208 | 209 | 210 | left 211 | no 212 | 213 | 214 | 215 | 216 | right 217 | no 218 | 219 | 220 | 221 | 222 | up 223 | no 224 | 225 | 226 | 227 | 228 | down 229 | no 230 | 231 | 232 | 233 | 234 | 1 235 | 236 | 237 | 238 | 239 | 2 240 | 241 | 242 | 243 | 244 | 3 245 | 246 | 247 | 248 | 249 | 4 250 | 251 | 252 | 253 | 254 | 255 | 256 | 257 | 258 | 259 | 260 | 261 | 262 | 263 | 264 | 265 | 266 | 267 | 268 | 269 | 270 | 271 | 272 | client-menu 273 | 274 | 275 | 276 | 277 | xfce4-screenshooter 278 | 279 | 280 | 281 | 282 | scrot '%Y-%m-%d--%s_$wx$h_scrot.png' -e 'mv $f ~/images/ & viewnior ~/images/$f' 283 | 284 | 285 | 286 | 287 | 288 | 289 | 290 | 291 | 292 | 293 | 294 | 295 | 296 | 297 | 298 | 299 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | yes 307 | yes 308 | 309 | 310 | 311 | 312 | 313 | 314 | 315 | 316 | 317 | 318 | right 319 | 320 | 321 | 322 | 323 | left 324 | 325 | 326 | 327 | 328 | up 329 | 330 | 331 | 332 | 333 | down 334 | 335 | 336 | 337 | 338 | 339 | 340 | true 341 | Run Program 342 | 343 | gmrun 344 | 345 | 346 | 347 | 348 | 349 | true 350 | dmenu-bind 351 | 352 | ~/.config/dmenu/dmenu-bind.sh 353 | 354 | 355 | 356 | 357 | 358 | true 359 | thunar 360 | 361 | thunar 362 | 363 | 364 | 365 | 366 | 367 | true 368 | Terminal 369 | 370 | terminator 371 | 372 | 373 | 374 | 375 | 376 | true 377 | Web Browser 378 | 379 | google-chrome 380 | 381 | 382 | 383 | 384 | 385 | true 386 | Lock screen 387 | 388 | cb-lock 389 | 390 | 391 | 392 | 393 | 394 | true 395 | Editor 396 | 397 | gvim 398 | 399 | 400 | 401 | 402 | 403 | true 404 | Mediaplayer 405 | 406 | vlc 407 | 408 | 409 | 410 | 411 | 412 | true 413 | htop 414 | 415 | terminator --command="htop" 416 | 417 | 418 | 419 | 420 | 421 | true 422 | Volume 423 | 424 | pavucontrol 425 | 426 | 427 | 428 | 429 | 430 | true 431 | Logout 432 | 433 | cb-exit 434 | 435 | 436 | 437 | 438 | client-list-combined-menu 439 | 440 | 441 | 442 | 443 | root-menu 444 | 445 | 446 | 447 | 448 | root-menu 449 | 450 | 451 | 452 | 453 | 454 | 455 | 456 | 457 | 458 | 459 | 460 | 461 | 462 | 463 | 464 | 465 | 466 | cb-aerosnap --left 467 | 468 | 469 | 470 | 471 | cb-aerosnap --right 472 | 473 | 474 | 475 | 476 | 477 | 478 | 479 | 480 | 481 | 482 | 483 | 484 | 485 | 486 | 487 | 488 | 489 | 490 | 491 | 492 | 493 | 8 494 | 495 | 200 496 | 497 | 400 498 | 501 | false 502 | 504 | 505 | 506 | 507 | 508 | 509 | 510 | 511 | 512 | 513 | 514 | 515 | 516 | 517 | 518 | 519 | 520 | 521 | 522 | 523 | 524 | 525 | 526 | 527 | 528 | 529 | 530 | previous 531 | 532 | 533 | 534 | 535 | next 536 | 537 | 538 | 539 | 540 | previous 541 | 542 | 543 | 544 | 545 | next 546 | 547 | 548 | 549 | 550 | previous 551 | 552 | 553 | 554 | 555 | next 556 | 557 | 558 | 559 | 560 | 561 | 562 | 563 | 564 | 565 | 566 | 567 | 568 | 569 | 570 | 571 | 572 | 573 | 574 | 575 | 576 | 577 | no 578 | 579 | 580 | 581 | 582 | 583 | 584 | 585 | 586 | 587 | 588 | yes 589 | 590 | 591 | 592 | 593 | 594 | 595 | 596 | 597 | 598 | 599 | client-menu 600 | 601 | 602 | 603 | 604 | 605 | 606 | 607 | 608 | 609 | 610 | 611 | 612 | 613 | 614 | 615 | 616 | 617 | 618 | client-menu 619 | 620 | 621 | 622 | 623 | 624 | 625 | 626 | 627 | 628 | 629 | 630 | top 631 | 632 | 633 | 634 | 635 | 636 | 637 | 638 | 639 | 640 | 641 | left 642 | 643 | 644 | 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | right 653 | 654 | 655 | 656 | 657 | 658 | 659 | 660 | 661 | 662 | 663 | bottom 664 | 665 | 666 | 667 | 668 | 669 | 670 | 671 | 672 | 673 | 674 | 675 | client-menu 676 | 677 | 678 | 679 | 680 | 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | 689 | 690 | 691 | 692 | 693 | 694 | 695 | 696 | 697 | 698 | 699 | 700 | 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | 709 | client-menu 710 | 711 | 712 | 713 | 714 | 715 | 716 | client-menu 717 | 718 | 719 | 720 | 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | 729 | 730 | 731 | 732 | 733 | 734 | 735 | 736 | 737 | 738 | 739 | 740 | 741 | 742 | 743 | 744 | 745 | 746 | 747 | 748 | 749 | 750 | 751 | 752 | 753 | 754 | 755 | 756 | 757 | 758 | 759 | 760 | 761 | 762 | 763 | 764 | 765 | 766 | 767 | 768 | 769 | vertical 770 | 771 | 772 | 773 | 774 | horizontal 775 | 776 | 777 | 778 | 779 | 780 | 781 | 782 | 783 | 784 | 785 | 786 | 787 | 788 | 789 | 790 | 791 | previous 792 | 793 | 794 | 795 | 796 | next 797 | 798 | 799 | 800 | 801 | previous 802 | 803 | 804 | 805 | 806 | next 807 | 808 | 809 | 810 | 811 | previous 812 | 813 | 814 | 815 | 816 | next 817 | 818 | 819 | 820 | 821 | 822 | 823 | 824 | 825 | 826 | 827 | 828 | client-list-combined-menu 829 | 830 | 831 | 832 | 833 | root-menu 834 | 835 | 836 | 837 | 838 | 839 | 840 | previous 841 | 842 | 843 | 844 | 845 | next 846 | 847 | 848 | 849 | 850 | previous 851 | 852 | 853 | 854 | 855 | next 856 | 857 | 858 | 859 | 860 | 861 | 863 | 864 | 867 | menu.xml 868 | 200 869 | 871 | no 872 | 873 | 100 874 | 878 | 400 879 | 883 | yes 884 | 885 | yes 886 | 887 | 888 | 889 | 890 | yes 891 | 892 | 893 | no 894 | 895 | 974 | 975 | no 976 | no 977 | yes 978 | yes 979 | no 980 | no 981 | 982 | 983 | vertical 984 | 985 | 986 | vertical 987 | 988 | 989 | 990 | center 991 | center 992 | 993 | 994 | 995 | vertical 996 | 997 | 998 | vertical 999 | 1000 | 1001 | 1002 | center 1003 | center 1004 | 1005 | 1006 | 1007 |
1008 | -------------------------------------------------------------------------------- /_legacy/pirate-get/.config/pirate-get: -------------------------------------------------------------------------------- 1 | ; vi: ft=dosini 2 | 3 | [Save] 4 | ; directory where to save files 5 | directory = $PWD 6 | 7 | ; save each selected magnet link in a .magnet file 8 | magnets = false 9 | 10 | ; save each selected torrent in a .torrent file 11 | torrents = false 12 | 13 | [LocalDB] 14 | ; use a local copy of the pirate bay database 15 | enabled = false 16 | 17 | ; path of the database 18 | path = ~/downloads/pirate-get/db 19 | 20 | [Misc] 21 | ; specify a custom command for opening the magnet 22 | ; ex. myprogram --open %s 23 | ; %s represent the magnet uri 24 | openCommand = open -a Transmission.app "%s" 25 | 26 | ; open magnets with transmission-remote client 27 | transmission = false 28 | 29 | ; use colored output 30 | colors = true 31 | 32 | ; the pirate bay mirror(s) to use: 33 | ; one or more space separated URLs 34 | mirror = https://thepiratebay.org 35 | -------------------------------------------------------------------------------- /_legacy/terminator/.config/terminator/config: -------------------------------------------------------------------------------- 1 | [global_config] 2 | title_inactive_bg_color = "#2d2d2d" 3 | title_transmit_bg_color = "#757575" 4 | title_inactive_fg_color = "#afafaf" 5 | handle_size = 1 6 | borderless = True 7 | [keybindings] 8 | toggle_zoom = Return 9 | copy = c 10 | hide_window = a 11 | paste = v 12 | [profiles] 13 | [[default]] 14 | scrollbar_position = hidden 15 | tab_position = hidden 16 | palette = "#000000:#f92672:#6cc72c:#fe9720:#5f91ef:#9358fe:#36af90:#8c8c8c:#4c4c4c:#ff80f4:#a7e22e:#ffee99:#5fd9ef:#ae82fe:#66efd5:#c7cece" 17 | background_darkness = 0.43 18 | background_type = transparent 19 | use_system_font = False 20 | cursor_color = "#d8d8d8" 21 | foreground_color = "#ffffff" 22 | icon_bell = False 23 | show_titlebar = False 24 | font = Input 10 25 | background_color = "#2e3436" 26 | allow_bold = False 27 | [[monokai]] 28 | scrollbar_position = hidden 29 | palette = "#000000:#f92672:#6cc72c:#fe9720:#5f91ef:#9358fe:#36af90:#8c8c8c:#4c4c4c:#ff80f4:#a7e22e:#ffee99:#5fd9ef:#ae82fe:#66efd5:#c7cece" 30 | background_type = transparent 31 | use_system_font = False 32 | cursor_color = "#d8d8d8" 33 | foreground_color = "#ffffff" 34 | icon_bell = False 35 | show_titlebar = False 36 | font = Input 10 37 | background_color = "#2e3436" 38 | [[solarized-dark]] 39 | scrollbar_position = hidden 40 | palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" 41 | background_darkness = 0.6 42 | background_type = transparent 43 | use_system_font = False 44 | cursor_color = "#eee8d5" 45 | foreground_color = "#eee8d5" 46 | icon_bell = False 47 | show_titlebar = False 48 | font = Input 10 49 | background_color = "#002b36" 50 | [[base16]] 51 | scrollbar_position = hidden 52 | palette = "#2d2d2d:#f2777a:#99cc99:#ffcc66:#6699cc:#cc99cc:#66cccc:#d3d0c8:#747369:#f2777a:#99cc99:#ffcc66:#6699cc:#cc99cc:#66cccc:#f2f0ec" 53 | use_system_font = False 54 | cursor_color = "#d3d0c8" 55 | foreground_color = "#d3d0c8" 56 | icon_bell = False 57 | show_titlebar = False 58 | font = Input 10 59 | background_color = "#2d2d2d" 60 | [[solarized-light]] 61 | scrollbar_position = hidden 62 | palette = "#073642:#dc322f:#859900:#b58900:#268bd2:#d33682:#2aa198:#eee8d5:#002b36:#cb4b16:#586e75:#657b83:#839496:#6c71c4:#93a1a1:#fdf6e3" 63 | use_system_font = False 64 | cursor_color = "#002b36" 65 | foreground_color = "#002b36" 66 | icon_bell = False 67 | show_titlebar = False 68 | font = Input 10 69 | background_color = "#eee8d5" 70 | [layouts] 71 | [[default]] 72 | [[[child1]]] 73 | type = Terminal 74 | parent = window0 75 | profile = default 76 | [[[window0]]] 77 | type = Window 78 | parent = "" 79 | [plugins] 80 | -------------------------------------------------------------------------------- /_legacy/tint2/.config/tint2/tint2rc: -------------------------------------------------------------------------------- 1 | #--------------------------------------------- 2 | # TINT2 CONFIG FILE 3 | #--------------------------------------------- 4 | # For more information about tint2, see: 5 | # http://code.google.com/p/tint2/wiki/Welcome 6 | # 7 | # For more config file examples, see: 8 | # http://crunchbanglinux.org/forums/topic/3232/my-tint2-config/ 9 | 10 | # Background definitions 11 | # ID 1 12 | rounded = 0 13 | border_width = 0 14 | background_color = #ffffff 0 15 | border_color = #ffffff 0 16 | 17 | # ID 2 - task active 18 | rounded = 0 19 | border_width = 0 20 | background_color = #fffffff 0 21 | border_color = #ffffff 0 22 | 23 | # ID 3 - task 24 | rounded = 0 25 | border_width = 0 26 | background_color = #ffffff 20 27 | border_color = #ffffff 0 28 | 29 | # ID 4 30 | rounded = 1 31 | border_width = 1 32 | background_color = #888888 20 33 | border_color = #ED2323 60 34 | 35 | # ID 5 - taskbar 36 | rounded = 0 37 | border_width = 1 38 | background_color = #000000 0 39 | border_color = #000000 0 40 | 41 | # ID 6 - active taskbar 42 | rounded = 0 43 | border_width = 1 44 | background_color = #d8d8d8 8 45 | border_color = #d8d8d8 0 46 | 47 | # ID 7 - tooltip 48 | rounded = 3 49 | border_width = 0 50 | background_color = #222222 90 51 | border_color = #222222 90 52 | 53 | # ID 8 54 | rounded = 1 55 | border_width = 1 56 | background_color = #888888 20 57 | border_color = #888888 20 58 | 59 | # Panel 60 | panel_monitor = all 61 | panel_position = top center horizontal 62 | panel_items = TSC 63 | panel_size = 100% 23 64 | panel_margin = 0 -1 65 | panel_padding = 0 0 66 | panel_dock = 0 67 | wm_menu = 1 68 | panel_layer = bottom 69 | panel_background_id = 3 70 | 71 | # Panel Autohide 72 | autohide = 1 73 | autohide_show_timeout = 0.3 74 | autohide_hide_timeout = 0.5 75 | autohide_height = 3 76 | strut_policy = none 77 | 78 | # Taskbar 79 | taskbar_mode = multi_desktop 80 | taskbar_padding = 6 0 6 81 | taskbar_background_id = 5 82 | taskbar_active_background_id = 6 83 | taskbar_name = 1 84 | taskbar_name_background_id = 0 85 | taskbar_name_active_background_id = 0 86 | taskbar_name_font = Liberation Sans 9 87 | taskbar_name_font_color = #828282 100 88 | taskbar_name_active_font_color = #828282 100 89 | 90 | # Tasks 91 | urgent_nb_of_blink = 20 92 | task_icon = 1 93 | task_text = 0 94 | task_centered = 1 95 | task_maximum_size = 40 40 96 | task_padding = 2 2 97 | task_background_id = 3 98 | task_active_background_id = 2 99 | task_urgent_background_id = 4 100 | task_iconified_background_id = 3 101 | 102 | # Task Icons 103 | task_icon_asb = 80 0 0 104 | task_active_icon_asb = 100 0 0 105 | task_urgent_icon_asb = 100 0 0 106 | task_iconified_icon_asb = 80 0 0 107 | 108 | # Fonts 109 | task_font = Liberation Sans 06_55 6 110 | task_font_color = #828282 60 111 | task_active_font_color = #828282 100 112 | task_urgent_font_color = #FFFFFF 100 113 | task_iconified_font_color = #d8d8d8 60 114 | font_shadow = 0 115 | 116 | # Launcher 117 | launcher_padding = 8 4 4 118 | launcher_background_id = 0 119 | launcher_icon_size = 24 120 | # Specify icon theme names with launcher_icon_theme. 121 | # if you have an XSETTINGS manager running (like xfsettingsd), tint2 will follow your current theme. 122 | launcher_icon_theme = gnome-colors-statler 123 | # Each launcher_item_app must be a full path to a .desktop file 124 | launcher_item_app = /usr/share/applications/terminator.desktop 125 | launcher_item_app = /usr/share/applications/xfce4-file-manager.desktop 126 | launcher_item_app = /usr/share/applications/gedit.desktop 127 | launcher_item_app = /usr/share/applications/iceweasel.desktop 128 | 129 | # System Tray 130 | systray = 1 131 | systray_padding = 4 2 4 132 | systray_sort = right2left 133 | systray_background_id = 0 134 | systray_icon_size = 25 135 | systray_icon_asb = 100 0 0 136 | 137 | # Clock 138 | time1_format = %H:%M / %a %d %b 139 | time1_font = AvantGardeLTMedium 9 140 | #time1_format = %H:%M 141 | #time1_font = Liberation Sans 10.5 142 | #time2_format = %d/%m/%y 143 | #time2_font = Liberation Sans 8 144 | clock_font_color = #b5b5b5 100 145 | clock_padding = 10 4 146 | clock_background_id = 0 147 | clock_lclick_command = gsimplecal 148 | clock_rclick_command = gsimplecal 149 | 150 | # Tooltips 151 | tooltip = 1 152 | tooltip_padding = 2 2 153 | tooltip_show_timeout = 0.0 154 | tooltip_hide_timeout = 0.0 155 | tooltip_background_id = 7 156 | tooltip_font_color = #d8d8d8 100 157 | tooltip_font = Liberation Sans normal 9.0 158 | 159 | # Mouse 160 | mouse_middle = none 161 | mouse_right = toggle 162 | mouse_scroll_up = toggle 163 | mouse_scroll_down = iconify 164 | 165 | # Battery 166 | battery = 1 167 | battery_low_status = 20 168 | battery_low_cmd = notify-send "battery low" 169 | battery_hide = 96 170 | bat1_font = Liberation Mono 8 171 | bat2_font = Liberation Mono 8 172 | battery_font_color = #b5b5b5 100 173 | battery_padding = 2 0 174 | battery_background_id = 0 175 | 176 | # End of config 177 | -------------------------------------------------------------------------------- /_legacy/w3m/.w3m/config: -------------------------------------------------------------------------------- 1 | simple_preserve_space 0 2 | gb18030_as_ucs 0 3 | strict_iso2022 1 4 | use_jisx0213 0 5 | use_jisx0212 0 6 | use_jisx0201k 0 7 | use_jisc6226 0 8 | use_jisx0201 0 9 | use_gb12345_map 0 10 | fix_width_conv 1 11 | search_conv 1 12 | pre_conv 0 13 | ucs_conv 1 14 | use_language_tag 1 15 | east_asian_width 0 16 | use_combining 1 17 | use_wide 1 18 | ext_halfdump 0 19 | follow_locale 1 20 | system_charset UTF-8 21 | auto_detect 2 22 | document_charset UTF-8 23 | display_charset UTF-8 24 | cookie_avoid_wrong_number_of_dots 25 | cookie_accept_domains 26 | cookie_reject_domains 27 | accept_bad_cookie 0 28 | accept_cookie 0 29 | show_cookie 1 30 | use_cookie 0 31 | ssl_ca_file 32 | ssl_ca_path 33 | ssl_key_file 34 | ssl_cert_file 35 | ssl_verify_server 0 36 | ssl_forbid_method 37 | no_cache 0 38 | noproxy_netaddr 1 39 | no_proxy 40 | ftp_proxy 41 | https_proxy 42 | http_proxy 43 | use_proxy 1 44 | max_news 50 45 | nntpmode 46 | nntpserver 47 | dns_order 0 48 | meta_refresh 0 49 | follow_redirection 10 50 | default_url 0 51 | retry_http 1 52 | argv_is_url 0 53 | accept_media text/html, text/*;q=0.5, image/* 54 | accept_encoding gzip, compress, bzip, bzip2, deflate 55 | accept_language en;q=1.0 56 | no_referer 0 57 | user_agent 58 | pre_form_file ~/.w3m/pre_form 59 | ftppass_hostnamegen 1 60 | ftppasswd 61 | disable_secret_security_check 0 62 | passwd_file ~/.w3m/passwd 63 | use_lessopen 0 64 | bgextviewer 1 65 | extbrowser /usr/bin/open 66 | extbrowser2 sh -c 'printf %s "$0" | pbcopy' 67 | extbrowser3 sh -c 'printf %s "$0" | instapaper-add' 68 | mailer 69 | mailto_options 1 70 | editor vim 71 | urimethodmap ~/.w3m/urimethodmap, /usr/local/Cellar/w3m/0.5.3/etc/w3m/urimethodmap 72 | mailcap ~/.mailcap 73 | mime_types ~/.mime.types, /usr/local/Cellar/w3m/0.5.3/etc/mime.types 74 | index_file 75 | cgi_bin 76 | personal_document_root 77 | document_root 78 | keymap_file keymap 79 | preserve_timestamp 1 80 | auto_uncompress 0 81 | decode_cte 0 82 | clear_buffer 1 83 | fixed_wheel_scroll_count 5 84 | relative_wheel_scroll_ratio 30 85 | relative_wheel_scroll 0 86 | reverse_mouse 0 87 | use_mouse 1 88 | ignorecase_search 1 89 | wrap_search 0 90 | mark_all_pages 0 91 | vi_prec_num 1 92 | emacs_like_lineedit 1 93 | mark 0 94 | close_tab_back 0 95 | confirm_qq 0 96 | save_hist 1 97 | history 100 98 | use_history 1 99 | pagerline 10000 100 | visited_color magenta 101 | visited_anchor 0 102 | active_color cyan 103 | active_style 0 104 | bg_color terminal 105 | mark_color cyan 106 | form_color red 107 | image_color green 108 | anchor_color blue 109 | basic_color terminal 110 | color 1 111 | nextpage_topline 0 112 | label_topline 0 113 | show_srch_str 1 114 | show_lnum 0 115 | fold_line 1 116 | pseudo_inlines 1 117 | display_image 0 118 | view_unseenobject 1 119 | ignore_null_img_alt 1 120 | display_ins_del 1 121 | fold_textarea 0 122 | graphic_char 0 123 | alt_entity 1 124 | multicol 0 125 | dictcommand file:///$LIB/w3mdict.cgi 126 | use_dictcommand 0 127 | dirlist_cmd file:///$LIB/dirlist.cgi 128 | ext_dirlist 1 129 | display_lineinfo 0 130 | decode_url 0 131 | display_link_number 0 132 | display_link 0 133 | open_tab_dl_list 0 134 | open_tab_blank 0 135 | target_self 0 136 | frame 0 137 | pixel_per_char 8 138 | indent_incr 4 139 | tabstop 8 140 | -------------------------------------------------------------------------------- /_legacy/xxkb/.xxkbrc: -------------------------------------------------------------------------------- 1 | XXkb.mainwindow.enable: yes 2 | XXkb.mainwindow.label.enable: yes 3 | XXkb.mainwindow.type: tray 4 | XXkb.mainwindow.appicon: no 5 | XXkb.mainwindow.geometry: 16x16+0+0 6 | XXkb.mainwindow.label.background: black 7 | XXkb.mainwindow.label.foreground: gray 8 | XXkb.mainwindow.label.font:-misc-*-r-*-14-* 9 | XXkb.mainwindow.label.text.1: It 10 | XXkb.mainwindow.label.text.2: De 11 | XXkb.mainwindow.label.text.3: Us 12 | XXkb.controls.add_when_start: yes 13 | XXkb.button.enable: no 14 | -------------------------------------------------------------------------------- /ack/.ackrc: -------------------------------------------------------------------------------- 1 | # Always sort the files 2 | #--sort−files 3 | 4 | # Always color, even if piping to a another program 5 | --color 6 | 7 | --pager=less -RFX 8 | --type-add=css=scss 9 | --ignore-dir=node_modules/ 10 | -------------------------------------------------------------------------------- /bash/.aliases: -------------------------------------------------------------------------------- 1 | # vi:syntax=sh 2 | 3 | alias refresh='source ~/.bash_profile' 4 | 5 | alias c='clear' 6 | alias e='exit' 7 | 8 | alias -- -='cd -' 9 | 10 | alias ls='eza --group-directories-first' 11 | 12 | alias l='ls -CF -lh' 13 | alias ll='ls -l --no-user --no-permissions' 14 | alias la='ls -a' 15 | 16 | alias ct='column -t' 17 | alias info='info --vi-keys' 18 | 19 | alias mount='diskutil mount' 20 | alias umount='diskutil unmount' 21 | 22 | # Get internal and external IP address 23 | alias ipi='ipconfig getifaddr en0' 24 | alias ipe='curl ipinfo.io/ip' 25 | 26 | # Services 27 | alias a2restart="sudo service apache2 restart" 28 | alias sss='python -m http.server 8888' # Start Simple Server 29 | alias sps='php -S localhost:3000' # Start PHP Server 30 | 31 | # Utilities 32 | alias vi='vim' 33 | alias unrar="unrar x" 34 | alias gtypist="gtypist -S" 35 | alias ctags="`brew --prefix`/bin/ctags" 36 | alias ed='ed -p:' 37 | alias ql='qlmanage -p "$@" 2> /dev/null' # 'Quick look' on Mac OS 38 | alias wget='wget -c ' # resume download automatically 39 | alias addup="paste -sd+ - | bc" 40 | 41 | # VPN Management 42 | vpnconnect() { 43 | osascript -e "tell application \"Viscosity\" to connect \"$(nordvpn-server-find -r).tcp\"" 44 | } 45 | vpndisconnect() { 46 | osascript -e "tell application \"Viscosity\" to disconnectall" 47 | } 48 | 49 | # Get last command (https://unix.stackexchange.com/a/38075/63527) 50 | getlast() { 51 | fc -ln "$1" "$1" | sed '1s/^[[:space:]]*//' 52 | } 53 | 54 | # Enable/disable Maccy 55 | alias maccy-disable="defaults write org.p0deje.Maccy ignoreEvents true" 56 | alias maccy-enable="defaults write org.p0deje.Maccy ignoreEvents false" 57 | 58 | # Newsbeuter 59 | alias reads="newsbeuter -C ~/dotfiles/newsbeuter/.newsbeuter/config-or" 60 | alias news="newsbeuter -u ~/Dropbox/feeds/urls-news" 61 | alias jobz="newsbeuter -u ~/Dropbox/feeds/urls-jobs" 62 | 63 | # Linux things 64 | # alias backport='sudo apt-get -t wheezy-backports install' 65 | # alias installed='dpkg --get-selections' 66 | # alias copy='xclip -sel clip' 67 | -------------------------------------------------------------------------------- /bash/.bash_profile: -------------------------------------------------------------------------------- 1 | # vi:syntax=sh 2 | 3 | # Source .bashrc as recommended here: 4 | # http://www.joshstaiger.org/archives/2005/07/bash_profile_vs.html 5 | 6 | if [ -f ~/.bashrc ]; then 7 | source ~/.bashrc 8 | fi 9 | 10 | if [ -f ~/.profile ]; then 11 | source ~/.profile 12 | fi 13 | -------------------------------------------------------------------------------- /bash/.bashrc: -------------------------------------------------------------------------------- 1 | # If not running interactively, don't do anything 2 | case $- in 3 | *i*) ;; 4 | *) return;; 5 | esac 6 | 7 | # Define function to add a directory to $PATH 8 | pathadd() { 9 | if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then 10 | PATH="$1${PATH:+":$PATH"}" 11 | fi 12 | } 13 | 14 | export EDITOR="vim" 15 | 16 | # Implicit cd 17 | shopt -s autocd 18 | # Correct minor errors in the spelling of a directory 19 | shopt -s cdspell 20 | shopt -s dirspell 21 | # Activate recursive globbing 22 | shopt -s globstar 23 | 24 | # Don't put duplicate lines or lines starting with space in the history 25 | HISTCONTROL="erasedups:ignoreboth" 26 | # Commands that don't need to get recorded 27 | export HISTIGNORE="&:[ ]*:exit:ls:bg:fg:history" 28 | # Save multi-line commands to the history as one command 29 | shopt -s cmdhist 30 | # Append to the history file, don't overwrite it 31 | shopt -s histappend 32 | # Set history size to a very large number 33 | HISTSIZE=500000 34 | HISTFILESIZE=100000 35 | # Record each line of history right away 36 | # instead of at the end of the session 37 | PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a" 38 | # Set history timestamp format 39 | HISTTIMEFORMAT='%F %T ' 40 | 41 | # Custom prompt, git-aware 42 | export GITAWAREPROMPT=~/bin/git-aware-prompt 43 | source "${GITAWAREPROMPT}/main.sh" 44 | export PS1="\[\033[33;1m\]\W\[\033[m\]\[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]$ " 45 | 46 | # Complete all the things 47 | source ~/bin/completions/git-completion.bash 48 | source ~/bin/completions/tmux.completion.bash 49 | source ~/bin/completions/npm-completion.bash 50 | source ~/bin/completions/pandoc.bash 51 | source ~/bin/completions/beet.bash 52 | 53 | # Add bin folder 54 | pathadd $HOME/bin 55 | 56 | # Add pipx directory 57 | pathadd $HOME/.local/bin 58 | 59 | # rustup shell setup 60 | . "$HOME/.cargo/env" 61 | 62 | # Set bat theme 63 | export BAT_THEME="ansi" 64 | 65 | # Allow C-W mapping in inputrc to work 66 | # see https://unix.stackexchange.com/q/296822/63527 67 | stty werase undef 68 | 69 | # Simple calculator 70 | function calc() { 71 | local result="" 72 | result="$(printf "scale=10;$*\n" | bc --mathlib | tr -d '\\\n')" 73 | # └─ default (when `--mathlib` is used) is 20 74 | # 75 | if [[ "$result" == *.* ]]; then 76 | # improve the output for decimal numbers 77 | printf "$result" | 78 | sed -e 's/^\./0./' `# add "0" for cases like ".5"` \ 79 | -e 's/^-\./-0./' `# add "0" for cases like "-.5"`\ 80 | -e 's/0*$//;s/\.$//' # remove trailing zeros 81 | else 82 | printf "$result" 83 | fi 84 | printf "\n" 85 | } 86 | 87 | if [[ "$OSTYPE" == "darwin"* ]]; then 88 | source ~/.bashrc.macos 89 | elif [[ "$OSTYPE" == "linux-gnu" ]]; then 90 | source ~/.bashrc.linux-gnu 91 | fi 92 | 93 | [ -f ~/.fzf.bash ] && source ~/.fzf.bash 94 | # 95 | # Load aliases 96 | if [ -f ~/.aliases ]; then 97 | source ~/.aliases 98 | fi 99 | -------------------------------------------------------------------------------- /bash/.bashrc.linux-gnu: -------------------------------------------------------------------------------- 1 | # vi:syntax=sh 2 | 3 | # Set variable identifying the chroot you work in 4 | if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then 5 | debian_chroot=$(cat /etc/debian_chroot) 6 | fi 7 | 8 | # Set a fancy prompt (non-color, unless we know we "want" color) 9 | case "$TERM" in 10 | xterm-color) color_prompt=yes;; 11 | esac 12 | 13 | # Uncomment for a colored prompt, if the terminal has the capability 14 | force_color_prompt=yes 15 | 16 | if [ -n "$force_color_prompt" ]; then 17 | if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then 18 | # We have color support; assume it's compliant with Ecma-48 19 | # (ISO/IEC-6429). (Lack of such support is extremely rare, and such 20 | # a case would tend to support setf rather than setaf.) 21 | color_prompt=yes 22 | else 23 | color_prompt= 24 | fi 25 | fi 26 | 27 | if [ "$color_prompt" = yes ]; then 28 | PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ ' 29 | else 30 | PS1='${debian_chroot:+($debian_chroot)}\u@\h:\W\$ ' 31 | fi 32 | unset color_prompt force_color_prompt 33 | 34 | # If this is an xterm set the title to user@host:dir 35 | case "$TERM" in 36 | xterm*|rxvt*) 37 | PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \W\a\]$PS1" 38 | ;; 39 | *) 40 | ;; 41 | esac 42 | 43 | # Enable color support of ls and also add handy aliases 44 | if [ -x /usr/bin/dircolors ]; then 45 | test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" 46 | alias ls='ls --color=auto' 47 | alias dir='dir --color=auto' 48 | alias vdir='vdir --color=auto' 49 | 50 | alias grep='grep --color=auto' 51 | alias fgrep='fgrep --color=auto' 52 | alias egrep='egrep --color=auto' 53 | fi 54 | 55 | # Enable programmable completion features 56 | if ! shopt -oq posix; then 57 | if [ -f /usr/share/bash-completion/bash_completion ]; then 58 | . /usr/share/bash-completion/bash_completion 59 | elif [ -f /etc/bash_completion ]; then 60 | . /etc/bash_completion 61 | fi 62 | fi 63 | 64 | -------------------------------------------------------------------------------- /bash/.bashrc.macos: -------------------------------------------------------------------------------- 1 | # vi:syntax=sh 2 | 3 | # Add Homebrew to PATH in the way recommended by the official .pkg installer 4 | eval "$(/opt/homebrew/bin/brew shellenv)" 5 | 6 | # Set up locales 7 | export LC_ALL=en_US.UTF-8 8 | export LANG=en_US.UTF-8 9 | export LANGUAGE=en_US.UTF-8 10 | 11 | # Enable Bash completion 12 | if [ -f $(brew --prefix)/share/bash-completion/bash_completion ]; then 13 | . $(brew --prefix)/share/bash-completion/bash_completion 14 | fi 15 | 16 | # Activates colors 17 | export CLICOLOR=1 18 | 19 | # ls custom colors 20 | export LSCOLORS=ExFxBxDxCxegedabagacad 21 | 22 | # Homebrew directories 23 | # pathadd /usr/local/Cellar 24 | # pathadd /usr/local/bin 25 | # pathadd /usr/local/sbin 26 | 27 | # Homebrew-intalled Python 28 | # pathadd /usr/local/opt/python/libexec/bin 29 | 30 | # User base bin directory 31 | # https://docs.python-guide.org/dev/virtualenvs/ 32 | pathadd $HOME/Library/Python/3.7/bin 33 | 34 | # Calibre CLI tools 35 | pathadd /Applications/calibre.app/Contents/MacOS/ 36 | pathadd /home/zool/.linuxbrew/bin 37 | 38 | # Espanso 39 | pathadd /Applications/Espanso.app/Contents/MacOS 40 | 41 | # Source perlbrew 42 | source ~/perl5/perlbrew/etc/bashrc 43 | 44 | # Stop homebrew from updating every time 45 | export HOMEBREW_NO_AUTO_UPDATE=1 46 | 47 | # Don't use telemetry/analytics 48 | HOMEBREW_NO_ANALYTICS=1 49 | 50 | # Archey (requires Archey4) 51 | # archey -l retro 52 | -------------------------------------------------------------------------------- /bash/.profile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrzool/dotfiles/0c9d01de26905feb35a6c0d7580e96dc8333de45/bash/.profile -------------------------------------------------------------------------------- /beets/.config/beets/config.yaml: -------------------------------------------------------------------------------- 1 | directory: /Volumes/music 2 | library: /Volumes/music/data/zool-music.db 3 | paths: 4 | default: %asciify{%lower{$albumartist}}-%asciify{%lower{$album}}-$year/$track-%asciify{%lower{$title}} 5 | comp: various-artists/$album%aunique{}/$track-%asciify{%lower{$title}} 6 | import: 7 | # move: yes 8 | copy: yes 9 | original_date: yes 10 | match: 11 | strong_rec_thresh: 0.1 12 | preferred: 13 | countries: [US, GB|UK] 14 | media: [CD, Digital Media|File] 15 | original_year: yes 16 | replace: 17 | '\ ': _ 18 | plugins: ftintitle edit fetchart embedart scrub export lastgenre duplicates discogs badfiles 19 | export: 20 | json: 21 | formatting: 22 | indent: 2 23 | fetchart: 24 | minwidth: 500 25 | maxwidth: 700 26 | enforceratio: 5% 27 | ftintitle: 28 | format: (feat. {0}) 29 | 30 | # replaygain: 31 | # backend: command 32 | # auto: no 33 | # overwrite: yes 34 | lastgenre: 35 | canonical: yes 36 | whitelist: ~/dotfiles/beets/.config/beets/genres-whitelist 37 | -------------------------------------------------------------------------------- /beets/.config/beets/genres-whitelist: -------------------------------------------------------------------------------- 1 | Acoustic 2 | Classical 3 | Drum and Bass 4 | Electronic 5 | Experimental 6 | Hip-hop 7 | Jazz 8 | Nu Jazz 9 | Punk 10 | R&B 11 | Reggae 12 | Rock 13 | Punk 14 | Ska 15 | Trip-Hop 16 | -------------------------------------------------------------------------------- /cocoa-text/Library/KeyBindings/DefaultKeyBinding.dict: -------------------------------------------------------------------------------- 1 | { 2 | "^w" = "deleteWordBackward:"; 3 | /* This command will let Ctrl-Shift-H turn the previous word 4 | * into an HTML/XML opening and closing tag pair. */ 5 | "^H" = ( "setMark:", 6 | "moveWordBackward:", 7 | "deleteToMark:", 8 | "insertText:", "<", 9 | "yank:", 10 | "insertText:", ">", 11 | "setMark:", 12 | "insertText:", "", 15 | "swapWithMark:"); 16 | } 17 | -------------------------------------------------------------------------------- /detox/.detoxrc: -------------------------------------------------------------------------------- 1 | sequence "default" { 2 | utf_8; 3 | safe; 4 | wipeup; 5 | }; 6 | 7 | sequence "mailboxes" { 8 | utf_8 { 9 | filename "/Users/tezzele/.unicode-tweaked.tbl"; 10 | }; 11 | safe; 12 | wipeup { remove_trailing; }; 13 | }; 14 | 15 | sequence "utf_8" { 16 | utf_8; 17 | safe; 18 | wipeup; 19 | }; 20 | 21 | ignore { 22 | filename ".git"; 23 | filename ".svn"; 24 | filename ".hg"; 25 | filename "_darcs"; 26 | }; 27 | -------------------------------------------------------------------------------- /detox/.unicode-tweaked.tbl: -------------------------------------------------------------------------------- 1 | # 2 | # Copyright (c) 2004-2006, Doug Harple. All rights reserved. 3 | # 4 | # Redistribution and use in source and binary forms, with or without 5 | # modification, are permitted provided that the following conditions are 6 | # met: 7 | # 8 | # 1. Redistributions of source code must retain the above copyright 9 | # notice, this list of conditions and the following disclaimer. 10 | # 11 | # 2. Redistributions in binary form must reproduce the above copyright 12 | # notice, this list of conditions and the following disclaimer in the 13 | # documentation and/or other materials provided with the distribution. 14 | # 15 | # 3. Neither the name of author nor the names of its contributors may be 16 | # used to endorse or promote products derived from this software 17 | # without specific prior written permission. 18 | # 19 | # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20 | # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21 | # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22 | # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23 | # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24 | # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25 | # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 | # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 | # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29 | # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 | # 31 | # $Id: unicode.tbl,v 1.7 2006/07/03 16:45:54 purgedhalo Exp $ 32 | # 33 | # 34 | # 35 | # Special thanks to: http://www.unicode.org/Public/UNIDATA/UnicodeData.txt 36 | # 37 | # 38 | # Used for translating Icelandic: 39 | # http://www.bartleby.com/65/th/Thingval.html 40 | # http://www.wordiq.com/definition/Thorn_%28letter%29 41 | # http://www.wordiq.com/definition/Edh 42 | # 43 | # Greenlandic: 44 | # http://std.dkuug.dk/cultreg/registrations/narrative/da_DK,_4.3.html 45 | # 46 | # Sami: 47 | # http://www.wordiq.com/definition/Sami_languages 48 | # 49 | # Germanic: 50 | # http://www.wordiq.com/definition/%DF 51 | # 52 | # 53 | 54 | default e 55 | 56 | start 57 | 58 | # 59 | # Basic Latin - This is a subset of the basic 7-bit ASCII table, with unsafe 60 | # characters removed. 61 | # 62 | 63 | 0x0023 # # NUMBER SIGN 64 | 0x0025 % # PERCENT SIGN 65 | 0x0026 _and_ # AMPERSAND 66 | 0x002B + # PLUS SIGN 67 | 0x002C , # COMMA 68 | 0x002D - # HYPHEN-MINUS 69 | 0x002E . # FULL STOP 70 | 71 | 0x0030 0 # DIGIT ZERO 72 | 0x0031 1 # DIGIT ONE 73 | 0x0032 2 # DIGIT TWO 74 | 0x0033 3 # DIGIT THREE 75 | 0x0034 4 # DIGIT FOUR 76 | 0x0035 5 # DIGIT FIVE 77 | 0x0036 6 # DIGIT SIX 78 | 0x0037 7 # DIGIT SEVEN 79 | 0x0038 8 # DIGIT EIGHT 80 | 0x0039 9 # DIGIT NINE 81 | 0x003D = # EQUALS SIGN 82 | 83 | 0x0041 A # LATIN CAPITAL LETTER A 84 | 0x0042 B # LATIN CAPITAL LETTER B 85 | 0x0043 C # LATIN CAPITAL LETTER C 86 | 0x0044 D # LATIN CAPITAL LETTER D 87 | 0x0045 E # LATIN CAPITAL LETTER E 88 | 0x0046 F # LATIN CAPITAL LETTER F 89 | 0x0047 G # LATIN CAPITAL LETTER G 90 | 0x0048 H # LATIN CAPITAL LETTER H 91 | 0x0049 I # LATIN CAPITAL LETTER I 92 | 0x004A J # LATIN CAPITAL LETTER J 93 | 0x004B K # LATIN CAPITAL LETTER K 94 | 0x004C L # LATIN CAPITAL LETTER L 95 | 0x004D M # LATIN CAPITAL LETTER M 96 | 0x004E N # LATIN CAPITAL LETTER N 97 | 0x004F O # LATIN CAPITAL LETTER O 98 | 99 | 0x0050 P # LATIN CAPITAL LETTER P 100 | 0x0051 Q # LATIN CAPITAL LETTER Q 101 | 0x0052 R # LATIN CAPITAL LETTER R 102 | 0x0053 S # LATIN CAPITAL LETTER S 103 | 0x0054 T # LATIN CAPITAL LETTER T 104 | 0x0055 U # LATIN CAPITAL LETTER U 105 | 0x0056 V # LATIN CAPITAL LETTER V 106 | 0x0057 W # LATIN CAPITAL LETTER W 107 | 0x0058 X # LATIN CAPITAL LETTER X 108 | 0x0059 Y # LATIN CAPITAL LETTER Y 109 | 0x005A Z # LATIN CAPITAL LETTER Z 110 | 0x005E ^ # CIRCUMFLEX ACCENT 111 | 112 | 0x0061 a # LATIN SMALL LETTER A 113 | 0x0062 b # LATIN SMALL LETTER B 114 | 0x0063 c # LATIN SMALL LETTER C 115 | 0x0064 d # LATIN SMALL LETTER D 116 | 0x0065 e # LATIN SMALL LETTER E 117 | 0x0066 f # LATIN SMALL LETTER F 118 | 0x0067 g # LATIN SMALL LETTER G 119 | 0x0068 h # LATIN SMALL LETTER H 120 | 0x0069 i # LATIN SMALL LETTER I 121 | 0x006A j # LATIN SMALL LETTER J 122 | 0x006B k # LATIN SMALL LETTER K 123 | 0x006C l # LATIN SMALL LETTER L 124 | 0x006D m # LATIN SMALL LETTER M 125 | 0x006E n # LATIN SMALL LETTER N 126 | 0x006F o # LATIN SMALL LETTER O 127 | 128 | 0x0070 p # LATIN SMALL LETTER P 129 | 0x0071 q # LATIN SMALL LETTER Q 130 | 0x0072 r # LATIN SMALL LETTER R 131 | 0x0073 s # LATIN SMALL LETTER S 132 | 0x0074 t # LATIN SMALL LETTER T 133 | 0x0075 u # LATIN SMALL LETTER U 134 | 0x0076 v # LATIN SMALL LETTER V 135 | 0x0077 w # LATIN SMALL LETTER W 136 | 0x0078 x # LATIN SMALL LETTER X 137 | 0x0079 y # LATIN SMALL LETTER Y 138 | 0x007A z # LATIN SMALL LETTER Z 139 | 0x007E ~ # TILDE 140 | 141 | # 142 | # CP 1252 143 | # 144 | 145 | 0x0085 ... # HORIZONTAL ELLIPSIS 146 | 0x0088 ^ # MODIFIER LETTER CIRCUMFLEX ACCENT 147 | 0x008A S # LATIN CAPITAL LETTER S WITH CARON 148 | 0x008C OE # LATIN CAPITAL LIGATURE OE 149 | 150 | 0x0096 - # EN DASH 151 | 0x0097 - # EM DASH 152 | 0x0099 _tm_ # TRADE MARK SIGN 153 | 0x009A s # LATIN SMALL LETTER S WITH CARON 154 | 0x009C oe # LATIN SMALL LIGATURE OE 155 | 0x009F Y # LATIN CAPITAL LETTER Y WITH DIAERESIS 156 | 157 | # 158 | # Latin 1 159 | # 160 | 161 | 0x00A2 _cent_ 162 | 0x00A3 _pound_ 163 | 0x00A5 _yen_ 164 | 0x00A9 _copy_ 165 | 0x00AE _reg_ 166 | 167 | 0x00B2 2 168 | 0x00B3 3 169 | 0x00B5 b 170 | 0x00B6 _pp_ 171 | 0x00B9 1 172 | 173 | 0x00C0 A # LATIN CAPITAL LETTER A WITH GRAVE 174 | 0x00C1 A # LATIN CAPITAL LETTER A WITH ACUTE 175 | 0x00C2 A # LATIN CAPITAL LETTER A WITH CIRCUMFLEX 176 | 0x00C3 A # LATIN CAPITAL LETTER A WITH TILDE 177 | 0x00C4 A # LATIN CAPITAL LETTER A WITH DIAERESIS 178 | 0x00C5 A # LATIN CAPITAL LETTER A WITH RING ABOVE 179 | 0x00C6 AE # LATIN CAPITAL LETTER AE 180 | 0x00C7 C # LATIN CAPITAL LETTER C WITH CEDILLA 181 | 0x00C8 E # LATIN CAPITAL LETTER E WITH GRAVE 182 | 0x00C9 E # LATIN CAPITAL LETTER E WITH ACUTE 183 | 0x00CA E # LATIN CAPITAL LETTER E WITH CIRCUMFLEX 184 | 0x00CB E # LATIN CAPITAL LETTER E WITH DIAERESIS 185 | 0x00CC I # LATIN CAPITAL LETTER I WITH GRAVE 186 | 0x00CD I # LATIN CAPITAL LETTER I WITH ACUTE 187 | 0x00CE I # LATIN CAPITAL LETTER I WITH CIRCUMFLEX 188 | 0x00CF I # LATIN CAPITAL LETTER I WITH DIAERESIS 189 | 190 | 0x00D0 TH # LATIN CAPITAL LETTER ETH (Icelandic) 191 | 0x00D1 N # LATIN CAPITAL LETTER N WITH TILDE 192 | 0x00D2 O # LATIN CAPITAL LETTER O WITH GRAVE 193 | 0x00D3 O # LATIN CAPITAL LETTER O WITH ACUTE 194 | 0x00D4 O # LATIN CAPITAL LETTER O WITH CIRCUMFLEX 195 | 0x00D5 O # LATIN CAPITAL LETTER O WITH TILDE 196 | 0x00D6 O # LATIN CAPITAL LETTER O WITH DIAERESIS 197 | 0x00D7 x # MULTIPLICATION SIGN 198 | 0x00D8 O # LATIN CAPITAL LETTER O WITH STROKE 199 | 0x00D9 U # LATIN CAPITAL LETTER U WITH GRAVE 200 | 0x00DA U # LATIN CAPITAL LETTER U WITH ACUTE 201 | 0x00DB U # LATIN CAPITAL LETTER U WITH CIRCUMFLEX 202 | 0x00DC U # LATIN CAPITAL LETTER U WITH DIAERESIS 203 | 0x00DD Y # LATIN CAPITAL LETTER Y WITH ACUTE 204 | 0x00DE TH # LATIN CAPITAL LETTER THORN (Icelandic) 205 | 0x00DF ss # LATIN SMALL LETTER SHARP S (German) 206 | 207 | 0x00E0 a # LATIN SMALL LETTER A WITH GRAVE 208 | 0x00E1 a # LATIN SMALL LETTER A WITH ACUTE 209 | 0x00E2 a # LATIN SMALL LETTER A WITH CIRCUMFLEX 210 | 0x00E3 a # LATIN SMALL LETTER A WITH TILDE 211 | 0x00E4 a # LATIN SMALL LETTER A WITH DIAERESIS 212 | 0x00E5 a # LATIN SMALL LETTER A WITH RING ABOVE 213 | 0x00E6 ae # LATIN SMALL LETTER AE 214 | 0x00E7 c # LATIN SMALL LETTER C WITH CEDILLA 215 | 0x00E8 e # LATIN SMALL LETTER E WITH GRAVE 216 | 0x00E9 e # LATIN SMALL LETTER E WITH ACUTE 217 | 0x00EA e # LATIN SMALL LETTER E WITH CIRCUMFLEX 218 | 0x00EB e # LATIN SMALL LETTER E WITH DIAERESIS 219 | 0x00EC i # LATIN SMALL LETTER I WITH GRAVE 220 | 0x00ED i # LATIN SMALL LETTER I WITH ACUTE 221 | 0x00EE i # LATIN SMALL LETTER I WITH CIRCUMFLEX 222 | 0x00EF i # LATIN SMALL LETTER I WITH DIAERESIS 223 | 224 | 0x00F0 th # LATIN SMALL LETTER ETH (Icelandic) 225 | 0x00F1 n # LATIN SMALL LETTER N WITH TILDE 226 | 0x00F2 o # LATIN SMALL LETTER O WITH GRAVE 227 | 0x00F3 o # LATIN SMALL LETTER O WITH ACUTE 228 | 0x00F4 o # LATIN SMALL LETTER O WITH CIRCUMFLEX 229 | 0x00F5 o # LATIN SMALL LETTER O WITH TILDE 230 | 0x00F6 o # LATIN SMALL LETTER O WITH DIAERESIS 231 | 0x00F8 o # LATIN SMALL LETTER O WITH STROKE 232 | 0x00F9 u # LATIN SMALL LETTER U WITH GRAVE 233 | 0x00FA u # LATIN SMALL LETTER U WITH ACUTE 234 | 0x00FB u # LATIN SMALL LETTER U WITH CIRCUMFLEX 235 | 0x00FC u # LATIN SMALL LETTER U WITH DIAERESIS 236 | 0x00FD y # LATIN SMALL LETTER Y WITH ACUTE 237 | 0x00FE th # LATIN SMALL LETTER THORN (Icelandic) 238 | 0x00FF y # LATIN SMALL LETTER Y WITH DIAERESIS 239 | 240 | # 241 | # Latin Extended A 242 | # 243 | 244 | 0x0100 A # LATIN CAPITAL LETTER A WITH MACRON 245 | 0x0101 a # LATIN SMALL LETTER A WITH MACRON 246 | 0x0102 A # LATIN CAPITAL LETTER A WITH BREVE 247 | 0x0103 a # LATIN SMALL LETTER A WITH BREVE 248 | 0x0104 A # LATIN CAPITAL LETTER A WITH OGONEK 249 | 0x0105 a # LATIN SMALL LETTER A WITH OGONEK 250 | 0x0106 C # LATIN CAPITAL LETTER C WITH ACUTE 251 | 0x0107 c # LATIN SMALL LETTER C WITH ACUTE 252 | 0x0108 C # LATIN CAPITAL LETTER C WITH CIRCUMFLEX 253 | 0x0109 c # LATIN SMALL LETTER C WITH CIRCUMFLEX 254 | 0x010A C # LATIN CAPITAL LETTER C WITH DOT ABOVE 255 | 0x010B c # LATIN SMALL LETTER C WITH DOT ABOVE 256 | 0x010C C # LATIN CAPITAL LETTER C WITH CARON 257 | 0x010D c # LATIN SMALL LETTER C WITH CARON 258 | 0x010E D # LATIN CAPITAL LETTER D WITH CARON 259 | 0x010F d # LATIN SMALL LETTER D WITH CARON 260 | 261 | 0x0110 D # LATIN CAPITAL LETTER D WITH STROKE 262 | 0x0111 d # LATIN SMALL LETTER D WITH STROKE 263 | 0x0112 E # LATIN CAPITAL LETTER E WITH MACRON 264 | 0x0113 e # LATIN SMALL LETTER E WITH MACRON 265 | 0x0114 E # LATIN CAPITAL LETTER E WITH BREVE 266 | 0x0115 e # LATIN SMALL LETTER E WITH BREVE 267 | 0x0116 E # LATIN CAPITAL LETTER E WITH DOT ABOVE 268 | 0x0117 e # LATIN SMALL LETTER E WITH DOT ABOVE 269 | 0x0118 E # LATIN CAPITAL LETTER E WITH OGONEK 270 | 0x0119 e # LATIN SMALL LETTER E WITH OGONEK 271 | 0x011A E # LATIN CAPITAL LETTER E WITH CARON 272 | 0x011B e # LATIN SMALL LETTER E WITH CARON 273 | 0x011C G # LATIN CAPITAL LETTER G WITH CIRCUMFLEX 274 | 0x011D g # LATIN SMALL LETTER G WITH CIRCUMFLEX 275 | 0x011E G # LATIN CAPITAL LETTER G WITH BREVE 276 | 0x011F g # LATIN SMALL LETTER G WITH BREVE 277 | 278 | 0x0120 G # LATIN CAPITAL LETTER G WITH DOT ABOVE 279 | 0x0121 g # LATIN SMALL LETTER G WITH DOT ABOVE 280 | 0x0122 G # LATIN CAPITAL LETTER G WITH CEDILLA 281 | 0x0123 g # LATIN SMALL LETTER G WITH CEDILLA 282 | 0x0124 H # LATIN CAPITAL LETTER H WITH CIRCUMFLEX 283 | 0x0125 h # LATIN SMALL LETTER H WITH CIRCUMFLEX 284 | 0x0126 H # LATIN CAPITAL LETTER H WITH STROKE 285 | 0x0127 h # LATIN SMALL LETTER H WITH STROKE 286 | 0x0128 I # LATIN CAPITAL LETTER I WITH TILDE 287 | 0x0129 i # LATIN SMALL LETTER I WITH TILDE 288 | 0x012A I # LATIN CAPITAL LETTER I WITH MACRON 289 | 0x012B i # LATIN SMALL LETTER I WITH MACRON 290 | 0x012C I # LATIN CAPITAL LETTER I WITH BREVE 291 | 0x012D i # LATIN SMALL LETTER I WITH BREVE 292 | 0x012E I # LATIN CAPITAL LETTER I WITH OGONEK 293 | 0x012F i # LATIN SMALL LETTER I WITH OGONEK 294 | 295 | 0x0130 I # LATIN CAPITAL LETTER I WITH DOT ABOVE 296 | 0x0131 i # LATIN SMALL LETTER DOTLESS I 297 | 0x0132 IJ # LATIN CAPITAL LIGATURE IJ 298 | 0x0133 ij # LATIN SMALL LIGATURE IJ 299 | 0x0134 J # LATIN CAPITAL LETTER J WITH CIRCUMFLEX 300 | 0x0135 j # LATIN SMALL LETTER J WITH CIRCUMFLEX 301 | 0x0136 K # LATIN CAPITAL LETTER K WITH CEDILLA 302 | 0x0137 k # LATIN SMALL LETTER K WITH CEDILLA 303 | 0x0138 q # LATIN SMALL LETTER KRA (Greenlandic) 304 | 0x0139 L # LATIN CAPITAL LETTER L WITH ACUTE 305 | 0x013A l # LATIN SMALL LETTER L WITH ACUTE 306 | 0x013B L # LATIN CAPITAL LETTER L WITH CEDILLA 307 | 0x013C l # LATIN SMALL LETTER L WITH CEDILLA 308 | 0x013D L # LATIN CAPITAL LETTER L WITH CARON 309 | 0x013E l # LATIN SMALL LETTER L WITH CARON 310 | 0x013F L # LATIN CAPITAL LETTER L WITH MIDDLE DOT 311 | 312 | 0x0140 l # LATIN SMALL LETTER L WITH MIDDLE DOT 313 | 0x0141 L # LATIN CAPITAL LETTER L WITH STROKE 314 | 0x0142 l # LATIN SMALL LETTER L WITH STROKE 315 | 0x0143 N # LATIN CAPITAL LETTER N WITH ACUTE 316 | 0x0144 n # LATIN SMALL LETTER N WITH ACUTE 317 | 0x0145 N # LATIN CAPITAL LETTER N WITH CEDILLA 318 | 0x0146 n # LATIN SMALL LETTER N WITH CEDILLA 319 | 0x0147 N # LATIN CAPITAL LETTER N WITH CARON 320 | 0x0148 n # LATIN SMALL LETTER N WITH CARON 321 | 0x0149 n # LATIN SMALL LETTER N PRECEDED BY APOSTROPHE 322 | 0x014A NG # LATIN CAPITAL LETTER ENG (Sami) 323 | 0x014B ng # LATIN SMALL LETTER ENG (Sami) 324 | 0x014C O # LATIN CAPITAL LETTER O WITH MACRON 325 | 0x014D o # LATIN SMALL LETTER O WITH MACRON 326 | 0x014E O # LATIN CAPITAL LETTER O WITH BREVE 327 | 0x014F o # LATIN SMALL LETTER O WITH BREVE 328 | 329 | 0x0150 O # LATIN CAPITAL LETTER O WITH DOUBLE ACUTE 330 | 0x0151 o # LATIN SMALL LETTER O WITH DOUBLE ACUTE 331 | 0x0152 OE # LATIN CAPITAL LIGATURE OE 332 | 0x0153 oe # LATIN SMALL LIGATURE OE 333 | 0x0154 R # LATIN CAPITAL LETTER R WITH ACUTE 334 | 0x0155 r # LATIN SMALL LETTER R WITH ACUTE 335 | 0x0156 R # LATIN CAPITAL LETTER R WITH CEDILLA 336 | 0x0157 r # LATIN SMALL LETTER R WITH CEDILLA 337 | 0x0158 R # LATIN CAPITAL LETTER R WITH CARON 338 | 0x0159 r # LATIN SMALL LETTER R WITH CARON 339 | 0x015A S # LATIN CAPITAL LETTER S WITH ACUTE 340 | 0x015B s # LATIN SMALL LETTER S WITH ACUTE 341 | 0x015C S # LATIN CAPITAL LETTER S WITH CIRCUMFLEX 342 | 0x015D s # LATIN SMALL LETTER S WITH CIRCUMFLEX 343 | 0x015E S # LATIN CAPITAL LETTER S WITH CEDILLA 344 | 0x015F s # LATIN SMALL LETTER S WITH CEDILLA 345 | 346 | 0x0160 S # LATIN CAPITAL LETTER S WITH CARON 347 | 0x0161 s # LATIN SMALL LETTER S WITH CARON 348 | 0x0162 T # LATIN CAPITAL LETTER T WITH CEDILLA 349 | 0x0163 t # LATIN SMALL LETTER T WITH CEDILLA 350 | 0x0164 T # LATIN CAPITAL LETTER T WITH CARON 351 | 0x0165 t # LATIN SMALL LETTER T WITH CARON 352 | 0x0166 T # LATIN CAPITAL LETTER T WITH STROKE 353 | 0x0167 t # LATIN SMALL LETTER T WITH STROKE 354 | 0x0168 U # LATIN CAPITAL LETTER U WITH TILDE 355 | 0x0169 u # LATIN SMALL LETTER U WITH TILDE 356 | 0x016A U # LATIN CAPITAL LETTER U WITH MACRON 357 | 0x016B u # LATIN SMALL LETTER U WITH MACRON 358 | 0x016C U # LATIN CAPITAL LETTER U WITH BREVE 359 | 0x016D u # LATIN SMALL LETTER U WITH BREVE 360 | 0x016E U # LATIN CAPITAL LETTER U WITH RING ABOVE 361 | 0x016F u # LATIN SMALL LETTER U WITH RING ABOVE 362 | 363 | 0x0170 U # LATIN CAPITAL LETTER U WITH DOUBLE ACUTE 364 | 0x0171 u # LATIN SMALL LETTER U WITH DOUBLE ACUTE 365 | 0x0172 U # LATIN CAPITAL LETTER U WITH OGONEK 366 | 0x0173 u # LATIN SMALL LETTER U WITH OGONEK 367 | 0x0174 W # LATIN CAPITAL LETTER W WITH CIRCUMFLEX 368 | 0x0175 w # LATIN SMALL LETTER W WITH CIRCUMFLEX 369 | 0x0176 Y # LATIN CAPITAL LETTER Y WITH CIRCUMFLEX 370 | 0x0177 y # LATIN SMALL LETTER Y WITH CIRCUMFLEX 371 | 0x0178 Y # LATIN CAPITAL LETTER Y WITH DIAERESIS 372 | 0x0179 Z # LATIN CAPITAL LETTER Z WITH ACUTE 373 | 0x017A z # LATIN SMALL LETTER Z WITH ACUTE 374 | 0x017B Z # LATIN CAPITAL LETTER Z WITH DOT ABOVE 375 | 0x017C z # LATIN SMALL LETTER Z WITH DOT ABOVE 376 | 0x017D Z # LATIN CAPITAL LETTER Z WITH CARON 377 | 0x017E z # LATIN SMALL LETTER Z WITH CARON 378 | 0x017F s # LATIN SMALL LETTER LONG S 379 | 380 | # 381 | # Dunno where 382 | # 383 | 384 | 0x02C6 ^ # MODIFIER LETTER CIRCUMFLEX ACCENT 385 | 386 | 0x2010 - # HYPHEN 387 | 0x2011 - # NON-BREAKING HYPHEN 388 | 0x2012 - # FIGURE DASH 389 | 0x2013 - # EN DASH 390 | 0x2014 - # EM DASH 391 | 0x2015 - # HORIZONTAL BAR 392 | 393 | 0x2026 ... # HORIZONTAL ELLIPSIS 394 | 395 | 0x2122 _tm_ # TRADE MARK SIGN 396 | 397 | 0x00C4 AE # LATIN CAPITAL LETTER A WITH UMLAUT 398 | 0x00D6 OE # LATIN CAPITAL LETTER O WITH UMLAUT 399 | 0x00DC UE # LATIN CAPITAL LETTER U WITH UMLAUT 400 | 401 | 0x00E4 ae # LATIN SMALL LETTER A WITH UMLAUT 402 | 0x00F6 oe # LATIN SMALL LETTER O WITH UMLAUT 403 | 0x00FC ue # LATIN SMALL LETTER U WITH UMLAUT 404 | 405 | end 406 | -------------------------------------------------------------------------------- /git/.gitconfig: -------------------------------------------------------------------------------- 1 | [user] 2 | email = zool.bib@gmail.com 3 | name = Mattia Tezzele 4 | signingkey = 31A8BEA1F509E575 5 | [credential] 6 | helper = cache 7 | [color] 8 | ui = true 9 | [core] 10 | excludesfile = ~/.cvsignore 11 | editor = vim 12 | pager = delta 13 | [interactive] 14 | diffFilter = delta --color-only 15 | [delta] 16 | navigate = true 17 | [push] 18 | default = simple 19 | followTags = true 20 | [merge] 21 | tool = vimdiff 22 | conflictstyle = diff3 23 | [pager] 24 | diff = diff-so-fancy | less --tabs=1,5 -RFX 25 | show = diff-so-fancy | less --tabs=1,5 -RFX 26 | [alias] 27 | st = status 28 | a = add 29 | cm = commit -v 30 | acm = commit -av 31 | ps = push 32 | pl = pull 33 | co = checkout 34 | br = branch 35 | unstage = reset HEAD -- 36 | last = log -1 HEAD 37 | lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit 38 | alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ / 39 | compare = "!f() { git log --oneline $1..$2; }; f" 40 | [status] 41 | submodulesummary = true 42 | [github] 43 | user = mrzool 44 | [ghi] 45 | token = !security find-internet-password -a mrzool -s github.com -l 'ghi token' -w 46 | ; [color "diff-highlight"] 47 | ; oldNormal = red bold 48 | ; oldHighlight = red bold 52 49 | ; newNormal = green bold 50 | ; newHighlight = green bold 22 51 | ; [color "diff"] 52 | ; meta = yellow 53 | ; frag = magenta bold 54 | ; commit = yellow bold 55 | ; old = red bold 56 | ; new = green bold 57 | ; whitespace = red reverse 58 | [diff] 59 | colorMoved = default 60 | [diff-so-fancy] 61 | first-run = false 62 | -------------------------------------------------------------------------------- /hsxkpasswd/.hsxkpasswdrc: -------------------------------------------------------------------------------- 1 | { 2 | "custom_presets" : { 3 | "SIMPLE_PASSPHRASE" : { 4 | "description" : "Just a simple passphrase", 5 | "config" : { 6 | "num_words": 3, 7 | "word_length_min": 4, 8 | "word_length_max": 8, 9 | "case_transform": "ALTERNATE", 10 | "separator_character": "-", 11 | "padding_digits_before": 0, 12 | "padding_digits_after": 2, 13 | "padding_type": "NONE" 14 | } 15 | }, 16 | "SIMPLE_PASSPHRASE_SHORT" : { 17 | "description" : "Just a simple passphrase, shorter", 18 | "config" : { 19 | "num_words": 3, 20 | "word_length_min": 4, 21 | "word_length_max": 5, 22 | "case_transform": "ALTERNATE", 23 | "separator_character": "-", 24 | "padding_digits_before": 0, 25 | "padding_digits_after": 2, 26 | "padding_type": "NONE" 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /ncdu/.config/ncdu/config: -------------------------------------------------------------------------------- 1 | # Disable colors (the default, dark-bg, stopped looking good on light terminal backgrounds) 2 | --color off 3 | -------------------------------------------------------------------------------- /readline/.inputrc: -------------------------------------------------------------------------------- 1 | # set editing-mode vi 2 | # set keymap vi 3 | set bell-style visible 4 | 5 | $if mode=vi 6 | set keymap vi-command 7 | "gg": beginning-of-history 8 | "G": end-of-history 9 | set keymap vi-insert 10 | "jj": vi-movement-mode 11 | "\C-w": backward-kill-word 12 | "\C-p": history-search-backward 13 | $endif 14 | 15 | # Use the text that has already been typed as the prefix for searching through 16 | # commands (i.e. more intelligent Up/Down behavior) 17 | "\e[A": history-search-backward 18 | "\e[B": history-search-forward 19 | 20 | # Completion tweaks 21 | set completion-ignore-case on 22 | set completion-map-case on 23 | set show-all-if-ambiguous on 24 | set mark-symlinked-directories on 25 | set match-hidden-files on 26 | # set visible-stats on 27 | set skip-completed-text on 28 | set colored-stats on 29 | 30 | # Allow UTF-8 input and output 31 | set input-meta on 32 | set output-meta on 33 | set convert-meta off 34 | 35 | # Bash-specific mappings and settings 36 | $if Bash 37 | Space: magic-space 38 | \C-w: backward-kill-word 39 | # "\C-n": menu-complete 40 | $endif 41 | -------------------------------------------------------------------------------- /ssh/.ssh/config: -------------------------------------------------------------------------------- 1 | Include /Users/tezzele/.colima/ssh_config 2 | 3 | Include hosts 4 | 5 | Host * 6 | AddKeysToAgent yes 7 | UseKeychain yes 8 | ControlPersist 4h 9 | TCPKeepAlive no 10 | ServerAliveInterval 60 11 | ServerAliveCountMax 10 12 | VisualHostKey yes 13 | IdentityFile ~/.ssh/id_rsa 14 | IdentityFile ~/.ssh/dfa-id_rsa 15 | -------------------------------------------------------------------------------- /tmux/.tmux.conf: -------------------------------------------------------------------------------- 1 | # GENERAL OPTIONS 2 | 3 | # Lot of crazy trial and error to get italics working in Vim in tmux 4 | # Original post: https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/ 5 | # That didn't work because the tic command failed (segfault) 6 | # What ended up working is this: https://apple.stackexchange.com/a/249385/140821 7 | set -g default-terminal "tmux-256color" 8 | set -as terminal-overrides ',xterm*:sitm=\E[3m' 9 | 10 | set -sg escape-time 1 11 | set -g base-index 1 12 | set-window-option -g pane-base-index 1 13 | 14 | # Display alert messages for 0.6 seconds 15 | set-option -g display-time 600 16 | 17 | # Don't rename windows automatically 18 | set-option -g allow-rename off 19 | 20 | # Allow mouse interaction 21 | setw -g mouse on 22 | 23 | # CUSTOM BINDINGS 24 | 25 | # C-b sadly conflicts with an essential Readline binding 26 | unbind C-b 27 | set -g prefix C-Space 28 | bind C-Space send-prefix 29 | 30 | bind r source-file ~/.tmux.conf \; display "Config reloaded" 31 | 32 | # Open new splits and window with the CWD 33 | bind | split-window -h -c "#{pane_current_path}" 34 | bind - split-window -v -c "#{pane_current_path}" 35 | bind c new-window -c "#{pane_current_path}" 36 | 37 | # Set repeat-time to one second 38 | set-option -g repeat-time 1000 39 | 40 | # Makes cycling between windows repeatable 41 | unbind n 42 | bind -r n next-window 43 | unbind N 44 | bind -r N previous-window 45 | 46 | # Switch panes using alt+hjkl (no prefix needed) 47 | # bind -n M-h select-pane -L 48 | # bind -n M-l select-pane -R 49 | # bind -n M-k select-pane -U 50 | # bind -n M-j select-pane -D 51 | 52 | # Vi-like movements between panes 53 | bind h select-pane -L 54 | bind j select-pane -D 55 | bind k select-pane -U 56 | bind l select-pane -R 57 | 58 | # Smart pane switching with awareness of vim splits (from https://github.com/christoomey/vim-tmux-navigator) 59 | # Commenting out as it conflicts with vital Readline functionality 60 | # is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' 61 | # bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" 62 | # bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" 63 | # bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" 64 | # bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" 65 | # bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" 66 | 67 | bind -r H resize-pane -L 5 68 | bind -r J resize-pane -D 5 69 | bind -r K resize-pane -U 5 70 | bind -r L resize-pane -R 5 71 | 72 | # Vi-like copy-mode bindings 73 | set-window-option -g mode-keys vi 74 | unbind [ 75 | bind Escape copy-mode 76 | unbind p 77 | bind p paste-buffer 78 | bind-key -T copy-mode-vi 'v' send -X begin-selection 79 | bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "pbcopy" 80 | bind-key -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "pbcopy" 81 | bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "pbcopy" 82 | 83 | # Status line 84 | 85 | set -g status-style fg=colour0,bg=colour15 86 | set -gw window-status-activity-style bg=default,fg=yellow,none 87 | setw -g window-status-current-style fg=colour8 88 | 89 | # Do not color split separators 90 | set -g pane-border-style fg=default 91 | set -g pane-active-border-style fg=default 92 | set -g pane-active-border-style bg=default 93 | 94 | # Status bar 95 | # set-option -g status-position top 96 | set -g status-left "#[fg=colour15][#S] " 97 | set -g window-status-format "#[fg=colour248] #I #W " 98 | 99 | set -g status-bg colour8 100 | set -g status-fg colour15 101 | set-window-option -g window-status-current-style bg=colour7 102 | # set -g status-left-length 20 103 | set-window-option -g window-status-format '#I:#W ' 104 | set-window-option -g window-status-current-format ' #I:#W ' 105 | # set-window-option -g window-status-current-format '#I:#W#[fg=red]#{?window_zoomed_flag,(z),}' 106 | set -g status-right "%a %d/%m %R" 107 | 108 | set -g visual-activity off 109 | set-window-option -g monitor-activity on 110 | 111 | # PLUGINS 112 | 113 | set -g @plugin 'tmux-plugins/tpm' 114 | set -g @plugin 'tmux-plugins/tmux-sensible' 115 | set -g @plugin 'christoomey/vim-tmux-navigator' 116 | set -g @plugin 'tmux-plugins/tmux-yank' 117 | set -g @plugin 'sainnhe/tmux-fzf' 118 | # set -g @plugin 'tmux-plugins/tmux-battery' 119 | # set -g @plugin 'tmux-plugins/tmux-resurrect' 120 | 121 | # # Prefix highlight color 122 | # set -g @prefix_highlight_fg 'grey' 123 | # set -g @prefix_highlight_bg 'default' 124 | 125 | # # Initialize TMUX plugin manager 126 | run '~/.tmux/plugins/tpm/tpm' 127 | -------------------------------------------------------------------------------- /tmux/.tmux.original.conf: -------------------------------------------------------------------------------- 1 | # GENERAL OPTIONS 2 | 3 | # Lot of crazy trial and error to get italics working in Vim in tmux 4 | # Original post: https://alexpearce.me/2014/05/italics-in-iterm2-vim-tmux/ 5 | # That didn't work because the tic command failed (segfault) 6 | # What ended up working is this: https://apple.stackexchange.com/a/249385/140821 7 | set -g default-terminal "tmux-256color" 8 | set -as terminal-overrides ',xterm*:sitm=\E[3m' 9 | set-option -g default-command "reattach-to-user-namespace -l bash" 10 | 11 | set -sg escape-time 1 12 | set -g base-index 1 13 | set-window-option -g pane-base-index 1 14 | 15 | # Display alert messages for 0.6 seconds 16 | set-option -g display-time 600 17 | 18 | # Don't rename windows automatically 19 | set-option -g allow-rename off 20 | 21 | # Allow mouse interaction 22 | setw -g mouse on 23 | 24 | # CUSTOM BINDINGS 25 | 26 | unbind C-b 27 | set -g prefix C-Space 28 | bind C-Space send-prefix 29 | 30 | bind r source-file ~/.tmux.conf \; display "Config reloaded" 31 | 32 | # Open new splits and window with the CWD 33 | bind | split-window -h -c "#{pane_current_path}" 34 | bind - split-window -v -c "#{pane_current_path}" 35 | bind c new-window -c "#{pane_current_path}" 36 | 37 | # Set repeat-time to one second 38 | set-option -g repeat-time 1000 39 | 40 | # Makes cycling between windows repeatable 41 | unbind n 42 | bind -r n next-window 43 | unbind N 44 | bind -r N previous-window 45 | 46 | # Switch panes using alt+hjkl (no prefix needed) 47 | # bind -n M-h select-pane -L 48 | # bind -n M-l select-pane -R 49 | # bind -n M-k select-pane -U 50 | # bind -n M-j select-pane -D 51 | 52 | # Vi-like movements between panes 53 | bind h select-pane -L 54 | bind j select-pane -D 55 | bind k select-pane -U 56 | bind l select-pane -R 57 | 58 | # Smart pane switching with awareness of vim splits (from https://github.com/christoomey/vim-tmux-navigator) 59 | # Commenting out as it conflicts with vital Readline functionality 60 | # is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?)(diff)?$"' 61 | # bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" 62 | # bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" 63 | # bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" 64 | # bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" 65 | # bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" 66 | 67 | bind -r H resize-pane -L 5 68 | bind -r J resize-pane -D 5 69 | bind -r K resize-pane -U 5 70 | bind -r L resize-pane -R 5 71 | 72 | # Vi-like copy-mode bindings 73 | set-window-option -g mode-keys vi 74 | unbind [ 75 | bind Escape copy-mode 76 | unbind p 77 | bind p paste-buffer 78 | bind-key -T copy-mode-vi 'v' send -X begin-selection 79 | bind -T copy-mode-vi 'y' send -X copy-selection 80 | bind -T copy-mode-vi 'Y' send -X copy-pipe "reattach-to-user-namespace pbcopy" 81 | 82 | # Status line 83 | 84 | set -g status-fg colour20 85 | set -g status-bg colour18 86 | set-window-option -g window-status-current-fg colour15 87 | set-option -gw window-status-activity-attr none 88 | set-option -gw window-status-activity-bg default 89 | set-option -gw window-status-activity-fg yellow 90 | 91 | # Do not color split separators 92 | set -g pane-border-style fg=default 93 | set -g pane-active-border-style fg=default 94 | set -g pane-active-border-style bg=default 95 | 96 | # Status bar 97 | # set-option -g status-position top 98 | set -g status-left "#[fg=colour14][#S] " 99 | set -g status-left-length 20 100 | # set -g status-justify centre 101 | set-window-option -g window-status-format '#I:#W ' 102 | set-window-option -g window-status-current-format '#I:#W#[fg=red]#{?window_zoomed_flag,(z),}' 103 | set -g status-right "#[fg=colour20]#{prefix_highlight} Batt: #{battery_percentage} | %d/%m/%y %R" 104 | 105 | set -g visual-activity off 106 | set-window-option -g monitor-activity on 107 | 108 | # PLUGINS 109 | 110 | set -g @plugin 'tmux-plugins/tpm' 111 | set -g @plugin 'tmux-plugins/tmux-battery' 112 | set -g @plugin 'tmux-plugins/tmux-resurrect' 113 | 114 | # Prefix highlight color 115 | set -g @prefix_highlight_fg 'grey' 116 | set -g @prefix_highlight_bg 'default' 117 | 118 | # Initialize TMUX plugin manager 119 | run '~/.tmux/plugins/tpm/tpm' 120 | 121 | # Fix OS X clipboard and open command 122 | if-shell 'test "$(uname)" = "Darwin"' 'set-option -g default-command "reattach-to-user-namespace -l bash"' 123 | -------------------------------------------------------------------------------- /vim/.vimrc: -------------------------------------------------------------------------------- 1 | " ------------------------------------------------------------ 2 | " Sections: 3 | " - Plugins 4 | " - General options 5 | " - Files and buffers 6 | " - Search and completion 7 | " - Text and whitespace 8 | " - User Interface 9 | " - Abbreviations 10 | " - Custom mappings and functions 11 | " - Plugins Settings 12 | "------------------------------------------------------------ 13 | 14 | if !has('nvim') 15 | set nocompatible 16 | endif 17 | 18 | filetype plugin on 19 | filetype indent on 20 | 21 | "------------------------------------------------------------ 22 | " Plugins 23 | 24 | call plug#begin() 25 | 26 | " Libraries 27 | Plug 'MarcWeber/vim-addon-mw-utils' 28 | Plug 'tomtom/tlib_vim' 29 | 30 | " Color schemes 31 | Plug 'chriskempson/base16-vim' 32 | Plug 'jeffkreeftmeijer/vim-dim' 33 | 34 | " Integrations 35 | Plug 'vim-scripts/grep.vim' 36 | Plug 'kien/ctrlp.vim' 37 | Plug 'mileszs/ack.vim' 38 | " Plug 'Raimondi/delimitMate' 39 | Plug 'tpope/vim-fugitive' 40 | Plug 'tpope/vim-surround' 41 | Plug 'tpope/vim-repeat' 42 | Plug 'tpope/vim-commentary' 43 | Plug 'tpope/vim-eunuch' 44 | Plug 'tpope/vim-obsession' 45 | Plug 'tpope/vim-speeddating' 46 | Plug 'tpope/vim-rsi' 47 | Plug 'tpope/vim-dispatch' 48 | Plug 'tpope/vim-ragtag' 49 | Plug 'tpope/vim-unimpaired' 50 | Plug 'tpope/vim-abolish' 51 | Plug 'godlygeek/tabular' 52 | Plug 'christoomey/vim-tmux-navigator' 53 | 54 | " Syntax/Indenting 55 | Plug 'vim-syntastic/syntastic' 56 | Plug 'chiel92/vim-autoformat' 57 | Plug 'othree/html5.vim' 58 | Plug 'hail2u/vim-css3-syntax' 59 | Plug 'elzr/vim-json' 60 | Plug 'pangloss/vim-javascript' 61 | Plug 'tpope/vim-liquid' 62 | Plug 'keith/tmux.vim' 63 | Plug 'tpope/vim-git' 64 | Plug 'hdima/python-syntax' 65 | Plug 'stephenway/postcss.vim' 66 | Plug 'cespare/vim-toml' 67 | Plug 'StanAngeloff/php.vim' 68 | Plug 'mechatroner/rainbow_csv' 69 | Plug 'ryanolsonx/vim-xit' 70 | Plug 'rust-lang/rust.vim' 71 | 72 | " User Interface 73 | Plug 'junegunn/goyo.vim' 74 | Plug 'tpope/vim-vinegar' 75 | Plug 'airblade/vim-gitgutter' 76 | Plug 'terryma/vim-smooth-scroll' 77 | Plug 'chrisbra/Colorizer' 78 | " Plug 'wfxr/minimap.vim' 79 | 80 | call plug#end() 81 | 82 | " Load stock matchit.vim if no newer version available 83 | if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' 84 | runtime! macros/matchit.vim 85 | endif 86 | 87 | "------------------------------------------------------------ 88 | " General options 89 | 90 | if !has('nvim') 91 | set encoding=utf8 92 | endif 93 | 94 | set history=700 95 | set autoread 96 | set fileformats=unix 97 | set dictionary=/usr/share/dict/words 98 | 99 | set tags=tags;/ 100 | 101 | let mapleader = " " 102 | nnoremap 103 | 104 | " Treat numerals as decimal 105 | set nrformats -=octal 106 | 107 | " How much time does Vim wait between keystrokes in composite commands 108 | set ttimeout 109 | set ttimeoutlen=100 110 | 111 | " Persistent undos 112 | set undodir=$HOME/.vim/undodir 113 | set undofile 114 | set undolevels=5000 115 | 116 | " Save and restore marks, registers content, 117 | " command-line history, search pattern history 118 | set viminfo='1000,<500,:500,/500 119 | 120 | " Configure backspace 121 | set backspace=eol,start,indent 122 | " Actually, disable backspace so I'm forced to use 123 | inoremap 124 | 125 | " Do not store global, local values or folds in a session 126 | set ssop-=options 127 | set ssop-=folds 128 | 129 | " Activate modeline 130 | set modeline 131 | 132 | " Make yank repeatable with . 133 | set cpoptions+=y 134 | 135 | " Resize splits when the window is resized 136 | autocmd VimResized * exe "normal! \=" 137 | 138 | "------------------------------------------------------------ 139 | " Files and buffers 140 | 141 | " A buffer becomes hidden when it is abandoned 142 | set hidden 143 | 144 | " Turn backup off 145 | set nobackup 146 | set nowritebackup 147 | set noswapfile 148 | 149 | " K opens help section for word under cursor 150 | " useful when editing the vimrc 151 | autocmd FileType vim setlocal keywordprg=:help 152 | 153 | " Return to last edit position when opening files 154 | autocmd BufReadPost * 155 | \ if line("'\"") > 0 && line("'\"") <= line("$") | 156 | \ exe "normal! g`\"" | 157 | \ endif 158 | 159 | " Save all buffers when focus is lost 160 | autocmd FocusLost * silent! wa 161 | 162 | set autowrite 163 | 164 | " Remember info about open buffers on close 165 | set viminfo^=% 166 | 167 | "------------------------------------------------------------ 168 | " Search and completion 169 | 170 | " Substitute globally on lines 171 | set gdefault 172 | 173 | " Search tweaks 174 | set ignorecase 175 | set smartcase 176 | set incsearch 177 | 178 | " Turn magic on for regex 179 | set magic 180 | 181 | " Set path as project path and search it recursively 182 | " (fixes 'file not found' error when using `gf`) 183 | set path+=$PWD/** 184 | 185 | " Autocompletion settings 186 | set complete=.,w,b,u,t,i,t,kspell " Pull from current file, buffers in other windows and in the buffer list, and current tags 187 | set wildmenu " Turn on wildmenu 188 | set wildmode=longest,list:longest " How text gets replaced 189 | set wildignore=*.o,*~,*.pyc " Ignore compiled files when autocompleting 190 | 191 | " Keep search matches in the middle of the window 192 | nnoremap n nzzzv 193 | nnoremap N Nzzzv 194 | 195 | " Don't move on * 196 | nnoremap * * 197 | 198 | "------------------------------------------------------------ 199 | " Text and whitespace 200 | 201 | " Do not fold, ever 202 | set nofoldenable 203 | 204 | " Insert space characters whenever the tab key is pressed 205 | set expandtab 206 | " How many spaces for a tab 207 | set tabstop=2 208 | " How many spaces for indentation 209 | set shiftwidth=2 210 | set smarttab 211 | " set tw=500 212 | set autoindent 213 | " set cindent 214 | 215 | " Wrap related 216 | set nowrap " Leave text alone unless otherwise specified 217 | set textwidth=0 " Never insert line-breaks in text 218 | set wrapmargin=0 219 | 220 | " Wrap text in markdown, yaml and txt files 221 | autocmd BufNewFile,BufRead,BufEnter *.md setlocal wrap linebreak 222 | autocmd FileType markdown setlocal wrap linebreak 223 | autocmd BufNewFile,BufRead,BufEnter *.yml setlocal wrap linebreak 224 | autocmd FileType yaml setlocal wrap linebreak 225 | autocmd BufNewFile,BufRead,BufEnter *.txt setlocal wrap linebreak 226 | autocmd FileType text setlocal wrap linebreak 227 | 228 | " Assume txt files to be written in markdown, highlight syntax accordingly 229 | autocmd BufRead,BufNewFile *.txt set filetype=markdown 230 | 231 | " Insert space before every line break for format=flowed to work 232 | autocmd FileType mail setlocal formatoptions+=aw 233 | 234 | " Highlight whitespace with symbols 235 | set list 236 | set listchars=eol:¬,extends:…,precedes:…,lead:· 237 | 238 | " Makes foo-bar considered one word 239 | " set iskeyword+=- 240 | 241 | " Consider < and > a pair 242 | set matchpairs+=<:> 243 | 244 | "------------------------------------------------------------ 245 | " User Interface 246 | 247 | " Improve smoothness 248 | if !has('nvim') 249 | set ttyfast 250 | endif 251 | 252 | " Highlight search results 253 | set hlsearch 254 | 255 | " Find all duplicate lines in current file 256 | command! FindDuplicateLines g/^\(.*\)$\n\1$/p 257 | 258 | " Clear last used search pattern with :C 259 | command! C let @/="" 260 | 261 | " Don't redraw while executing macros 262 | set lazyredraw 263 | 264 | " Show partially typed commands at the bottom 265 | set showcmd 266 | 267 | " Improves scrolling when wrap is set 268 | " See http://vi.stackexchange.com/questions/4507/scrolling-issues-when-the-wrap-option-is-set 269 | set display=lastline 270 | 271 | " Keep cursor 5 lines from window borders when scrolling 272 | set scrolloff=5 273 | 274 | " show current position 275 | set ruler 276 | 277 | " Height of the command bar 278 | set cmdheight=1 279 | 280 | " Always show the status line 281 | set laststatus=2 282 | 283 | " Status line 284 | set statusline=%t " File name of the file in the buffer 285 | set statusline+=%m " Modified flag 286 | set statusline+=%5{v:register} "Which active register 287 | set statusline+=%= " Align to the right from now on 288 | set statusline+=[%{FugitiveHead()}] " Current branch 289 | set statusline+=\ \ " Blank space 290 | set statusline+=%y " Type of file in the buffer 291 | set statusline+=%5l " Current line 292 | set statusline+=, " Comma 293 | set statusline+=%c " Current Column 294 | set statusline+=/ " Slash 295 | set statusline+=%-5L " Total lines 296 | set statusline+=%p%% " Percentage through the file 297 | 298 | " Highlight status bar when in insert mode 299 | " if version >= 700 300 | " au InsertEnter * hi StatusLine ctermfg=235 ctermbg=2 301 | " au InsertLeave * hi StatusLine ctermbg=19 ctermfg=20 302 | " endif 303 | 304 | " Switch cursor shape when changing modes 305 | let &t_SI = "\e[5 q" 306 | let &t_EI = "\e[2 q" 307 | 308 | " Number of colors 309 | " set t_Co=16 310 | 311 | syntax enable 312 | 313 | " Display comments in italics 314 | " See https://stackoverflow.com/a/53625973/3078265 315 | let &t_ZH="\e[3m" 316 | let &t_ZR="\e[23m" 317 | autocmd ColorScheme * highlight Comment cterm=italic ctermfg=8 318 | 319 | " Italics and bold in markdown files 320 | autocmd ColorScheme * highlight htmlItalic cterm=italic 321 | autocmd ColorScheme * highlight htmlBold cterm=bold 322 | 323 | " Color fine-tuning 324 | if system("defaults read -g AppleInterfaceStyle") =~ '^Dark' 325 | " Colors for dark mode 326 | autocmd ColorScheme * highlight cursorline ctermbg=8 327 | autocmd ColorScheme * highlight StatusLine ctermbg=7 ctermfg=0 328 | autocmd ColorScheme * highlight StatusLineNC ctermbg=8 ctermfg=0 329 | autocmd ColorScheme * highlight StatusLineTerm ctermbg=8 ctermfg=0 330 | autocmd ColorScheme * highlight StatusLineTermNC ctermbg=7 ctermfg=0 331 | else 332 | " Colors for light mode 333 | autocmd ColorScheme * highlight cursorline ctermbg=15 334 | autocmd ColorScheme * highlight StatusLine ctermbg=8 ctermfg=15 335 | autocmd ColorScheme * highlight StatusLineNC ctermbg=7 ctermfg=15 336 | autocmd ColorScheme * highlight StatusLineTerm ctermbg=8 ctermfg=15 337 | autocmd ColorScheme * highlight StatusLineTermNC ctermbg=7 ctermfg=15 338 | endif 339 | 340 | autocmd ColorScheme * highlight TabLineFill ctermbg=0 ctermfg=7 341 | autocmd ColorScheme * highlight cursorline cterm=none term=none 342 | autocmd ColorScheme * highlight SignColumn ctermbg=NONE 343 | autocmd ColorScheme * highlight NonText ctermfg=8 344 | autocmd ColorScheme * highlight VertSplit ctermfg=8 ctermbg=NONE guibg=NONE 345 | autocmd ColorScheme * highlight FoldColumn ctermbg=NONE guibg=NONE 346 | autocmd ColorScheme * highlight LineNr ctermbg=NONE guibg=NONE 347 | autocmd ColorScheme * highlight GitGutterAdd ctermbg=NONE ctermfg=10 348 | autocmd ColorScheme * highlight GitGutterChange ctermbg=NONE ctermfg=12 349 | autocmd ColorScheme * highlight GitGutterDelete ctermbg=NONE ctermfg=1 350 | let g:gitgutter_set_sign_backgrounds = 1 351 | let g:gitgutter_sign_allow_clobber = 1 352 | 353 | " Red text for misspelled words 354 | autocmd ColorScheme * highlight clear SpellBad 355 | autocmd ColorScheme * highlight SpellBad ctermbg=NONE ctermfg=1 356 | 357 | colorscheme dim 358 | 359 | " Line numbers tweaks 360 | set nonumber 361 | set numberwidth=2 362 | set foldcolumn=0 363 | 364 | " Open vertical splits to the right 365 | set splitright 366 | 367 | " Show tab bar if there are at least two tabs 368 | set showtabline=1 369 | 370 | " Show matching brackets 371 | set showmatch 372 | set matchtime=15 373 | 374 | " No bells 375 | set noerrorbells 376 | set novisualbell 377 | set t_vb= 378 | set timeoutlen=300 379 | 380 | " Make links in help pages stand out 381 | set conceallevel=0 382 | hi link HelpBar Normal 383 | hi link HelpStar Normal 384 | 385 | " Smaller help window 386 | set helpheight=12 387 | 388 | " Sensible horizontal scrolling 389 | " (https://ddrscott.github.io/blog/2016/sidescroll/) 390 | set sidescroll=1 391 | 392 | " Display number of matches in the lower right corner 393 | " From: https://vi.stackexchange.com/a/23296/3079 394 | set shortmess-=S 395 | 396 | "------------------------------------------------------------ 397 | " Abbreviations 398 | 399 | inoreabbrev teh the 400 | inoreabbrev usign using 401 | inoreabbrev lokk look 402 | inoreabbrev hwo how 403 | inoreabbrev amoutn amount 404 | inoreabbrev desing design 405 | inoreabbrev fucntion function 406 | 407 | "------------------------------------------------------------ 408 | " Custom commands 409 | 410 | " Edit vimrc with :E 411 | command! E execute 'edit ' . resolve(expand($MYVIMRC)) | lcd %:p:h 412 | 413 | "------------------------------------------------------------ 414 | " Custom mappings 415 | 416 | " Maps jj to esc 417 | inoremap jj 418 | 419 | " Break undo sequence in insert mode when certain actions are performed 420 | " See http://vi.stackexchange.com/questions/4556/undo-in-insert-mode/4558#455 421 | " Interfering with DelimitMate, commenting out 422 | " inoremap u 423 | " inoremap u 424 | 425 | " Remap VIM 0 to first non-blank character 426 | noremap 0 ^ 427 | 428 | " make Y behave like D and C 429 | nnoremap Y y$ 430 | 431 | " Insert line break 432 | nnoremap i 433 | 434 | " Move per visual line 435 | nnoremap j gj 436 | nnoremap k gk 437 | vnoremap j gj 438 | vnoremap k gk 439 | 440 | " Move per real line 441 | nnoremap gj j 442 | nnoremap gk k 443 | vnoremap gj j 444 | vnoremap gk k 445 | 446 | " Searches for current selection in visual mode 447 | xnoremap * :call VSetSearch()/=@/ 448 | xnoremap # :call VSetSearch()?=@/ 449 | 450 | function! s:VSetSearch() 451 | let temp = @s 452 | norm! gv"sy 453 | let @/ = '\V' . substitute(escape(@s, '/\'), '\n', '\\n', 'g') 454 | let @s = temp 455 | endfunction 456 | 457 | " Displays highlight group under cursor to customize the color scheme 458 | " (cit: like Firebug in Vim) 459 | noremap gm :call SynStack() 460 | 461 | function! SynStack() 462 | if !exists("*synstack") 463 | return 464 | endif 465 | echo map(synstack(line('.'), col('.')), 'synIDattr(v:val, "name")') 466 | endfunc 467 | 468 | " Expands path of current buffer on the command prompt 469 | cnoremap %% getcmdtype() == ':' ? expand('%:h').'/' : '%%' 470 | 471 | " Remap o to open current buffer in a new tab 472 | " Mimics zoom in on current split 473 | nnoremap o :tab sp 474 | 475 | " Recommendations from :h ragtag 476 | inoremap o 477 | " inoremap 478 | " inoremap "This interferes with the digraph mapping 479 | 480 | "------------------------------------------------------------ 481 | " Custom mappings (leader) 482 | 483 | " Open file explorer 484 | nnoremap e :e. 485 | nnoremap v :Vexplore 486 | nnoremap s :Hexplore 487 | nnoremap t :Texplore 488 | 489 | nnoremap l :lcd ../ 490 | nnoremap o :!open 491 | 492 | " Open terminal 493 | nnoremap T :vert :term 494 | 495 | " Git-related 496 | nnoremap SS :Git 497 | nnoremap a :exe ":GitGutterStageHunk" 498 | nnoremap c :Git commit -m 499 | command! Hpreview GitGutterPreviewHunk 500 | command! Hnext GitGutterNextHunk 501 | command! Hprev GitGutterPrevHunk 502 | 503 | " Copy/paste to system clipboard 504 | vmap y "+y 505 | vmap d "+d 506 | nmap yy "+yy 507 | nmap p "+p 508 | nmap P "+P 509 | vmap p "+p 510 | vmap P "+P 511 | 512 | " Toggle Goyo 513 | nnoremap z :set nolist:Goyo 514 | 515 | " Ag after selected text 516 | vnoremap ag :call VisualSelection('gv', '') 517 | " Search & replace selected text 518 | vnoremap r :call VisualSelection('replace', '') 519 | 520 | " Run :Make 521 | nnoremap m :Make 522 | 523 | " Insert date 524 | nnoremap d :r !date "+\%a \%Y-\%m-\%d" 525 | 526 | " Enable/disable the mouse 527 | nnoremap M :call ToggleMouse() 528 | function! ToggleMouse() 529 | if &mouse == "a" 530 | set mouse= 531 | else 532 | set mouse=a 533 | endif 534 | endfunction 535 | 536 | " Move between windows 537 | nnoremap j 538 | nnoremap k 539 | nnoremap h 540 | nnoremap l 541 | 542 | " Run Syntastic check 543 | nnoremap sy :SyntasticCheck 544 | 545 | " New buffer from visual selection 546 | vnoremap n d:newP 547 | 548 | " Convert visual selection to HTML and pipe it to the clipboard 549 | vnoremap h :w !pandoc -f markdown -t html --wrap=none \| pbcopy 550 | 551 | " Enable spell-checking and set its language to German 552 | nnoremap sp :set spell! \| :set spelllang=de 553 | 554 | "------------------------------------------------------------ 555 | " Plugins Settings 556 | 557 | " Netrw Settings 558 | let g:netrw_preview = 1 559 | let g:netrw_liststyle = 3 560 | let g:netrw_list_hide = '\(^\|\s\s\)\zs\.\S\+' 561 | let g:netrw_browsex_viewer = 'safari' 562 | let g:netrw_http_xcmd= "-o" " use curl to open http links 563 | if expand('%:p') =~ 'dotfiles' 564 | let g:netrw_hide=0 " Show hidden files if I'm in my dotfiles folder 565 | let g:ctrlp_show_hidden = 1 " Get CtrlP to show hidden files 566 | endif 567 | 568 | " Python syntax settings 569 | let python_version_2 = 1 570 | let python_highlight_all = 1 571 | 572 | " CtrlP settings 573 | let g:ctrlp_map = 'FF' 574 | let g:ctrlp_cmd = 'CtrlP' 575 | let g:ctrlp_custom_ignore = '\v[\/](node_modules|target|dist|_site|output)|(\.(swp|ico|git|svn))$' 576 | 577 | " Gundo settings 578 | let g:gundo_preview_bottom = 1 579 | 580 | " Syntastic settings 581 | let g:syntastic_html_tidy_ignore_errors = [ 582 | \ 'trimming empty ', 583 | \ 'trimming empty ', 584 | \ ' proprietary attribute \"autocomplete\"', 585 | \ 'proprietary attribute \"role\"', 586 | \ 'proprietary attribute \"hidden\"', 587 | \ 'proprietary attribute \"ng-', 588 | \ ' is not recognized!', 589 | \ 'discarding unexpected ', 590 | \ 'discarding unexpected ', 591 | \ ' is not recognized!', 592 | \ 'discarding unexpected ', 593 | \ ' is not recognized!', 594 | \ 'discarding unexpected ', 595 | \ ' is not recognized!', 596 | \ 'discarding unexpected ', 597 | \ 'discarding unexpected ', 598 | \ ' is not recognized!', 599 | \ 'discarding unexpected ', 600 | \ ' is not recognized!', 601 | \ 'discarding unexpected ', 602 | \ 'discarding unexpected ', 603 | \ ' is not recognized!', 604 | \ 'discarding unexpected ' 605 | \ ] 606 | 607 | " Snipmate settings 608 | let g:snipMate = {} 609 | let g:snipMate.scope_aliases = {} 610 | let g:snipMate.scope_aliases['liquid'] = 'liquid,html' " loads HTML snippets in liquid files 611 | 612 | " Goyo settings 613 | let g:goyo_height = 70 614 | let g:goyo_width = 100 615 | 616 | function! s:goyo_enter() 617 | set noshowmode 618 | set scrolloff=999 619 | if system("defaults read -g AppleInterfaceStyle") =~ '^Dark' 620 | highlight StatusLineNC ctermfg=black 621 | highlight EndOfBuffer ctermfg=black ctermbg=black 622 | else 623 | highlight StatusLineNC ctermfg=white 624 | highlight EndOfBuffer ctermfg=white ctermbg=white 625 | endif 626 | endfunction 627 | 628 | if !exists('*s:goyo_leave') 629 | function! s:goyo_leave() 630 | source $MYVIMRC 631 | endfunction 632 | endif 633 | 634 | autocmd! User GoyoEnter nested call goyo_enter() 635 | autocmd! User GoyoLeave nested call goyo_leave() 636 | 637 | " ack.vim settings 638 | " use ag instead of ack 639 | if executable('ag') 640 | let g:ackprg = 'ag --vimgrep' 641 | endif 642 | 643 | " vim-rsi settings 644 | let g:rsi_no_meta = 1 " Fixes ä issue 645 | 646 | " DelimitMate Settings 647 | let delimitMate_expand_space = 1 648 | let delimitMate_expand_cr = 1 649 | 650 | " Activate Ragtag shortcuts 651 | let g:ragtag_global_maps = 1 652 | 653 | " Update git-gutter signs as soon as possible after stop typing event 654 | set updatetime=100 655 | 656 | " Smooth-scroll mappings 657 | noremap :call smooth_scroll#up(&scroll, 25, 2) 658 | noremap :call smooth_scroll#down(&scroll, 25, 2) 659 | noremap :call smooth_scroll#up(&scroll*2, 25, 4) 660 | noremap :call smooth_scroll#down(&scroll*2, 25, 4) 661 | 662 | " Set commentstring for php files 663 | autocmd BufNewFile,BufRead,BufEnter *.php setlocal commentstring=//\ %s 664 | autocmd FileType php setlocal commentstring=//\ %s 665 | 666 | " Map for vim-autoformat 667 | noremap :Autoformat 668 | 669 | " Load colorizer automatically in HTML and CSS files 670 | let g:colorizer_auto_filetype='css,html' 671 | 672 | " Overrides/tweaks for the xit syntax 673 | highlight xitCheckboxOpen ctermfg=4 674 | highlight xitCheckboxChecked ctermfg=2 675 | highlight xitCheckboxOngoing ctermfg=3 676 | highlight xitCheckboxOpenPriority ctermfg=1 677 | highlight xitTitle cterm=bold,none 678 | " 679 | 680 | " Minimap 681 | " let g:minimap_width = 10 682 | " let g:minimap_auto_start = 1 683 | " let g:minimap_auto_start_win_enter = 1 684 | " let g:minimap_highlight_search = 1 685 | --------------------------------------------------------------------------------