dot

packages and services management
Log | Files | Refs | README

commit f524f53f78fe3ebdee471cf76339068361a492dd
parent 4780f3e644cad992bfae5963dbfdc77bd9219643
Author: josuah <mail@josuah.net>
Date:   Wed, 26 Oct 2016 18:42:42 -0400

Better theme for dvtm

Diffstat:
Mbin/buffers | 2+-
Mdvtm/config.h | 36++++++++++++++++--------------------
Mshell/.profile | 6+-----
3 files changed, 18 insertions(+), 26 deletions(-)

diff --git a/bin/buffers b/bin/buffers @@ -71,7 +71,7 @@ run() printf '\033[1A' 1>&2 # Get command arguments and the session name - [ -z "$cmd" ] && cmd="$(commands | iomenu)" + [ -z "$cmd" ] && cmd="$(commands | iomenu -c)" case "$cmd" in diff --git a/dvtm/config.h b/dvtm/config.h @@ -44,7 +44,7 @@ static Color colors[] = { /* scroll back buffer size in lines */ #define SCROLL_HISTORY 5000 /* printf format string for the tag in the status bar */ -#define TAG_SYMBOL " %s " +#define TAG_SYMBOL " %s " /* curses attributes for the currently selected tags */ #define TAG_SEL (COLOR(BLUE) | A_BOLD) /* curses attributes for not selected tags which contain no windows */ @@ -54,7 +54,7 @@ static Color colors[] = { /* curses attributes for not selected tags which with urgent windows */ #define TAG_URGENT (COLOR(BLUE) | A_NORMAL | A_BLINK) -const char tags[][8] = { "1", "2", "3", "4", "5" }; +const char tags[][8] = { " |", " ||", "|||" }; #include "tile.c" #include "grid.c" @@ -66,13 +66,13 @@ const char tags[][8] = { "1", "2", "3", "4", "5" }; /* by default the first layout entry is used */ static Layout layouts[] = { - { "│├┤f", tile }, - { "├┼┤g", grid }, - { "├┬┤b", bstack }, - { "├┴┤u", tstack }, - { "├─┤n", vstack }, - { "│@│o", fibonacci }, - { "│ │m", fullscreen }, + { " │├┤f ", tile }, + { " ├┼┤g ", grid }, + { " ├┬┤b ", bstack }, + { " ├┴┤u ", tstack }, + { " ├─┤n ", vstack }, + { " │@│o ", fibonacci }, + { " │ │m ", fullscreen }, }; #define MOD CTRL(' ') @@ -91,13 +91,13 @@ static KeyBinding bindings[] = { { { MOD, 'J', }, { focusnextnm, { NULL } } }, { { MOD, 'K', }, { focusprevnm, { NULL } } }, { { MOD, 'k', }, { focusprev, { NULL } } }, - { { MOD, 'f', }, { setlayout, { "│├┤f" } } }, - { { MOD, 'g', }, { setlayout, { "├┼┤g" } } }, - { { MOD, 'b', }, { setlayout, { "├┬┤b" } } }, - { { MOD, 'u', }, { setlayout, { "├┴┤u" } } }, - { { MOD, 'n', }, { setlayout, { "├─┤n" } } }, - { { MOD, 'o', }, { setlayout, { "│@│o" } } }, - { { MOD, 'm', }, { setlayout, { "│ │m" } } }, + { { MOD, 'f', }, { setlayout, { " │├┤f " } } }, + { { MOD, 'g', }, { setlayout, { " ├┼┤g " } } }, + { { MOD, 'b', }, { setlayout, { " ├┬┤b " } } }, + { { MOD, 'u', }, { setlayout, { " ├┴┤u " } } }, + { { MOD, 'n', }, { setlayout, { " ├─┤n " } } }, + { { MOD, 'o', }, { setlayout, { " │@│o " } } }, + { { MOD, 'm', }, { setlayout, { " │ │m " } } }, { { MOD, ' ', }, { setlayout, { NULL } } }, { { MOD, 'i', }, { incnmaster, { "+1" } } }, { { MOD, 'd', }, { incnmaster, { "-1" } } }, @@ -136,16 +136,12 @@ static KeyBinding bindings[] = { { { MOD, KEY_F(1), }, { view, { tags[0] } } }, { { MOD, KEY_F(2), }, { view, { tags[1] } } }, { { MOD, KEY_F(3), }, { view, { tags[2] } } }, - { { MOD, KEY_F(4), }, { view, { tags[3] } } }, - { { MOD, KEY_F(5), }, { view, { tags[4] } } }, { { MOD, 'v', '0' }, { view, { NULL } } }, { { MOD, 'v', '\t', }, { viewprevtag, { NULL } } }, { { MOD, 't', '0' }, { tag, { NULL } } }, TAGKEYS( '1', 0) TAGKEYS( '2', 1) TAGKEYS( '3', 2) - TAGKEYS( '4', 3) - TAGKEYS( '5', 4) }; static const ColorRule colorrules[] = { diff --git a/shell/.profile b/shell/.profile @@ -103,11 +103,7 @@ alias v='buffers run $VISUAL' alias t='tmux attach &>/dev/null || tmux new' alias f='find . -type f ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' alias d='find . -type d ! -path "*/.git/*" | sed "s/^\\.\\///" | iomenu' -alias c='cd "$( - find . -maxdepth 4 -mindepth 1 -type d | - sed "s/^\\.\\///" | - iomenu - )"' +alias c='cd "$(d)"' alias g='grep --color=always' alias myip='curl icanhazip.com' alias lines='find . -name "*.[ch]" | xargs wc -l'