commit 1036a058eb2ac1c1263cfb01a3e08551f5c1cdce parent 4b1a14a6a460c4c7e310f813cf0efee3af5d374c Author: Riaz <riaz@riazj.com> Date: Wed, 23 Jul 2025 19:41:12 -0700 Open dictionary output if not empty Diffstat:
M | .config/sxhkd/sxhkdrc | | | 5 | +++-- |
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc @@ -11,5 +11,6 @@ alt + shift + t todo 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"