From 4f042d9c092370793730b08adc16fd53c4dd03f7 Mon Sep 17 00:00:00 2001 From: ensa Date: Fri, 15 May 2020 21:54:43 -0700 Subject: wal removed, X11 files added, shrc/user-dirs.dirs revamped bin/comm-sel: forced cordless to obey XDG_CONFIG_HOME bin/shenv: updated path to shrc config/ X11/ xprofile: files for preparing an X session just read the file xresources: resources for an X session good colors, xterm configuration cwmrc added autogroup for xterm changed term to xterm changed editor binding to not include kludge shrc now uses better home hierarchy read for details EDITOR changed to vise TERMINAL changed to xterm IRC_SERVERS_FILE now included PYTHONUSERBASE now included _JAVA_OPTIONS now included TERMINFO now included MAILCAPS now included most changes result in a cleaner ~ user-dirs.dirs all lines given directories in ~/share/xdg/ vis/ themes/fake256.lua made to look like vim's zellner theme on a 16color term visrc.lua sets colorscheme to the aforementioned wal/ removed all forgot to include some things, expect another commit in a couple minutes --- config/vis/themes/fake256.lua | 64 +++++++++++++++++++++++++++++++++++++++++++ config/vis/visrc.lua | 13 +++++++++ 2 files changed, 77 insertions(+) create mode 100644 config/vis/themes/fake256.lua create mode 100644 config/vis/visrc.lua (limited to 'config/vis') diff --git a/config/vis/themes/fake256.lua b/config/vis/themes/fake256.lua new file mode 100644 index 0000000..7ed8f71 --- /dev/null +++ b/config/vis/themes/fake256.lua @@ -0,0 +1,64 @@ +-- uses 24-bit color values to "trick" vis into using correct colors, based off vim's "zellner" +local lexers = vis.lexers + +local colors = { + ['col0'] = '#16150e', + ['col1'] = '#a32810', + ['col2'] = '#727a18', + ['col3'] = '#a37720', + ['col4'] = '#3d6266', + ['col5'] = '#7a4955', + ['col6'] = '#557a55', + ['col7'] = '#8e8463', + ['col8'] = '#4c4635', + ['col9'] = '#cc3214', + ['col10'] = '#8e991e', + ['col11'] = '#cc9528', + ['col12'] = '#4c7b7f', + ['col13'] = '#995b6b', + ['col14'] = '#6b996b', + ['col15'] = '#ccbc8e', +} +-- dark +lexers.STYLE_DEFAULT ='back:default,fore:default' -- hi Normal -- correct +lexers.STYLE_COMMENT = 'fore:'..colors.col9 -- hi Comment -- correct +lexers.STYLE_CONSTANT = 'fore:'..colors.col13 -- hi Constant -- correct +lexers.STYLE_SPECIAL = 'back:'..colors.col5 -- hi Special +lexers.STYLE_IDENTIFIER = 'fore:default' -- hi Identifier -- correct +lexers.STYLE_STATEMENT = 'fore:'..colors.col1 -- hi Statementa -- correct +lexers.STYLE_PREPROCESSOR = 'fore:'..colors.col5 -- hi PreProc +lexers.STYLE_TYPE = 'fore:'..colors.col12 -- hi Type -- correct +lexers.STYLE_SELECTION = 'reverse' -- hi Visual +lexers.STYLE_TAG = 'fore:'..colors.col2 -- hi Tag +lexers.STYLE_ERROR = 'back:'..colors.col1..',fore:default,italics' -- hi Error +lexers.STYLE_STATUS = 'back:default,fore:'..colors.col4..',reverse' -- hi StatusLineNC +lexers.STYLE_STATUS_FOCUSED = lexers.STYLE_STATUS..',bold' -- hi StatusLine +lexers.STYLE_NOTHING = 'back:default' -- hi Ignore +lexers.STYLE_DEFINITION = 'fore:'..colors.col4 -- +lexers.STYLE_REGEX = 'fore:'..colors.col2 -- +lexers.STYLE_WHITESPACE = '' -- hi Whitespace +lexers.STYLE_OPERATOR = lexers.STYLE_DEFAULT + +lexers.STYLE_FUNCTION = lexers.STYLE_DEFAULT +lexers.STYLE_LINENUMBER = 'fore:default' -- hi LineNr +lexers.STYLE_LINENUMBER_CURSOR = lexers.STYLE_LINENUMBER -- hi CursorLineNr +lexers.STYLE_CURSOR = 'reverse' -- hi Cursor +lexers.STYLE_CURSOR_PRIMARY = lexers.STYLE_CURSOR..',fore:yellow' -- +lexers.STYLE_CURSOR_LINE = 'underlined' -- hi CursorLine +lexers.STYLE_COLOR_COLUMN = 'back:'..colors.col1 -- hi CursorColumn +lexers.STYLE_SEPARATOR = lexers.STYLE_DEFAULT -- +lexers.STYLE_INFO = lexers.STYLE_DEFAULT..',bold' -- +lexers.STYLE_EOF = '' -- + +-- links +lexers.STYLE_STRING = lexers.STYLE_CONSTANT +lexers.STYLE_NUMBER = lexers.STYLE_CONSTANT + +lexers.STYLE_VARIABLE = lexers.STYLE_IDENTIFIER + +lexers.STYLE_LABEL = lexers.STYLE_STATEMENT +lexers.STYLE_KEYWORD = lexers.STYLE_STATEMENT + +lexers.STYLE_EMBEDDED = lexers.STYLE_SPECIAL + +lexers.STYLE_CLASS = lexers.STYLE_TYPE diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua new file mode 100644 index 0000000..b194feb --- /dev/null +++ b/config/vis/visrc.lua @@ -0,0 +1,13 @@ +-- 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 change-256colors off') + vis:command('set theme fake256') +end) + +vis.events.subscribe(vis.events.WIN_OPEN, function(win) + -- Your per window configuration options e.g. + -- vis:command('set number') +end) -- cgit 1.4.1-2-gfad0