riazj.com

source code for this website
git clone https://riazj.com/git/riazj.com
Log | Files | Refs | LICENSE

commit fdc31ce413f98c2398cf4dae7cef07f4f9715956
parent 2f2e2ec3378399224ee3f5e3a3997bb4860957d7
Author: Riaz <riaz@riazj.com>
Date:   Wed, 23 Jul 2025 19:34:02 -0700

Open dictionary output if not empty

Diffstat:
Marticles/dictionaries.html | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/articles/dictionaries.html b/articles/dictionaries.html @@ -23,8 +23,9 @@ sed "s/&#9;.*//g" wn.index | sort -n &gt; wn.tmp &amp;& mv wn.tmp wn.index <p>To use this with sxhkd:</p> <pre> alt + shift + d - dict "$(dmenu -i -l 10 &lt; $XDG_STATE_HOME/wn.index)" &gt; $XDG_RUNTIME_DIR/dmenu_dict; \ - st less -+F -c $XDG_RUNTIME_DIR/dmenu_dict + definition="$XDG_RUNTIME_DIR/dmenu_dict"; \ + dict "$(dmenu -i -l 10 &lt; $XDG_STATE_HOME/wn.index)" &gt; "$definition"; \ + [ -s "$definition" ] && st less -+F -c "$definition" </pre> <p>I no longer use the following hacky setup with GCIDE. Its custom markup sucks.</p> <pre>