dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit f9870a7ad3b638484e37ece130e80769817855df
parent 14ea325ba6e7fcccc1f6e830f40ed520d4712b67
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Fri, 14 Jun 2019 10:38:49 +0200

Add first Vis configuration, update suckless tools

Diffstat:
M.Xresources | 4++--
A.config/vis/themes/adbasic.lua | 38++++++++++++++++++++++++++++++++++++++
A.config/vis/visrc.lua | 22++++++++++++++++++++++
M.local/bin/irc.sh | 3++-
4 files changed, 64 insertions(+), 3 deletions(-)

diff --git a/.Xresources b/.Xresources @@ -5,8 +5,8 @@ Xcursor.size: 16 ! terminal colors ------------------------------------------------------------ ! see https://ciembor.github.io/4bit -*.foreground: #c5c8c6 -*.background: #1d1f21 +*.foreground: #4d4d4c +*.background: #ffffff /* black */ *color0: #434944 diff --git a/.config/vis/themes/adbasic.lua b/.config/vis/themes/adbasic.lua @@ -0,0 +1,37 @@ +-- Minimal color scheme +local lexers = vis.lexers +-- adbasic +lexers.STYLE_DEFAULT ='' +lexers.STYLE_NOTHING = '' +lexers.STYLE_CLASS = 'bold' +lexers.STYLE_COMMENT = 'bold' +lexers.STYLE_CONSTANT = '' +lexers.STYLE_DEFINITION = '' +lexers.STYLE_ERROR = 'fore:red' +lexers.STYLE_FUNCTION = '' +lexers.STYLE_KEYWORD = '' +lexers.STYLE_LABEL = '' +lexers.STYLE_NUMBER = '' +lexers.STYLE_OPERATOR = '' +lexers.STYLE_REGEX = '' +lexers.STYLE_STRING = '' +lexers.STYLE_PREPROCESSOR = '' +lexers.STYLE_TAG = '' +lexers.STYLE_TYPE = '' +lexers.STYLE_VARIABLE = '' +lexers.STYLE_WHITESPACE = '' +lexers.STYLE_EMBEDDED = '' +lexers.STYLE_IDENTIFIER = '' + +lexers.STYLE_LINENUMBER = '' +lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER +lexers.STYLE_CURSOR = 'reverse' +lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:green' +lexers.STYLE_CURSOR_LINE = 'underlined' +lexers.STYLE_COLOR_COLUMN = 'back:#999999' +lexers.STYLE_SELECTION = 'back:white' +lexers.STYLE_STATUS = 'fore:#555555' +lexers.STYLE_STATUS_FOCUSED = '' +lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT +lexers.STYLE_INFO = 'yellow,bold' +lexers.STYLE_EOF = ''+ \ No newline at end of file diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -0,0 +1,22 @@ +-- load standard vis module, providing parts of the Lua API +require('vis') + +vis.events.subscribe(vis.events.INIT, function() + -- Your global configuration options + vis:command('set theme adbasic') + + --vis:map(vis.modes.INSERT, 'jk', '<Escape>') + local leader = '<Space>' + vis:map(vis.modes.NORMAL, leader..'n', ':set numbers!<Enter>') + vis:map(vis.modes.NORMAL, leader..'N', ':set relativenumbers!<Enter>') + vis:map(vis.modes.NORMAL, leader..'l', ':set show-newline!<Enter>') +end) + +vis.events.subscribe(vis.events.WIN_OPEN, function(win) + -- Your per window configuration options e.g. + vis:command('set savemethod inplace') -- overwrite file on save + vis:command('set show-tabs') + vis:command('set autoindent') + vis:command('set tabwidth 4') + vis:command('set colorcolumn 80') +end) diff --git a/.local/bin/irc.sh b/.local/bin/irc.sh @@ -4,7 +4,8 @@ set -e USER=irc HOST=adamsgaard.dk PORT=12344 -POSTCMD=".local/bin/tmux-irc.sh" +#POSTCMD=".local/bin/tmux-irc.sh" +POSTCMD="/usr/local/bin/tmux a" UNAMESTR=$(uname) if [ "$UNAMESTR" = 'Linux' ]; then