dot

packages and services management
Log | Files | Refs | README

commit 258c3e37079ebac54c08c50bed9cf20b4cd1c0d4
parent 3c4c732466a4bd02afedcf099a541a851c7fbd9c
Author: josuah <mail@josuah.net>
Date:   Mon, 12 Dec 2016 14:24:54 +0000

cleanup

Diffstat:
A.config/build/busybox | 9+++++++++
M.config/build/dvtm | 2+-
D.config/build/fzf | 8--------
D.config/build/fzy | 3---
D.config/build/iirc | 3---
R.config/build/triode -> .config/build/iode | 0
D.config/build/less | 3---
M.config/build/libncurses | 4++--
A.config/build/libtool | 3+++
M.config/build/mandoc | 12++++++------
M.config/build/nafe | 2+-
M.config/build/retawq | 2+-
M.config/build/tmux | 3++-
D.config/build/unagi | 3---
M.config/build/vim | 3++-
D.config/build/zsh | 3---
M.config/dwm/config.h | 2--
D.config/dwm/dwm-uselessgap-6.1.diff | 54------------------------------------------------------
M.config/git/projects | 2+-
M.local/bin/build | 8++++----
M.profile | 10+++-------
21 files changed, 35 insertions(+), 104 deletions(-)

diff --git a/.config/build/busybox b/.config/build/busybox @@ -0,0 +1,9 @@ +# Multitool for the shell + +tar=https://busybox.net/downloads/busybox-1.25.1.tar.bz2 + +build() +{ + make defconfig + make CONFIG_PREFIX="$PREFIX" install +} diff --git a/.config/build/dvtm b/.config/build/dvtm @@ -22,7 +22,7 @@ build() done < config.mk )" > config.mk - make && make PREFIX=$PREFIX install clean + make && make PREFIX="$PREFIX" install clean tic -s dvtm.info } diff --git a/.config/build/fzf b/.config/build/fzf @@ -1,8 +0,0 @@ -# FuZzy Finder for the command line - -tar=http://github.com/junegunn/fzf/archive/master.tar.gz - -build() -{ - ./install -} diff --git a/.config/build/fzy b/.config/build/fzy @@ -1,3 +0,0 @@ -# A better fuzzy finder - -tar=https://github.com/jhawthorn/fzy/archive/master.tar.gz diff --git a/.config/build/iirc b/.config/build/iirc @@ -1,3 +0,0 @@ -# ii wrapper script - -tar=http://github.com/josuah/iirc/archive/master.tar.gz diff --git a/.config/build/triode b/.config/build/iode diff --git a/.config/build/less b/.config/build/less @@ -1,3 +0,0 @@ -# The great GNU Less - -tar=http://www.greenwoodsoftware.com/less/less-481.tar.gz diff --git a/.config/build/libncurses b/.config/build/libncurses @@ -1,3 +1,3 @@ -# The almighty ncurses library +# System V curses library -tar=http://invisible-island.net/datafiles/release/ncurses.tar.gz +tar=http://ftp.gnu.org/gnu/ncurses/ncurses-6.0.tar.gz diff --git a/.config/build/libtool b/.config/build/libtool @@ -0,0 +1,3 @@ +# The GNU Portable Library Tool + +tar=http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz diff --git a/.config/build/mandoc b/.config/build/mandoc @@ -5,12 +5,12 @@ tar=http://mdocml.bsd.lv/snapshots/mdocml.tar.gz build() { tee configure.local << EOF -PREFIX="$LOCAL" -BINDIR="${PREFIX}/bin" -SBINDIR="${PREFIX}/sbin" -INCLUDEDIR="${PREFIX}/include/mandoc" -LIBDIR="${PREFIX}/lib/mandoc" -MANDIR="${PREFIX}/man" +PREFIX="$PREFIX" +BINDIR="$PREFIX/bin" +SBINDIR="$PREFIX/bin" +INCLUDEDIR="$PREFIX/include/mandoc" +LIBDIR="$PREFIX/lib/mandoc" +MANDIR="$PREFIX/man" BUILD_DB=1 EOF diff --git a/.config/build/nafe b/.config/build/nafe @@ -4,5 +4,5 @@ tar=http://sourceforge.net/projects/nafe/files/nafe/nafe-0.1/nafe-0.1.tar.gz build() { - make && cp psf2txt txt2psf $PREFIX/bin/ + make && cp psf2txt txt2psf "$PREFIX/bin/" } diff --git a/.config/build/retawq b/.config/build/retawq @@ -6,5 +6,5 @@ build() { ./configure make - cp retawq $PREFIX/bin/retawq + cp retawq "$PREFIX/bin/" } diff --git a/.config/build/tmux b/.config/build/tmux @@ -4,7 +4,8 @@ tar=http://github.com/tmux/tmux/releases/download/2.3/tmux-2.3.tar.gz build() { - ./configure --prefix="$PREFIX" \ + ./configure \ + --prefix="$PREFIX" \ CFLAGS="-I$HOME/.local/include" \ LDFLAGS="-L$HOME/.local/lib" make install diff --git a/.config/build/unagi b/.config/build/unagi @@ -1,3 +0,0 @@ -# Unagi Compositing Manager - -tar=http://projects.mini-dweeb.org/attachments/download/114/unagi-0.3.4.tar.gz diff --git a/.config/build/vim b/.config/build/vim @@ -4,7 +4,8 @@ tar=https://github.com/vim/vim/archive/master.tar.gz build() { - ./configure --prefix="$PREFIX" \ + ./configure \ + --prefix="$PREFIX" \ --with-features=normal \ --enable-multibyte \ --disable-gui \ diff --git a/.config/build/zsh b/.config/build/zsh @@ -1,3 +0,0 @@ -# Z shell, highly interactive unix shell - -tar=http://fourdots.com/mirror/zsh/zsh-5.2.tar.gz diff --git a/.config/dwm/config.h b/.config/dwm/config.h @@ -12,7 +12,6 @@ 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 int showbar = 1; /* 0 means no bar */ static const int topbar = 1; /* 0 means bottom bar */ @@ -118,4 +117,3 @@ static Button buttons[] = { { ClkTagBar, MODKEY, Button1, tag, {0} }, { ClkTagBar, MODKEY, Button3, toggletag, {0} }, }; - diff --git a/.config/dwm/dwm-uselessgap-6.1.diff b/.config/dwm/dwm-uselessgap-6.1.diff @@ -1,54 +0,0 @@ ---- 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/.config/git/projects b/.config/git/projects @@ -1,5 +1,5 @@ ssh://repo.or.cz/iomenu.git -http://github.com/josuah/editor +http://github.com/josuah/iode http://github.com/josuah/josuah.github.io http://github.com/josuah/cgr http://github.com/josuah/barkdown diff --git a/.local/bin/build b/.local/bin/build @@ -63,11 +63,11 @@ build() do [ -h "$file" -o -f "$file" ] && cp -f "$file" . done + [ -f ./autogen.sh ] && ./autogen.sh [ -f ./configure ] && ./configure --prefix="$PREFIX" - make && make prefix="$PREFIX" PREFIX="$PREFIX" install clean - return $? + make && make PREFIX="$PREFIX" install clean } @@ -81,9 +81,9 @@ compile() info "Installing $name" - cd "$PREFIX" && mkdir -p bin doc etc include lib libexec man share + cd "$PREFIX" && mkdir -p bin doc etc include lib libexec share man cd src && build "$name" - cd "$PREFIX" && rmdir -p --ignore-fail-on-non-empty * + cd "$PREFIX" && rmdir -p * 2> /dev/null } diff --git a/.profile b/.profile @@ -26,7 +26,7 @@ export EDITOR="vim" export ALTERNATE_EDITOR="vi" export VISUAL="$EDITOR" export FCEDIT="$EDITOR" -export PAGER="triode" +export PAGER="iode" export MANPAGER="$PAGER" export DVTM_EDITOR="$PAGER" @@ -36,12 +36,8 @@ export PS1='$( # cursor shape printf "\033[?6c" - # status line - printf "\033[K\n\033[K%$(stty size | cut -d " " -f 2)s\r%s\n\033[K" \ - "$(status)" "$(status path "$PWD" git "$PWD")" - - # prompt character - printf " \033[1;3%sm>\033[0m " "$color" + # status + printf "\n> " )' export PS2=' > ' export PS3=' > '