dot

packages and services management
Log | Files | Refs | README

commit 820c32bb69086e003fc2191a051c628197a880f5
parent 03e913799538d4b815223ca0a17553164a9220d8
Author: sshbio <jd@ssh.bio>
Date:   Sun, 21 Aug 2016 17:37:07 +0200

Riced dwm (a bit)

Diffstat:
Mbin/irc | 7+++++++
Mdoc/.cache/bkm | 160++++++++++++++++++++++++++++++++++++++++----------------------------------------
Mdwm/config.h | 40++++++++++++++++------------------------
Adwm/dwm-uselessgap-6.1.diff | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mex-vi/.exrc | 2+-
Mshell/.profile | 70+++++++++++++++++++++++++++++++++++++++++++++++-----------------------
Mvim/.vimrc | 3+--
7 files changed, 206 insertions(+), 130 deletions(-)

diff --git a/bin/irc b/bin/irc @@ -172,6 +172,13 @@ output() >> "$srv/$chan" ;; esac + + case "$trail" in + 'VERSION' ) + write "$srv" + "PRIVMSG $nick :VERSION nc and a script" + ;; + esac done } diff --git a/doc/.cache/bkm b/doc/.cache/bkm @@ -1,79 +1,79 @@ -BIOINFORMATICS Licence pro Vannes http://www.iutvannes.fr/licence-professionnelle-statistique-informatique-sante-morbihan -BIOLOGY Methodologies for C. elegans http://www.irsn.fr/EN/Research/Theses-post-docs/Theses/Defended-thesis/DEI/Documents/2014-These-Buisset-Goussen.pdf -BOOKS Library Genesis http://gen.lib.rus.ec -EMACS Emacs animations http://blog.josephwilk.net/art/emacs-animation.html -EMACS Fancy mail spliting http://sachachua.com/blog/2008/05/emacs-gnus-organize-your-mail -EMACS French emacs blog http://foudil.fr/blog -EMACS Gnus setup http://codingquark.com/setting-up-gnus-in-emacs -EMACS Hacking definition http://nic.ferrier.me.uk -EMACS Next emacs hangout http://sachachua.com/blog/tag/emacs-hangout -EMACS Org-mode pretty outlines http://clubctrl.com/org/prog/howto.html -EMACS Sacha chua's emacs.d http://pages.sachachua.com/.emacs.d/Sacha.html -EQUIPEMENT Self-locking knots with 2 carabiners http://blcanyon2.free.fr/noeuds/noeuds_autobloquants.html -FOLKS 2f30 http://2f30.org -FOLKS 6c37 http://6c37.org -FOLKS arcetera https://arcetera.moe/git/bin/files.html -FOLKS c2 http://c2.com/cgi/wiki?PdfSucks -FOLKS cat-v http://cat-v.org -FOLKS dcat https://github.com/dcat -FOLKS fancy theme https://pi314.github.io -FOLKS hiltjo http://git.codemadness.nl -FOLKS iotek https://iotek.org/src -FOLKS rcr - rirc author http://rcr.io -FOLKS suckless.org http://suckless.org -FOLKS venam http://venam.nixers.net/blog -FOLKS wildefyr http://wildefyr.net -FOLKS xero http://xero.nu -FOLKS ypnose http://ywstd.fr -FOLKS z3bra http://z3bra.org -FOLKS zx2c4 https://www.zx2c4.com/ -FONTS Old computer fonts that xero likes http://int10h.org/ -LINUX Console character set https://en.wikipedia.org/wiki/Code_page_437 -LINUX Crux iso http://ftp.morpheus.net/pub/linux/crux/crux-3.2/iso -LINUX POSIX standard http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html -LINUX systemd situation overview http://uselessd.darknedgy.net/ProSystemdAntiSystemd/ -LINUX Void Linux http://www.voidlinux.eu -MATHS How to read a math book http://math.stackexchange.com/a/279125 -MOVIES Ergo Proxy http://www.imdb.com/title/tt0791205/ -MOVIES Ex_Machina http://www.imdb.com/title/tt0470752/ -MOVIES Ghost in the shell 2 http://www.imdb.com/title/tt1260502/ -MOVIES Ghost in the shell Arise http://www.funimation.com/shows/ghost-in-the-shell-arise/home -MOVIES Morgan http://www.imdb.com/title/tt4520364/ -MOVIES Serei no moribito https://en.wikipedia.org/wiki/Moribito:_Guardian_of_the_Spirit -MOVIES Who Am I - No System is safe http://www.imdb.com/title/tt3042408/ -MUSIC Algorithmic music http://countercomplex.blogspot.fr/2011/10/algorithmic-symphonies-from-one-line-of.html -NEWS Amnesty https://en.m.wikipedia.org/wiki/Criticism_of_Amnesty_International -NEWS Confusion http://mashable.com/2015/11/16/canadian-sikh-veerender-jubbal-photoshop -NEWS US drone strikes to pakistan school http://tribune.com.pk/story/229844/the-day-69-children-died -PRIVACY Tor, a NSA company https://pando.com:443/2014/07/16/tor-spooks/ -PROGRAMMING Clojure intro for pythonistas http://www.pixelmonkey.org/2014/11/02/clojonic -PROGRAMMING Clojure-java interaction http://stackoverflow.com/questions/5821286/how-can-i-get-the-methods-of-a-java-class-from-clojure -PROGRAMMING Comparing programming languages http://hyperpolyglot.org -PROGRAMMING CSS borders http://cssnerd.com/2012/01/07/overlapping-transparent-divs-with-one-border -PROGRAMMING Learn C programming http://c.learncodethehardway.org/book/ -PROGRAMMING Regular expression comparisons http://www.greenend.org.uk/rjk/tech/regexp.html -PROGRAMMING Rosetta Code http://rosettacode.org -RICING blue & clean tmux.conf http://i.imgur.com/s1xvGeJ.png -RICING Colour palettes http://www.xcolors.net -RICING Many themes ideas http://daylerees.github.io -SOFTWARE C programming whispers https://www.youtube.com/watch?v=v_HP6zwhT1A&index=2&list=PLPt8EM4KxGEVdozTFQ_taOdS6OFlNU7ki -SOFTWARE icat https://github.com/atextor/icat -SOFTWARE jo https://github.com/jpmens/jo -SOFTWARE mail http://blog.z3bra.org/2013/11/plain-old-mails.html -SOFTWARE ratox http://ratox.2f30.org -SOFTWARE Tox secure chat https://tox.chat -STATISTICS Types de tests statistiques http://marne.u707.jussieu.fr/biostatgv/?module=tests -STUDIES big data http://www.huffingtonpost.fr/claude-huriet/sante-big-data_b_9869208.html -SYSTEMS Apple ][ emulator in javascript http://skn.noip.me/pdp11/pdp11.html -SYSTEMS UNIX emulator in javascript http://skn.noip.me/pdp11/pdp11.html -TEXT ASCII math http://math.stackexchange.com/q/149303 -TOOLBOX asmutils http://asm.sourceforge.net/asmutils.html -TOOLBOX BSD http://openbsd.net -TOOLBOX busybox http://www.busybox.net -TOOLBOX echo.c implementations https://gist.github.com/dchest/1091803 -TOOLBOX heirloom http://heirloom.sourceforge.net -TOOLBOX iu-coreutils https://github.com/joshhartigan/iu-coreutils -TOOLBOX sbase/ubase http://core.suckless.org -TOOLBOX toybox http://www.landley.net/toybox -VIM Vanilla vim tricks https://www.reddit.com/r/vim/comments/4gjbqn/what_tricks_do_you_use_instead_of_popular_plugins/ -VIM Visual + macros https://github.com/stoeffel/.dotfiles/blob/master/vim/visual-at.vimPROGRAMMING C programming book http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdf- \ No newline at end of file +BIOINFORMATICS Licence pro Vannes http://www.iutvannes.fr/licence-professionnelle-statistique-informatique-sante-morbihan +BIOLOGY Methodologies for C. elegans http://www.irsn.fr/EN/Research/Theses-post-docs/Theses/Defended-thesis/DEI/Documents/2014-These-Buisset-Goussen.pdf +BOOKS Library Genesis http://gen.lib.rus.ec +EMACS Emacs animations http://blog.josephwilk.net/art/emacs-animation.html +EMACS Fancy mail spliting http://sachachua.com/blog/2008/05/emacs-gnus-organize-your-mail +EMACS French emacs blog http://foudil.fr/blog +EMACS Gnus setup http://codingquark.com/setting-up-gnus-in-emacs +EMACS Hacking definition http://nic.ferrier.me.uk +EMACS Next emacs hangout http://sachachua.com/blog/tag/emacs-hangout +EMACS Org-mode pretty outlines http://clubctrl.com/org/prog/howto.html +EMACS Sacha chua's emacs.d http://pages.sachachua.com/.emacs.d/Sacha.html +EQUIPEMENT Self-locking knots with 2 carabiners http://blcanyon2.free.fr/noeuds/noeuds_autobloquants.html +FOLKS 2f30 http://2f30.org +FOLKS 6c37 http://6c37.org +FOLKS arcetera https://arcetera.moe/git/bin/files.html +FOLKS c2 http://c2.com/cgi/wiki?PdfSucks +FOLKS cat-v http://cat-v.org +FOLKS dcat https://github.com/dcat +FOLKS fancy theme https://pi314.github.io +FOLKS hiltjo http://git.codemadness.nl +FOLKS iotek https://iotek.org/src +FOLKS rcr - rirc author http://rcr.io +FOLKS suckless.org http://suckless.org +FOLKS venam http://venam.nixers.net/blog +FOLKS wildefyr http://wildefyr.net +FOLKS xero http://xero.nu +FOLKS ypnose http://ywstd.fr +FOLKS z3bra http://z3bra.org +FOLKS zx2c4 https://www.zx2c4.com/ +FONTS Old computer fonts that xero likes http://int10h.org/ +LINUX Console character set https://en.wikipedia.org/wiki/Code_page_437 +LINUX Crux iso http://ftp.morpheus.net/pub/linux/crux/crux-3.2/iso +LINUX POSIX standard http://pubs.opengroup.org/onlinepubs/9699919799/utilities/contents.html +LINUX systemd situation overview http://uselessd.darknedgy.net/ProSystemdAntiSystemd/ +LINUX Void Linux http://www.voidlinux.eu +MATHS How to read a math book http://math.stackexchange.com/a/279125 +MOVIES Ergo Proxy http://www.imdb.com/title/tt0791205/ +MOVIES Ex_Machina http://www.imdb.com/title/tt0470752/ +MOVIES Ghost in the shell 2 http://www.imdb.com/title/tt1260502/ +MOVIES Ghost in the shell Arise http://www.funimation.com/shows/ghost-in-the-shell-arise/home +MOVIES Morgan http://www.imdb.com/title/tt4520364/ +MOVIES Serei no moribito https://en.wikipedia.org/wiki/Moribito:_Guardian_of_the_Spirit +MOVIES Who Am I - No System is safe http://www.imdb.com/title/tt3042408/ +MUSIC Algorithmic music http://countercomplex.blogspot.fr/2011/10/algorithmic-symphonies-from-one-line-of.html +NEWS Amnesty https://en.m.wikipedia.org/wiki/Criticism_of_Amnesty_International +NEWS Confusion http://mashable.com/2015/11/16/canadian-sikh-veerender-jubbal-photoshop +NEWS US drone strikes to pakistan school http://tribune.com.pk/story/229844/the-day-69-children-died +PRIVACY Tor, a NSA company https://pando.com:443/2014/07/16/tor-spooks/ +PROGRAMMING Clojure intro for pythonistas http://www.pixelmonkey.org/2014/11/02/clojonic +PROGRAMMING Clojure-java interaction http://stackoverflow.com/questions/5821286/how-can-i-get-the-methods-of-a-java-class-from-clojure +PROGRAMMING Comparing programming languages http://hyperpolyglot.org +PROGRAMMING CSS borders http://cssnerd.com/2012/01/07/overlapping-transparent-divs-with-one-border +PROGRAMMING Learn C programming http://c.learncodethehardway.org/book/ +PROGRAMMING Regular expression comparisons http://www.greenend.org.uk/rjk/tech/regexp.html +PROGRAMMING Rosetta Code http://rosettacode.org +RICING blue & clean tmux.conf http://i.imgur.com/s1xvGeJ.png +RICING Colour palettes http://www.xcolors.net +RICING Many themes ideas http://daylerees.github.io +SOFTWARE C programming whispers https://www.youtube.com/watch?v=v_HP6zwhT1A&index=2&list=PLPt8EM4KxGEVdozTFQ_taOdS6OFlNU7ki +SOFTWARE icat https://github.com/atextor/icat +SOFTWARE jo https://github.com/jpmens/jo +SOFTWARE mail http://blog.z3bra.org/2013/11/plain-old-mails.html +SOFTWARE ratox http://ratox.2f30.org +SOFTWARE Tox secure chat https://tox.chat +STATISTICS Types de tests statistiques http://marne.u707.jussieu.fr/biostatgv/?module=tests +STUDIES big data http://www.huffingtonpost.fr/claude-huriet/sante-big-data_b_9869208.html +SYSTEMS Apple ][ emulator in javascript http://skn.noip.me/pdp11/pdp11.html +SYSTEMS UNIX emulator in javascript http://skn.noip.me/pdp11/pdp11.html +TEXT ASCII math http://math.stackexchange.com/q/149303 +TOOLBOX asmutils http://asm.sourceforge.net/asmutils.html +TOOLBOX BSD http://openbsd.net +TOOLBOX busybox http://www.busybox.net +TOOLBOX echo.c implementations https://gist.github.com/dchest/1091803 +TOOLBOX heirloom http://heirloom.sourceforge.net +TOOLBOX iu-coreutils https://github.com/joshhartigan/iu-coreutils +TOOLBOX sbase/ubase http://core.suckless.org +TOOLBOX toybox http://www.landley.net/toybox +VIM Vanilla vim tricks https://www.reddit.com/r/vim/comments/4gjbqn/what_tricks_do_you_use_instead_of_popular_plugins/ +VIM Visual + macros https://github.com/stoeffel/.dotfiles/blob/master/vim/visual-at.vimPROGRAMMING C programming book http://icube-icps.unistra.fr/img_auth.php/d/db/ModernC.pdfPROGRAMMING API of many websites. https://temboo.com/library/Library/Google/Gmailv2/LINUX Screenshots from developers & Unix people (2002) https://anders.unix.se/2015/10/28/screenshots-from-developers--unix-people-2002/+ \ No newline at end of file diff --git a/dwm/config.h b/dwm/config.h @@ -1,17 +1,18 @@ - /* See LICENSE file for copyright and license details. */ +/* See LICENSE file for copyright and license details. */ - /* appearance */ - static const char *fonts[] = { - "monospace:pixelsize=13:antialias=false" - }; - static const char dmenufont[] = "monospace:pixelsize=13:antialias=false"; -static const char normbordercolor[] = "#444444"; +/* appearance */ +static const char *fonts[] = { + "monospace:pixelsize=13:antialias=false" +}; +static const char dmenufont[] = "monospace:pixelsize=13:antialias=false"; +static const char normbordercolor[] = "#999999"; static const char normbgcolor[] = "#000000"; -static const char normfgcolor[] = "#bbbbbb"; -static const char selbordercolor[] = "#ff6666"; -static const char selbgcolor[] = "#ff6666"; -static const char selfgcolor[] = "#eeeeee"; +static const char normfgcolor[] = "#999999"; +static const char selbordercolor[] = "#ffffff"; +static const char selbgcolor[] = "#000000"; +static const char selfgcolor[] = "#ffffff"; static const unsigned int borderpx = 1; /* border pixel of windows */ +static const unsigned int gappx = 4; /* gap pixel between windows */ static const unsigned int snap = 32; /* snap pixel */ static const unsigned int systraypinning = 0; /* 0: sloppy systray follows selected monitor, >0: pin systray to monitor X */ static const unsigned int systrayspacing = 2; /* systray spacing */ @@ -21,7 +22,7 @@ static const int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ /* tagging */ -static const char *tags[] = { ">__", "WWW", "DOC", "IMG", "ALT" }; +static const char *tags[] = { "1", "2", "3", "4", "5" }; static const Rule rules[] = { /* xprop(1): @@ -30,15 +31,6 @@ static const Rule rules[] = { */ /* class instance title tags mask isfloating monitor */ { "st-256color", NULL, NULL, 1, 0, -1 }, - { "chromium", NULL, NULL, 1 << 1, 0, -1 }, - { "Iceweasel", NULL, NULL, 1 << 1, 0, -1 }, - { "Firefox", NULL, NULL, 1 << 1, 0, -1 }, - { "Surf", NULL, NULL, 1 << 1, 0, -1 }, - { "Zathura", NULL, NULL, 1 << 2, 0, -1 }, - { NULL, "libreoffice", NULL, 1 << 2, 0, -1 }, - { "Gimp", NULL, NULL, 1 << 3, 0, -1 }, - { "Blender", NULL, NULL, 1 << 3, 0, -1 }, - { "fontforge", NULL, NULL, 1 << 3, 0, -1 }, }; /* layout(s) */ @@ -48,9 +40,9 @@ static const int resizehints = 0; /* 1 means respect size hints in tiled resi static const Layout layouts[] = { /* symbol arrange function */ - { "├┤│", tile }, /* first entry is default */ - { "│□│", NULL }, /* no layout function means floating behavior */ - { "│ │", monocle }, + { "[t]", tile }, /* first entry is default */ + { "[f]", NULL }, /* no layout function means floating behavior */ + { "[m]", monocle }, }; /* key definitions */ diff --git a/dwm/dwm-uselessgap-6.1.diff b/dwm/dwm-uselessgap-6.1.diff @@ -0,0 +1,54 @@ +--- dwm/dwm.c.orig 2015-11-22 13:26:16.664650238 -0700 ++++ dwm/dwm.c 2015-11-22 13:25:57.407984351 -0700 +@@ -52,8 +52,8 @@ + #define ISVISIBLE(C) ((C->tags & C->mon->tagset[C->mon->seltags])) + #define LENGTH(X) (sizeof X / sizeof X[0]) + #define MOUSEMASK (BUTTONMASK|PointerMotionMask) +-#define WIDTH(X) ((X)->w + 2 * (X)->bw) +-#define HEIGHT(X) ((X)->h + 2 * (X)->bw) ++#define WIDTH(X) ((X)->w + 2 * (X)->bw + gappx) ++#define HEIGHT(X) ((X)->h + 2 * (X)->bw + gappx) + #define TAGMASK ((1 << LENGTH(tags)) - 1) + #define TEXTW(X) (drw_text(drw, 0, 0, 0, 0, (X), 0) + drw->fonts[0]->h) + +@@ -1293,12 +1293,36 @@ void + resizeclient(Client *c, int x, int y, int w, int h) + { + XWindowChanges wc; ++ unsigned int n; ++ unsigned int gapoffset; ++ unsigned int gapincr; ++ Client *nbc; + +- c->oldx = c->x; c->x = wc.x = x; +- c->oldy = c->y; c->y = wc.y = y; +- c->oldw = c->w; c->w = wc.width = w; +- c->oldh = c->h; c->h = wc.height = h; + wc.border_width = c->bw; ++ ++ /* Get number of clients for the selected monitor */ ++ for (n = 0, nbc = nexttiled(selmon->clients); nbc; nbc = nexttiled(nbc->next), n++); ++ ++ /* Do nothing if layout is floating */ ++ if (c->isfloating || selmon->lt[selmon->sellt]->arrange == NULL) { ++ gapincr = gapoffset = 0; ++ } else { ++ /* Remove border and gap if layout is monocle or only one client */ ++ if (selmon->lt[selmon->sellt]->arrange == monocle || n == 1) { ++ gapoffset = 0; ++ gapincr = -2 * borderpx; ++ wc.border_width = 0; ++ } else { ++ gapoffset = gappx; ++ gapincr = 2 * gappx; ++ } ++ } ++ ++ c->oldx = c->x; c->x = wc.x = x + gapoffset; ++ c->oldy = c->y; c->y = wc.y = y + gapoffset; ++ c->oldw = c->w; c->w = wc.width = w - gapincr; ++ c->oldh = c->h; c->h = wc.height = h - gapincr; ++ + XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc); + configure(c); + XSync(dpy, False); diff --git a/ex-vi/.exrc b/ex-vi/.exrc @@ -19,7 +19,7 @@ set errorbells flash " KEYBINDINGS "------------------------------------------------------------------------------- " -map g 1G +map g 1G " " " ABBREVIATIONS diff --git a/shell/.profile b/shell/.profile @@ -68,6 +68,7 @@ alias lla='l -Alh' alias p='pwd' alias weather='curl -4 wttr.in' alias lines='find . -name "*.[ch]" | xargs wc -l' +alias myip='curl icanhazip.com' alias c='clear' alias a='attach' alias r='run' @@ -79,14 +80,16 @@ alias v="run $VISUAL" ps1() { - local code="$?" size="$(stty size)" color=41 - [ "$code" -eq 0 ] && code='' color=45 - local abduco="$(($(abduco | wc -l) - 1))" + local code="$?" size="$(stty size)" color='1;31' + [ "$code" -eq 0 ] && code='' color='1' + local abduco="$(($(abduco 2>/dev/null | wc -l) - 1))" local pwd="$PWD" date="$(date +'%H:%M')" [ -z "${PWD##$HOME**}" ] && pwd="~${PWD#$HOME}" + local print='_________________________________________________________' + printf '%s\n' "$print$print$print$print$print" | cut -c -"${size#* }" # Fill with color - printf '\n\033[1;%sm\033[K' "$color" + printf '\033[%sm\033[K' "$color" # PWD with $HOME replaced by ~ printf ' %s' "$pwd" @@ -105,11 +108,32 @@ ps1() printf "%s$ " "${abduco#0}" } +d() +{ + find "${1-.}" -type d ! -path '*/.git/*' | vis-menu -l 10 +} + x() { find "${1-.}" -type f ! -path '*/.git/*' | vis-menu -l 10 } +c() +{ + [ $# -eq 0 ] && cd "$(d)" || cd "$1" +} + +h() +{ + local cmd + + for field in $@ + do cmd="$cmd $field" + done + + $cmd 2>&1 | more +} + light() { sudo printf '%s\n' "$1" | sudo tee "$( @@ -122,25 +146,25 @@ mnt() # Mount /dev/sdb1 or $1 in /mnt sudo mount -o uid=$USER -o rw ${1-/dev/sdb1} ${2-/mnt} } -extract() -{ - 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 ) 7z x "$1" ;; - *.xz ) xz -d "$1" ;; - *.deb ) ar vx "$1" ;; - * ) printf 'extract: Unknown archive type\n';; - esac -} + extract() + { + 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 ) 7z x "$1" ;; + *.xz ) xz -d "$1" ;; + *.deb ) ar vx "$1" ;; + * ) printf 'extract: Unknown archive type\n';; + esac + } sanitize() # Remove spaces and other nasty characters from $1 recursively { diff --git a/vim/.vimrc b/vim/.vimrc @@ -12,8 +12,7 @@ set nocompatible " Appearance -colorscheme default -set list listchars=tab:\:\ ,trail:_,extends:>,precedes:<,nbsp:_ +set list listchars=tab:\:\ ,space:.,trail:.,extends:>,precedes:<,nbsp:_,eol:$ set fillchars=vert:\|,fold:- " Interface