dot

packages and services management
Log | Files | Refs | README

commit 3f1fdcc17d3fba9454f53945b09c3b10dd97cef4
parent 99ecbd16f59ef2e9cf389ab3bb80dfaff0fb30fe
Author: josuah <mail@josuah.net>
Date:   Thu, 15 Dec 2016 22:11:04 +0000

Switched to 2wm

Diffstat:
A.config/2wm/config.h | 35+++++++++++++++++++++++++++++++++++
A.local/share/build/2wm | 4++++
M.local/share/build/busybox | 5++++-
M.xinitrc | 2+-
MREADME | 19+++++++------------
5 files changed, 51 insertions(+), 14 deletions(-)

diff --git a/.config/2wm/config.h b/.config/2wm/config.h @@ -0,0 +1,35 @@ +/* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com> + * See LICENSE file for license details. + */ + +#define BORDERPX 0 +#define NORMCOLOR "#333" +#define SELCOLOR "#69c" + +#define SY 0 +#define SH DisplayHeight(dpy, screen) +#define MASTER 550 /* per thousand */ +#define MODKEY Mod4Mask +#define NMASTER 1 /* clients in master area */ +#define SNAP 40 /* pixel */ + +#define KEYS static Key key[] = { \ + /* modifier key function argument */ \ + { MODKEY, XK_Return, spawn, { .cmd = "exec st" } }, \ + { MODKEY, XK_space, spawn, { .cmd = "exec dmenu_run" } }, \ + { MODKEY, XK_a, attach, { 0 } }, \ + { MODKEY, XK_d, detach, { 0 } }, \ + { MODKEY, XK_j, focusnext, { 0 } }, \ + { MODKEY, XK_k, focusprev, { 0 } }, \ + { MODKEY|ShiftMask, XK_Return, zoom, { 0 } }, \ + { MODKEY, XK_h, resizemaster, { .i = -15 } }, \ + { MODKEY, XK_l, resizemaster, { .i = 15 } }, \ + { MODKEY, XK_i, incnmaster, { .i = 1 } }, \ + { MODKEY, XK_r, incnmaster, { .i = -1 } }, \ + { MODKEY, XK_BackSpace, killclient, { 0 } }, \ + { MODKEY, XK_Tab, toggleview, { 0 } }, \ + { MODKEY|ShiftMask, XK_space, togglefloat, { 0 } }, \ + { MODKEY, XK_Escape, quit, { 0 } }, \ +}; + +#define FLOATS static char *floats[] = { "MPlayer.*", NULL }; diff --git a/.local/share/build/2wm b/.local/share/build/2wm @@ -0,0 +1,3 @@ +# Dual window manager with only two workspaces + +tar=http://git.suckless.org/2wm/snapshot/2wm-92597defeea575fd3228ff0d2b0b68d6707c4713.tar.gz+ \ No newline at end of file diff --git a/.local/share/build/busybox b/.local/share/build/busybox @@ -5,5 +5,8 @@ tar=https://busybox.net/downloads/busybox-1.25.1.tar.bz2 build() { make defconfig - make CONFIG_PREFIX="$PREFIX" install + make CONFIG_PREFIX="$PREFIX" + + ./busybox --install "$LOCAL/bin" + ln -sf ./busybox "$LOCAL/bin/busybox" } diff --git a/.xinitrc b/.xinitrc @@ -11,4 +11,4 @@ pulseaudio & st -f monospace:pixelsize=14 & -exec dwm +exec 2wm diff --git a/README b/README @@ -4,22 +4,15 @@ _| ________________________________________________________________________________ - Configuration files for all UNIX distros, mostly shell agnostic. + Configuration files for all UNIX distros, shell agnostic. - There is an installer script to link the dotfiles, and some more - scripts in .local/bin, including a package manager (build) to download, - compile, and install the programs I use. + Scripts are in .local/bin - It installs the programs in ~/Programs/<program_name>, and setup + There is a package manager, that build to download, compile, + and install packages in ~/Programs/<program_name>, and setup symlinks to .local/ as a local root directory. - This is similar to the GoboLinux file hierarchy. - - You can run this file, it is the install script.' - - -mkdir -p ~/Projects -mkdir -p "$MAIL/cur" "$MAIL/new" "$MAIL/tmp" + This file is the installer script.' cd "${0%/*}" || exit 1 find -type d ! -path './.git*' -path './.*' -exec mkdir -p ~/{} \; @@ -28,6 +21,7 @@ find -L ~ -type l -exec rm {} \; case "$1" in g | git ) + mkdir -p ~/Projects cd ~/Projects && while read url do git clone $url & done << REPOS ssh://repo.or.cz/iomenu.git @@ -44,6 +38,7 @@ REPOS ;; m | mail ) + mkdir -p "$MAIL/cur" "$MAIL/new" "$MAIL/tmp" read -p '<address@mail.net> <imap.host.net> <password>:' a h p printf 'machine %s\nlogin %s\npassword "%s"' "$h" "$a" "$p" > ~/.netrc chmod 400 "$HOME/.netrc"