dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit de40d7d873a7947a417db62ee91cce54f42fed76
parent 1e10cd528a84f05903c66a26afcf39efe2cf2d18
Author: z3bra <willyatmailoodotorg>
Date:   Wed Jan  6 21:53:50 2016

trim useless files

Diffstat:
 elinks/cookies     |   6 +-
 elinks/elinks.conf | 264 +------------------------------------------------------
 evilwmrc           |  13 +---
 screenrc           | 115 +------------------------
 xbindkeysrc        |  71 +---------------
 zshrc              | 169 +-----------------------------------
 6 files changed, 0 insertions(+), 638 deletions(-)

diff --git a/elinks/cookies b/elinks/cookies @@ -1,6 +0,0 @@ -tpb_showArtist 1 thepiratebay.se /torrent/3668982/ thepiratebay.se 1973541279 0 -language fr_FR thepiratebay.se / thepiratebay.se 1374357279 0 -PREF ID=f0c7c16706764eb5:U=ae62c110eba5c0ae:FF=0:TM=1342821080:LM=1342821212:S=tGlrSH6SnMHSu-82 www.google.fr / google.fr 1405893212 0 -NID 62=KssVuxYkG08b-j0g7-Jn0hBmUtcbsWR2spsqyOXWFkQ6hmSPuShaXmNUc6iJjbN_7-2ekzJN7r6eIRfYIC-jAWrsNsY-WVy1OWHC_Lhf11EK-V9kagORzqiM517kyTDn www.google.com / google.com 1358632389 0 -PREF ID=5cc1b27cc1d8b630:U=a5139297edd8c4ce:FF=0:TM=1342821080:LM=1342821189:S=3A6dmprmwHoVUODz www.google.com / google.com 1405893189 0 -NID 62=ZdedzfaXFA_3bcZUE9faY1eYIb27o9G4OiX5VZbzDPOzfS7f-UbaEN8DGo2ES7bTKp7tKB6Amio_V3LRuI47rahpnCnX_8pYu-yvu2uTTJ1gocKh-4QMzO75Qn-8NgTK www.google.fr / google.fr 1358632280 0 diff --git a/elinks/elinks.conf b/elinks/elinks.conf @@ -1,264 +0,0 @@ -# Elinks configuration file. -# -# Only options which are different from elinks' default are set. To make this -# work config.saving_style is set to 3 (see below). -# -# WARNING: Elinks is not safe to use with Tor because it leaks DNS requests -# (it's also not recommended because an attacker can detect elinkse -# because they act differently than Firefox - HTTP headers, etc.)! -# -# There are two ways to fix the DNS problem. The simple solution is -# to use `torsocks`. But that won't work if you want to use an -# intermediate proxy which doesn't speak SOCKS. In this case you have -# to patch the source. The following hacky patch "fixes" the problem -# (by always resolving "localhost"). -# -# --- a/src/network/dns.c -# +++ b/src/network/dns.c -# @@ -138,9 +138,10 @@ del_dns_cache_entry(struct dnsentry *dnsentry) -# /* Synchronous DNS lookup management: */ -# -# enum dns_result -# -do_real_lookup(unsigned char *name, struct sockaddr_storage **addrs, int *addrno, -# +do_real_lookup(unsigned char *oldname, struct sockaddr_storage **addrs, int *addrno, -# int in_thread) -# { -# + unsigned char *name = "localhost"; -# #ifdef CONFIG_IPV6 -# struct addrinfo hint, *ai, *ai_cur; -# #else -# @@ -148,6 +149,8 @@ do_real_lookup(unsigned char *name, struct sockaddr_storage **addrs, int *addrno -# #endif -# int i; -# -# + (void)oldname; -# + -# if (!name || !addrs || !addrno) -# return DNS_ERROR; - - - -# BOOKMARK OPTIONS - - -# CONFIGURATION HANDLING OPTIONS - -# When saving the configuration write only changed settings in the current -# elinks session to this file (missing options are added to the end). -set config.saving_style = 3 -# Internal setting necessary to detect old values for config.saving_style. -set config.saving_style_w = 1 - - -# CONNECTION OPTIONS - -# Don't retry establishing a connection if it failed. Tor does this on its -# own. -set connection.retries = 1 - -# Increase receive timeout to ten minutes (Tor takes that long sometimes). -set connection.receive_timeout = 600 - - -# COOKIE OPTIONS - -# Don't accept any cookies. -set cookies.accept_policy = 0 - -# Limit expiration date to one day. -set cookies.max_age = 1 - -# Don't save any cookies to disk (if they are accepted during a session). -set cookies.save = 0 - - -# DOCUMENT BROWSING OPTIONS - -# Ignore meta refresh tag. -set document.browse.refresh = 0 - -# Display links to images without an alt attribute (or an empty alt, i.e. -# alt=""); otherwise they aren't displayed at all. -set document.browse.images.show_as_links = 1 -# Display the alt/title attribute of an image or the filename if alt/title -# doesn't exist. -set document.browse.images.display_style = 3 -# Limit the filename to 32 characters. -set document.browse.images.filename_maxlen = 32 -# Always display image link symbols ([ and ]). -set document.browse.images.image_link_tagging = 2 - -# Display number of the link next to it so it can be easily accessed by just -# entering the corresponding number. -set document.browse.links.numbering = 0 -# Don't respect the tabindex element as it causes link numbering (see above) -# to not work properly. As I use the link number tabindex is not useful -# anyway. -set document.browse.links.use_tabindex = 0 - -# Open links with target="_blank" in the current tab. I want to decide where -# to open a link. -set document.browse.links.target_blank = 0 - -# Ask if login passwords should be saved. -set document.browse.forms.show_formhist = 1 - - -# DEFAULT DOCUMENT COLOR SETTINGS - -# Use the color settings of the loaded page (except background color) and from -set document.colors.use_document_colors = 1 - -# CASCADING STYLE SHEET OPTIONS - -# Enable usage of CSS. Necessary to use my custom CSS settings. -set document.css.enable = 1 -# Don't fetch any external CSS files. -set document.css.import = 0 -# Use my custom CSS file. -# set document.css.stylesheet = "user.css" - - -# FILE HANDLING AND DOWNLOAD OPTIONS - -# Don't ask when using handlers defined by mailcap. So images are opened -# without a dialog. -set mime.mailcap.ask = 0 - -# Save downloads into my home directory. -set document.download.directory = "~/tmp/" - -# Use timestamp stored on the server for downloaded files. -set document.download.set_original_time = 1 - -# Play an audio notification if a download is completed if it was in the -# background. -set document.download.notify_bell = 1 - - -# PLAIN TEXT PAGE OPTIONS - -# Display URIs as links in plain text documents so they can accessed easily. -set document.plain.display_links = 1 - - -# PROTOCOL SPECIFIC OPTIONS - -# My proxy settings. -# set protocol.http.proxy.host = "127.0.0.8080" -# set protocol.https.proxy.host = "127.0.0.1:8080" -# set protocol.ftp.proxy.host = "127.0.0.1:8080" - -# Don't use a proxy for local pages. -# set protocol.no_proxy = "127.0.0.1, localhost" - -# Send the requested page as referrer to prevent privacy problems. -set protocol.http.referer.policy = 1 - -# Don't send Accept-Language headers as this may reveal parts of my identity. -set protocol.http.accept_ui_language = 0 - - -# URI REWRITE RULES - -# Search engines scroogle and metager2. -# set protocol.rewrite.smart.sm = "http://www.metager2.de/search.php?q=%s" - -# Search English and French Wikipedia. -set protocol.rewrite.smart.w = "https://secure.wikimedia.org/wikipedia/en/wiki/%s" -set protocol.rewrite.smart.wf = "https://secure.wikimedia.org/wikipedia/fr/wiki/%s" - -# Search for scripts, etc. on vim.org. -set protocol.rewrite.dumb.vs = "http://www.vim.org/search.php" - - -# TERMINAL OPTIONS - -# Settings for screen. Use colors, transparency, underlines and UTF-8. -set terminal.screen.colors = 1 -set terminal.screen.transparency = 1 -set terminal.screen.underline = 1 -set terminal.screen.utf_8_io = 1 - -# Settings for screen with 256 colors, same as for screen above (except more -# colors). -set terminal.screen-256color.colors = 0 -set terminal.screen-256color.transparency = 1 -set terminal.screen-256color.underline = 1 -set terminal.screen-256color.utf_8_io = 1 - - -# USER INTERFACE OPTIONS - -# Use the system language. This settings is necessary as elinks wants it to be -# in elinks.conf (or it adds it with every configuration save). -set ui.language = "System" - -# Don't display success boxes when saving something, i.e. the configuration -# file. -set ui.success_msgbox = 0 - - -# SESSION OPTIONS - -# Save session as bookmark when quitting. -set ui.sessions.auto_save = 1 -# Restore this session on startup. -set ui.sessions.auto_restore = 1 - -# Take snapshots to allow restore after a crash. -set ui.sessions.snapshot = 1 - - -# KEY BINDINGS - -# Move bindings like in Vim: hjkl. -bind "main" "h" = "scroll-left" -bind "main" "j" = "scroll-down" -bind "main" "k" = "scroll-up" -bind "main" "l" = "scroll-right" -# Allow easy moving to next link. Not really like in Vim, but similar. -bind "main" "K" = "move-link-prev" -bind "main" "J" = "move-link-next" - -# Move up/down like in mutt. -bind "main" "-" = "move-page-up" -bind "main" "+" = "move-page-down" - -# Move to the start and end of the document similar to Vim. -bind "main" "g" = "move-document-start" -bind "main" "G" = "move-document-end" - -# Reload the page. -bind "main" "r" = "reload" - -# Open "Go to URL" dialog. -bind "main" "o" = "goto-url" -bind "main" "O" = "goto-url-current" - -# Open a new tab in background. -bind "main" "Alt-t" = "open-new-tab-in-background" - -# Don't use "c" to close a tab, use "d" instead -bind "main" "c" = "none" -bind "main" "d" = "tab-close" - -# Unbind Q (quit without warning) as it's too dangerous. -bind "main" "Q" = "none" - -# Links management -bind "main" "f" = "toggle-numbered-links" -bind "main" "F" = "open-link-in-new-tab" - -# Go back / Forward in history -bind "main" "H" = "history-move-back" -bind "main" "L" = "history-move-forward" - - -# Scroll page down / up -bind "main" "Ctrl-U" = "move-page-up" -bind "main" "Ctrl-D" = "move-page-down" - -# Manage bookmarks -bind "main" "b" = "bookmark-manager" -# vim: ft=elinks diff --git a/evilwmrc b/evilwmrc @@ -1,13 +0,0 @@ -fn gelly -mask1 mod4 -mask2 alt -altmask shift -term urxvt -snap 10 -bw 8 -fg #443c28 -fc #e8e9ca -bg #323232 -app wbar -fixed -dock diff --git a/screenrc b/screenrc @@ -1,115 +0,0 @@ -# -# ~/.screenrc -# - -# ------------------------------------------------------------------------------ -# SCREEN SETTINGS -# ------------------------------------------------------------------------------ - -escape "^ " - -# session options -sessionname gavroche -multiuser on -acladd willy - -startup_message off -#nethack on - -#defflow on # will force screen to process ^S/^Q -deflogin on -autodetach on - -# save my eyes !!! -vbell off -vbell_msg " Wuff ---- Wuff!! " - -# define a bigger scrollback, default is 100 lines -defscrollback 1024 - -# ------------------------------------------------------------------------------ -# SCREEN KEYBINDINGS -# ------------------------------------------------------------------------------ - -# Window managing -bindkey ² focus next # bind "²" (²) to switch the input focus to the next region -bindkey œ focus next # bind "œ" (²) to switch the input focus to the next region -bindkey ^[Od prev # change window with ctrl-left -bindkey ^[Oc next # change window with ctrl-right - -# Split managing -bind V split -v -bind S split -bind o only -bind r remove - -bind R eval "source /home/z3bra/.screenrc" "echo '.screenrc reloaded !'" - -# Remove some stupid / dangerous key bindings -bind ^k -bind L -bind ^\ - -# Make them better -bind I login on -bind O login off -bind } history - -# vi-style keybindings -bind j focus down -bind k focus up -bind h focus left -bind l focus right - -bindkey ^j focus down -bindkey ^k focus up -bindkey ^h focus left -bindkey ^l focus right - -bind = resize = -bind > resize -h +4 -bind < resize -h -4 -bind + resize -v +2 -bind - resize -v -2 -bind _ resize max - -bind w focus next - -bind s split - -bind : colon # screen's default anyway... - -# ------------------------------------------------------------------------------ -# TERMINAL SETTINGS -# ------------------------------------------------------------------------------ - -# turn sending of screen messages to hardstatus off -# hardstatus on -# Set the hardstatus prop on gui terms to set the titlebar/icon title -termcapinfo xterm*|rxvt*|kterm*|Eterm* hs:ts=\E]0;:fs=\007:ds=\E]0;\007 - -# clear screen after editing a file with console based editor -altscreen on - -# always display the last line status bar -caption never -hardstatus alwayslastline - -# set these terminals up to be 'optimal' instead of vt100 -termcapinfo xterm*|linux*|rxvt* OP - -# Change the xterm initialization string from is2=\E[!p\E[?3;4l\E[4l\E> -# (This fixes the "Aborted because of window size change" konsole symptoms found -# in bug #134198) -termcapinfo xterm 'is=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;4;6l' - -# Use 256 colors from rxvt terminal -terminfo rxvt-unicode 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm' - -# Enable non-blocking mode to better cope with flaky ssh connections. -defnonblock 5 - - -# Bars -caption string "%{= Kw}%?%F%{=b cW}%? %f*%t %=%?%F.: current :.%? %= .:%F%n %t " -hardstatus string "%{b k} %= %{=b K} %-Lw%?%F%{=b W}%n* %t%?%{=b K}%+Lw %= %{=b Y} %d-%m %{=b w}%c %-10=" diff --git a/xbindkeysrc b/xbindkeysrc @@ -1,71 +0,0 @@ -# -- Application launchers ---------------------------------- {{{ -- -"urxvt" - Mod4 + Return -# -"dwb" - Mod4 + w -# -"~/bin/menu.sh" - Menu -# ----------------------------------------------------------- }}} -- - -# -- Volume management -------------------------------------- {{{ -- -"amixer set Master 5%+ unmute" - XF86AudioRaiseVolume - -"amixer set Master 5%- unmute" - XF86AudioLowerVolume - -"amixer set Master toggle" - XF86AudioMute - -"~/bin/popup volumebar" - XF86AudioRaiseVolume - -"~/bin/popup volumebar" - XF86AudioLowerVolume - -"~/bin/popup volumebar" - XF86AudioMute -# ----------------------------------------------------------- }}} -- - -# -- Gamma management --------------------------------------- {{{ -- -"~/bin/gamma.sh up 0.25" - Control + Prior - -"~/bin/gamma.sh down 0.25" - Control + Next - -"~/bin/gamma.sh reset" - Control + Home -# ----------------------------------------------------------- }}} -- - -# -- mpc -h gavroche remote control ------------------------------------- {{{ -- -"mpc -h gavroche toggle" - XF86AudioPlay - -"mpc -h gavroche stop" - XF86AudioStop - -"mpc -h gavroche prev" - XF86AudioPrev - -"mpc -h gavroche next" - XF86AudioNext - -"mpc -h gavroche volume +10" - control + XF86AudioRaiseVolume - -"mpc -h gavroche volume -10" - control + XF86AudioLowerVolume - -"mpc -h gavroche pause" - XF86AudioMute -# ----------------------------------------------------------- }}} -- - -# -- Desktop control ---------------------------------------- {{{ -- -"xtrlock" - control + mod1 + l -# ----------------------------------------------------------- }}} -- - -# vim: set foldmethod=marker syntax=conf: diff --git a/zshrc b/zshrc @@ -1,169 +0,0 @@ -## CONFIGURATION FILE FOR Z SHELL :: ENVIRONMENT {{{ - -# Improve the PATH -## }}} - -## CONFIGURATION FILE FOR Z SHELL :: MAIN {{{ - -# enable zsh completion menu -autoload -U compinit && compinit - -# enable coloring -autoload -U colors && colors - -# set the prompt -PROMPT=" -%{$fg_bold[yellow]%} » " -#RPROMPT="%{$fg[black]%}%M:%{$fg_bold[yellow]%}%~%{$reset_color%} " -RPROMPT="%{$fg[red]%}%(? ━)%{$reset_color%}" - -#[[ -z $TMUX ]] && [[ $TERM != "screen-256color" ]] && exec tmux - -# vi-like key bindings -bindkey -v - -## }}} - -## CONFIGURATION FILE FOR Z SHELL :: ALIASES {{{ - -## Terminal -alias quit='exit' -alias c='clear' -alias s='sudo' - -# Add a 'proctection' on rm | mv | cp -alias rm='rm -I' -alias cp='cp -vi' -alias mv='mv -i' - -# Alias to avoid some 'RAAAAAAAAAH !!' -alias :q='quit' -alias fu='sudo $(fc -n -l -1)' - -# Network/System monitoring -alias netlist='lsof -i -P | grep LISTEN' # show active network listener - -# Pipes & more -alias -g BG='& exit' -alias -g N='> /dev/null' -alias -g L='| less' -alias -g M='| more' -alias -g G='| grep' -alias -g V='| vim -' -alias -g S='| curl -F "sprunge=<-" http://sprunge.us' - -# Make 'ls' output colorfull -alias ls='ls --color=auto' - -alias grep='grep --color=auto' - -# some more ls aliases -alias ll='ls -alhF' -alias la='ls -A' -alias l='ls -CF' - -## Edition -alias v='vim' -alias sv='sudo vim' - -## ALSA -alias vol='alsamixer' - -# TMUX / DTACH -alias t='tmux' forces 256 colors -alias d='dtach -A ~/tmp/irssi.sk /usr/bin/irssi' - -# BTPD -alias btc="btcli -d ~/var/btp" - - -# HANDY RICKY SCRIPT -alias rick="curl -s -L 'http://bit.ly/10hA8iC' | bash" -alias rcommit="curl -s 'http://whatthecommit.com/index.txt'" - -## }}} - -## CONFIGURATION FILE FOR Z SHELL :: FUNCTIONS {{{ - -# make use of systemcl more friendly -function start() { sudo systemctl start $@; } -function stop() { sudo systemctl stop $@; } -function restart() { sudo systemctl restart $@; } -function enable() { sudo systemctl enable $@; } -function disable() { sudo systemctl disable $@; } -function status() { sudo systemctl status $@; } - -# easier extraction -extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1;; - *.tar.gz) tar xvzf $1;; - *.bz2) bunzip2 $1;; - *.rar) unrar x $1;; - *.gz) gunzip $1;; - *.tar) tar xvf $1;; - *.tbz2) tar xvjf $1;; - *.tgz) tar xvzf $1;; - *.zip) unzip $1;; - *.Z) uncompress $1;; - *.7z) 7za x $1;; - *) echo "'$1' cannot be extracted via >extract<" ;; - esac - else - echo "'$1' is not a valid file" - fi -} - -gifify() { - if [[ -n "$1" && -n "$2" ]]; then - mkdir gif-tmp - ffmpeg -i $1 -r 1 -f image2 gif-tmp/%05d.jpg - convert -delay 100 gif-tmp/*.jpg $2 - rm -rf gif-tmp/ - else - echo "proper usage: gif-ify <input_movie.mov> <output_file.gif>" - echo "You DO need to include extensions." - fi -} - -rec() { - GEOM=$(xwininfo -root |grep geom|awk '{print $2}'|cut -d+ -f1) - OUTP=$1 - - test -z "$OUTP" && OUTP=out.webm - - ffmpeg -y -f x11grab -s $GEOM -r 25 -i :0.0 $OUTP -} - -# spawn a new main tmux session or attach to it if it exists -# t () { -# SESSION_NAME=$(hostname) -# -# tmux attach-session -t $SESSION_NAME -# -# if [ $? -eq 1 ]; then -# tmux new-session -s $SESSION_NAME -d -# tmux new-window -dk -c~ -n "IRC" -t $SESSION_NAME:0 irssi -# tmux new-window -c~ -n "MAIL" -t $SESSION_NAME:9 mutt -# tmux attach-session -t $SESSION_NAME -# fi -# } - -:h () { - vim +"h $1" +only +'map q ZQ' -} - -# auto-cd into a created directory -mcd () { - mkdir $@ && cd $_ -} - -# auto-ls after changing directory -cd () { - builtin cd $@ && ls -CF -} - -## }}} - -# vim: set tw=72 cc=73 ai ft=sh fdm=marker: