commit 4b1a14a6a460c4c7e310f813cf0efee3af5d374c
parent 587aade7898c9baa4606f23f493bc0d02c8d392b
Author: Riaz <riaz@riazj.com>
Date: Tue, 22 Jul 2025 15:18:39 -0700
Use dictd for dictionaries
Diffstat:
2 files changed, 7 insertions(+), 11 deletions(-)
diff --git a/.config/sxhkd/sxhkdrc b/.config/sxhkd/sxhkdrc
@@ -4,11 +4,12 @@ XF86Audio{Raise,Lower}Volume
XF86AudioMute
wpctl set-mute @DEFAULT_SINK@ toggle
-alt + {_,shift + } w
- {st w3m -v,librewolf}
+alt + w
+ st w3m -v
-alt + z
- zathura
-
-ctrl + t
+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
diff --git a/.local/bin/def b/.local/bin/def
@@ -1,5 +0,0 @@
-#!/bin/sh -e
-
-[ $# -eq 0 ] && { echo "usage: def phrase"; exit; }
-letter="$(printf "%.1s" "$*" | tr '[:lower:]' '[:upper:]')"
-sed -n "/<p><ent>$*<\/ent><br\//I,/^$/p" "$HOME/data/books/dictionary/$letter" | w3m -dump -T text/html