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:
M | articles/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/	.*//g" wn.index | sort -n > wn.tmp && mv wn.tmp wn.index <p>To use this with sxhkd:</p> <pre> alt + shift + d - dict "$(dmenu -i -l 10 < $XDG_STATE_HOME/wn.index)" > $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 < $XDG_STATE_HOME/wn.index)" > "$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>