all repos — dotfiles @ 2f6996a1a7fbdbaab650c5c09cd5fb18b5204ef6

my *nix dotfiles

Switch to vimb + tabbed

Signed-off-by: Anirudh Oppiliappan <x@icyphox.sh>
Anirudh Oppiliappan x@icyphox.sh
Thu, 16 Jan 2020 21:36:35 +0000
commit

2f6996a1a7fbdbaab650c5c09cd5fb18b5204ef6

parent

4b13733659bd3802520d1c53dd06451b49f56b86

4 files changed, 100 insertions(+), 1 deletions(-)

jump to
M bash/.bashrc.d/04-exports.bashbash/.bashrc.d/04-exports.bash

@@ -1,5 +1,5 @@

# export thingys -export BROWSER=/usr/bin/firefox +export BROWSER=/usr/local/bin/vimb export EDITOR=/usr/bin/vim export SSH_KEY_PATH="~/.ssh/id_rsa" export PATH=$HOME/bin:$PATH
A bin/browser

@@ -0,0 +1,3 @@

+#!/bin/sh + +tabbed vimb "$@" -e &
A config/vimb/config

@@ -0,0 +1,30 @@

+set download-path=~/downloads +set input-autohide=true +set spell-checking=true +set spell-checking-languages=en +set webgl=true +set incsearch=true +set default-font=DejaVu Sans +set accelerated-2d-canvas=true +set dark-mode=true +set strict-ssl=false +set home-page=start.icyphox.sh +set status-bar=false + +set monospace-font=Roboto Mono + +# The font family used as the default for content using sans-serif font. +set sans-serif-font=Roboto + +# The font family used as the default for content using serif font. +set serif-font=Liberation Serif + +# The default font size used to display text. +set font-size=16 + +# Default font size for the monospace font. +set monospace-font-size=14 + +nmap + zI +nmap - zO +nmap = zz
A tabbed/config.h

@@ -0,0 +1,66 @@

+/* See LICENSE file for copyright and license details. */ + +/* appearance */ +static const char font[] = "Roboto Mono:style=Medium:size=14"; +static const char* normbgcolor = "#121212"; +static const char* normfgcolor = "#cbd6e2"; +static const char* selbgcolor = "#cbd6e2"; +static const char* selfgcolor = "#121212"; +static const char* urgbgcolor = "#111111"; +static const char* urgfgcolor = "#cc0000"; +static const char before[] = "<"; +static const char after[] = ">"; +static const char titletrim[] = "..."; +static const int tabwidth = 200; +static const Bool foreground = True; +static Bool urgentswitch = False; + +/* + * Where to place a new tab when it is opened. When npisrelative is True, + * then the current position is changed + newposition. If npisrelative + * is False, then newposition is an absolute position. + */ +static int newposition = 0; +static Bool npisrelative = True; + +#define SETPROP(p) { \ + .v = (char *[]){ "/bin/sh", "-c", \ + "prop=\"`xwininfo -children -id $1 | grep '^ 0x' |" \ + "sed -e's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' |" \ + "xargs -0 printf %b | dmenu -l 10 -w $1`\" &&" \ + "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ + p, winid, NULL \ + } \ +} + +#define MODKEY ControlMask +static Key keys[] = { + /* modifier key function argument */ + { MODKEY|ShiftMask, XK_Return, focusonce, { 0 } }, + { MODKEY, XK_t, spawn, { 0 } }, + + { MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } }, + { MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } }, + { MODKEY|ShiftMask, XK_j, movetab, { .i = -1 } }, + { MODKEY|ShiftMask, XK_k, movetab, { .i = +1 } }, + { MODKEY, XK_Tab, rotate, { .i = 0 } }, + + { MODKEY, XK_grave, spawn, SETPROP("_TABBED_SELECT_TAB") }, + { MODKEY, XK_1, move, { .i = 0 } }, + { MODKEY, XK_2, move, { .i = 1 } }, + { MODKEY, XK_3, move, { .i = 2 } }, + { MODKEY, XK_4, move, { .i = 3 } }, + { MODKEY, XK_5, move, { .i = 4 } }, + { MODKEY, XK_6, move, { .i = 5 } }, + { MODKEY, XK_7, move, { .i = 6 } }, + { MODKEY, XK_8, move, { .i = 7 } }, + { MODKEY, XK_9, move, { .i = 8 } }, + { MODKEY, XK_0, move, { .i = 9 } }, + + { MODKEY|ShiftMask, XK_q, killclient, { 0 } }, + + { MODKEY, XK_u, focusurgent, { 0 } }, + { MODKEY|ShiftMask, XK_u, toggle, { .v = (void*) &urgentswitch } }, + + { 0, XK_F11, fullscreen, { 0 } }, +};