diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-04-13 17:25:16 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2019-04-13 17:34:28 +0000 |
commit | 894a1f021e2fb42b3f4bd09b053c20fc4f004ad5 (patch) | |
tree | 4626beadca3e8cbc4ceaa0dd695fa1eca42ab7ae /modules/shell | |
parent | 41bbe979b4dbb8a67f2d4f8c0e4975debb90dd6e (diff) | |
download | nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.tar nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.tar.gz nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.tar.bz2 nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.tar.lz nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.tar.xz nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.tar.zst nixlib-894a1f021e2fb42b3f4bd09b053c20fc4f004ad5.zip |
modules/lynx: init
Diffstat (limited to 'modules/shell')
-rw-r--r-- | modules/shell/default.nix | 3 | ||||
-rw-r--r-- | modules/shell/lynx/default.nix | 16 | ||||
-rw-r--r-- | modules/shell/lynx/lynx.cfg | 16 | ||||
-rw-r--r-- | modules/shell/lynx/lynx.lss | 105 |
4 files changed, 138 insertions, 2 deletions
diff --git a/modules/shell/default.nix b/modules/shell/default.nix index 1d2a5a58a0b1..29cf6abb27f8 100644 --- a/modules/shell/default.nix +++ b/modules/shell/default.nix @@ -1,7 +1,7 @@ { pkgs, ... }: { - imports = [ ./git ./kakoune ./less ./tmux ./zsh ]; + imports = [ ./git ./kakoune ./less ./lynx ./tmux ./zsh ]; environment.systemPackages = with pkgs; [ coreutils-prefixed @@ -11,7 +11,6 @@ gotop httpie jq - lynx moreutils ncdu neovim diff --git a/modules/shell/lynx/default.nix b/modules/shell/lynx/default.nix new file mode 100644 index 000000000000..9d7cb0a4930d --- /dev/null +++ b/modules/shell/lynx/default.nix @@ -0,0 +1,16 @@ +{ pkgs, ... }: + +{ + environment.extraInit = '' + export LYNX_CFG="/etc/xdg/nixos/per-user/$USER/lynx/lynx.cfg" + export LYNX_LSS="/etc/xdg/nixos/per-user/$USER/lynx/lynx.lss" + ''; + + environment.systemPackages = with pkgs; [ lynx ]; + + xdg.config.users.qyliss.paths."lynx/lynx.cfg" = + pkgs.copyPathToStore ./lynx.cfg; + + xdg.config.users.qyliss.paths."lynx/lynx.lss" = + pkgs.copyPathToStore ./lynx.lss; +} diff --git a/modules/shell/lynx/lynx.cfg b/modules/shell/lynx/lynx.cfg new file mode 100644 index 000000000000..8018005d4dad --- /dev/null +++ b/modules/shell/lynx/lynx.cfg @@ -0,0 +1,16 @@ +STARTFILE:https://search.weho.st/ +DEFAULT_INDEX_FILE:https://search.weho.st/ +SAVE_SPACE:/tmp +URL_DOMAIN_PREFIXES: +URL_DOMAIN_SUFFIXES: +SHOW_CURSOR:TRUE +UNDERLINE_LINKS:TRUE +SOURCE_CACHE:MEMORY +FORCE_SSL_COOKIES_SECURE:TRUE +SYSTEM_MAIL:neomutt +VI_KEYS_ALWAYS_ON:TRUE +DEFAULT_KEYPAD_MODE:LINKS_AND_FIELDS_ARE_NUMBERED +MAKE_LINKS_FOR_ALL_IMAGES:TRUE +XLOADIMAGE_COMMAND:imv %s & +EXTERNAL:mailto:neomutt %s:TRUE:TRUE +TEXTFIELDS_NEED_ACTIVATION:TRUE diff --git a/modules/shell/lynx/lynx.lss b/modules/shell/lynx/lynx.lss new file mode 100644 index 000000000000..cf0d3265e00c --- /dev/null +++ b/modules/shell/lynx/lynx.lss @@ -0,0 +1,105 @@ +# Normal type styles correspond to HTML tags. +# +# The next line (beginning with "em") means: use bold if mono, otherwise +# brightblue on <defaultbackground> +em: bold: brightblue +strong: bold: brightred +b: bold: red +i: bold: brightblue +a: bold: green +img: dim: brown +fig: normal: gray +caption: reverse: brown +hr: normal: yellow +blockquote: normal: brightblue +ul: normal: brown +address: normal: magenta +title: normal: magenta +tt: dim: brightmagenta: black +h1: bold: yellow: blue +label: normal: magenta +q: normal: yellow: magenta +small: dim: default +big: bold: yellow +sup: bold: yellow +sub: dim: gray +li: normal: magenta +code: normal: cyan +cite: normal: cyan + +table: normal: brightcyan +tr: bold: brown +td: normal: default +br: normal: default + +# Special styles - not corresponding directly to HTML tags +# alert - status bar, when message begins "Alert". +# alink - active link +# normal - default attributes +# status - status bar +# whereis - whereis search target +# +#normal:normal:default:blue +alink: reverse: yellow: black +status: reverse: yellow: blue +alert: bold: yellow: red +whereis: reverse+underline: magenta: cyan +# currently not used +#value:normal:green + +menu.bg: normal: black: lightgray +menu.frame: normal: black: lightgray +menu.entry: normal: lightgray: black +menu.n: normal: red: gray +menu.active: normal: yellow: black +menu.sb: normal: brightred: lightgray + +forwbackw.arrow:reverse +hot.paste: normal: brightred: gray + +# Styles with classes - <ul class=red> etc. +ul.red: underline: brightred +ul.blue: bold: brightblue +li.red: reverse: red: yellow +li.blue: bold: blue +strong.a: bold: black: red +em.a: reverse: black: blue +strong.b: bold: white: red +em.b: reverse: white: blue +strong.debug: reverse: green +font.letter: normal: white: blue +input.submit: normal: cyan +tr.baone: bold: yellow +tr.batwo: bold: green +tr.bathree: bold: red +# +# Special handling for link. +link: normal: white +link.green: bold: brightgreen +link.red: bold: black: red +link.blue: bold: white: blue +link.toc: bold: black: white +# Special cases for link - the rel or title is appended after the class. +# <link rel=next class=red href="1"> +link.red.next: bold: red +link.red.prev: bold: yellow: red +link.blue.prev: bold: yellow: blue +link.blue.next: bold: blue +link.green.toc: bold: white: green +# +# Define styles that will be used when syntax highlighting is requested +# (commandline option -prettysrc). +span.htmlsrc_comment:normal: white +span.htmlsrc_tag:normal: white +#If you don't like that the tag name and attribute name are displayed +#in different colors, comment the following line. +span.htmlsrc_attrib:normal: cyan +span.htmlsrc_attrval:normal: magenta +span.htmlsrc_abracket:normal: white +span.htmlsrc_entity:normal: white +##span.htmlsrc_href: +##span.htmlsrc_entire: +span.htmlsrc_badseq:normal: red +span.htmlsrc_badtag:normal: red +span.htmlsrc_badattr:normal: red +span.htmlsrc_sgmlspecial:normal: yellow |