From 943483b0d4b7cccbfa89447a7cc863d878f2330d Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Mon, 4 Sep 2023 12:33:51 -0400 Subject: [PATCH] def.sh: added dictionary definition wrapper over sdcv --- programs | 6 ++---- src/.config/vars | 2 ++ src/.local/bin/def.sh | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) create mode 100755 src/.local/bin/def.sh diff --git a/programs b/programs index e742e2e..1b45592 100644 --- a/programs +++ b/programs @@ -51,6 +51,7 @@ translate-shell net-tools libappimage nftables +sdcv ufw rofi progress @@ -125,10 +126,6 @@ radare2 gdb typst -# .local/bin/calcpy/ script -ipython -python-sympy - # .local/bin/pyinstantref script python-pydbus xorg-xprop @@ -153,6 +150,7 @@ lowdown html-xml-utils # for general compiling from source +clang cmake ninja meson diff --git a/src/.config/vars b/src/.config/vars index 2661838..c77e920 100644 --- a/src/.config/vars +++ b/src/.config/vars @@ -43,6 +43,8 @@ export npm_config_cache=$XDG_CACHE_HOME/npm export npm_config_prefix=$XDG_DATA_HOME/npm # xpilot export XPILOTRC=$XDG_CONFIG_HOME/xpilotrc +# stardict +export STARDICT_DATA_DIR=$HOME/dox/doc/dic # minrss scripts export MRSS_DIR="$HOME/dox/rss" diff --git a/src/.local/bin/def.sh b/src/.local/bin/def.sh new file mode 100755 index 0000000..14ec6a3 --- /dev/null +++ b/src/.local/bin/def.sh @@ -0,0 +1,5 @@ +#!/bin/sh +# sdcv dictionary wrapper (for HTML rendering) + +sdcv -n --utf8-output "$@" 2>&1 | \ + w3m -T text/html -dump -