Merge branch 'main' of https://git.snaile.de/luca/dotfiles into develop
This commit is contained in:
commit
dbc4d8966c
5 changed files with 233 additions and 5 deletions
10
.config/glow/glow.yml
Normal file
10
.config/glow/glow.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# style name or JSON path (default "auto")
|
||||||
|
style: /home/luca/.config/glow/style.json
|
||||||
|
# show local files only; no network (TUI-mode only)
|
||||||
|
local: true
|
||||||
|
# mouse support (TUI-mode only)
|
||||||
|
mouse: false
|
||||||
|
# use pager to display markdown
|
||||||
|
pager: false
|
||||||
|
# word-wrap at width
|
||||||
|
width: 80
|
215
.config/glow/style.json
Normal file
215
.config/glow/style.json
Normal file
|
@ -0,0 +1,215 @@
|
||||||
|
{
|
||||||
|
"document": {
|
||||||
|
"block_prefix": "\n",
|
||||||
|
"block_suffix": "\n",
|
||||||
|
"color": "#c8d3f5",
|
||||||
|
"margin": 2
|
||||||
|
},
|
||||||
|
"block_quote": {
|
||||||
|
"indent": 1,
|
||||||
|
"indent_token": "│ ",
|
||||||
|
"color": "#4e5579"
|
||||||
|
},
|
||||||
|
"paragraph": {},
|
||||||
|
"list": {
|
||||||
|
"level_indent": 2,
|
||||||
|
"color": "#9abdf5"
|
||||||
|
},
|
||||||
|
"heading": {
|
||||||
|
"color": "#4fd6be",
|
||||||
|
"bold": true
|
||||||
|
},
|
||||||
|
"h1": {
|
||||||
|
"prefix": "▋ ",
|
||||||
|
"color": "#89ddff",
|
||||||
|
"bold": true,
|
||||||
|
"block_suffix": "\n"
|
||||||
|
},
|
||||||
|
"h2": {
|
||||||
|
"prefix": "▌ ",
|
||||||
|
"color": "#61bdf2",
|
||||||
|
"bold": true
|
||||||
|
},
|
||||||
|
"h3": {
|
||||||
|
"prefix": "┃ ",
|
||||||
|
"color": "#82aaff",
|
||||||
|
"bold": true
|
||||||
|
|
||||||
|
},
|
||||||
|
"h4": {
|
||||||
|
"prefix": "│ ",
|
||||||
|
"color": "#6d91de",
|
||||||
|
"bold": true
|
||||||
|
|
||||||
|
},
|
||||||
|
"h5": {
|
||||||
|
"prefix": "┆ ",
|
||||||
|
"color": "#9aa5ce",
|
||||||
|
"bold": true
|
||||||
|
|
||||||
|
},
|
||||||
|
"h6": {
|
||||||
|
"prefix": "┊ ",
|
||||||
|
"color": "#61bdf2"
|
||||||
|
},
|
||||||
|
"text": {
|
||||||
|
"color": "#c8d3f5"
|
||||||
|
},
|
||||||
|
"strikethrough": {
|
||||||
|
"crossed_out": true
|
||||||
|
},
|
||||||
|
"emph": {
|
||||||
|
"italic": true
|
||||||
|
},
|
||||||
|
"strong": {
|
||||||
|
"bold": true
|
||||||
|
},
|
||||||
|
"hr": {
|
||||||
|
"color": "#444b6a",
|
||||||
|
"format": "\n--------\n"
|
||||||
|
},
|
||||||
|
"item": {
|
||||||
|
"color": "#9abdf5",
|
||||||
|
"block_prefix": "• "
|
||||||
|
},
|
||||||
|
"enumeration": {
|
||||||
|
"color": "#9abdf5",
|
||||||
|
"block_prefix": ". "
|
||||||
|
},
|
||||||
|
"task": {
|
||||||
|
"color": "#9abdf5",
|
||||||
|
"ticked": "[✓] ",
|
||||||
|
"unticked": "[ ] "
|
||||||
|
},
|
||||||
|
"link": {
|
||||||
|
"color": "#4fd6be",
|
||||||
|
"block_prefix": "(",
|
||||||
|
"block_suffix": ")",
|
||||||
|
"conceal": true,
|
||||||
|
"underline": true
|
||||||
|
},
|
||||||
|
"link_text": {
|
||||||
|
"color": "#4fd6be",
|
||||||
|
"block_prefix": "[",
|
||||||
|
"block_suffix": "]",
|
||||||
|
"underline": true
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"color": "#4fd6be",
|
||||||
|
"underline": true
|
||||||
|
},
|
||||||
|
"image_text": {
|
||||||
|
"color": "#4fd6be",
|
||||||
|
"format": "Image: {{.text}} →"
|
||||||
|
},
|
||||||
|
"code": {
|
||||||
|
"color": "#c8d3f5"
|
||||||
|
},
|
||||||
|
"code_block": {
|
||||||
|
"color": "244",
|
||||||
|
"margin": 2,
|
||||||
|
"chroma": {
|
||||||
|
"text": {
|
||||||
|
"color": "#89ddff"
|
||||||
|
},
|
||||||
|
"error": {
|
||||||
|
"color": "#c53b53",
|
||||||
|
"underline": true
|
||||||
|
},
|
||||||
|
"comment": {
|
||||||
|
"color": "#636da6"
|
||||||
|
},
|
||||||
|
"comment_preproc": {
|
||||||
|
"color": "#4fd6be"
|
||||||
|
},
|
||||||
|
"keyword": {
|
||||||
|
"color": "#c099ff"
|
||||||
|
},
|
||||||
|
"keyword_reserved": {
|
||||||
|
"color": "#c099ff"
|
||||||
|
},
|
||||||
|
"keyword_namespace": {
|
||||||
|
"color": "#0db9d7"
|
||||||
|
},
|
||||||
|
"keyword_type": {
|
||||||
|
"color": "#c099ff"
|
||||||
|
},
|
||||||
|
"operator": {
|
||||||
|
"color": "#89ddff"
|
||||||
|
},
|
||||||
|
"punctuation": {
|
||||||
|
"color": "#ba3c97"
|
||||||
|
},
|
||||||
|
"name": {
|
||||||
|
"style": "italic"
|
||||||
|
},
|
||||||
|
"name_builtin": {
|
||||||
|
"color": "#65bcff"
|
||||||
|
},
|
||||||
|
"name_tag": {
|
||||||
|
"color": "#ff757f"
|
||||||
|
},
|
||||||
|
"name_attribute": {
|
||||||
|
"color": "#c099ff"
|
||||||
|
},
|
||||||
|
"name_class": {
|
||||||
|
"color": "#0db9d7"
|
||||||
|
},
|
||||||
|
"name_constant": {
|
||||||
|
"color": "#c099ff"
|
||||||
|
},
|
||||||
|
"name_decorator": {
|
||||||
|
"color": "#82aaff"
|
||||||
|
},
|
||||||
|
"name_exception": {
|
||||||
|
"color": "#7dcfff",
|
||||||
|
"italic": true
|
||||||
|
},
|
||||||
|
"name_function": {
|
||||||
|
"color": "#82aaff"
|
||||||
|
},
|
||||||
|
"name_other": {
|
||||||
|
"color": "#636da6"
|
||||||
|
},
|
||||||
|
"literal": {},
|
||||||
|
"literal_number": {
|
||||||
|
"color": "#ff966c"
|
||||||
|
},
|
||||||
|
"literal_date": {},
|
||||||
|
"literal_string": {
|
||||||
|
"color": "#4fd6be"
|
||||||
|
},
|
||||||
|
"literal_string_escape": {
|
||||||
|
"color": "#89ddff"
|
||||||
|
},
|
||||||
|
"generic_deleted": {
|
||||||
|
"color": "#e26a75"
|
||||||
|
},
|
||||||
|
"generic_emph": {
|
||||||
|
"italic": true
|
||||||
|
},
|
||||||
|
"generic_inserted": {
|
||||||
|
"color": "#b8db87"
|
||||||
|
},
|
||||||
|
"generic_strong": {
|
||||||
|
"bold": true
|
||||||
|
},
|
||||||
|
"generic_subheading": {},
|
||||||
|
"background": {
|
||||||
|
"background_color": "#222436"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"table": {
|
||||||
|
"center_separator": "┼",
|
||||||
|
"column_separator": "│",
|
||||||
|
"row_separator": "─"
|
||||||
|
},
|
||||||
|
"definition_list": {},
|
||||||
|
"definition_term": {},
|
||||||
|
"definition_description": {
|
||||||
|
"block_prefix": "\n🠶 "
|
||||||
|
},
|
||||||
|
"html_block": {},
|
||||||
|
"html_span": {}
|
||||||
|
}
|
|
@ -28,9 +28,7 @@ cmd trash &{{
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd lazygit ${{
|
cmd lazygit ${{
|
||||||
clear
|
cd "$(dirname "$(realpath "$f")")" && lazygit
|
||||||
dir="$(realpath $PWD)"
|
|
||||||
env PWD=$(realpath $PWD) lazygit
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
# y (select for copy) and P to paste soft-link
|
# y (select for copy) and P to paste soft-link
|
||||||
|
|
|
@ -86,7 +86,7 @@ mimetest() {
|
||||||
image/*) image "$f" "$w" "$h" "$x" "$y" ;;
|
image/*) image "$f" "$w" "$h" "$x" "$y" ;;
|
||||||
video/*) video "$f" "$w" "$h" "$x" "$y" ;;
|
video/*) video "$f" "$w" "$h" "$x" "$y" ;;
|
||||||
*opendocument*) run odt2txt "$f" ;;
|
*opendocument*) run odt2txt "$f" ;;
|
||||||
*/markdown) run mdcat "$f" ;;
|
*/markdown) run glow -s "$XDG_CONFIG_HOME/glow/style.json" "$f" --width "$w";;
|
||||||
*/html) run lynx -dump "$f" ;;
|
*/html) run lynx -dump "$f" ;;
|
||||||
*) return 1 ;;
|
*) return 1 ;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -15,7 +15,12 @@ export LC_ALL=de_DE.UTF-8
|
||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
export VIRTUAL_ENV_DISABLE_PROMPT=1
|
||||||
export FZF_DEFAULT_OPTS="--layout=reverse --height 40%"
|
export FZF_DEFAULT_OPTS="\
|
||||||
|
--layout=reverse --height 40%\
|
||||||
|
--color=fg:#c0caf5,bg:,hl:#ff9e64 \
|
||||||
|
--color=fg+:#c0caf5,bg+:,hl+:#ff9e64 \
|
||||||
|
--color=info:#7aa2f7,prompt:#7dcfff,pointer:#7dcfff \
|
||||||
|
--color=marker:#9ece6a,spinner:#9ece6a,header:#9ece6a"
|
||||||
export LESS=-R
|
export LESS=-R
|
||||||
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
export LESS_TERMCAP_mb="$(printf '%b' '[1;31m')"
|
||||||
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
export LESS_TERMCAP_md="$(printf '%b' '[1;36m')"
|
||||||
|
|
Loading…
Add table
Reference in a new issue