6 test "$1" = "-" && src
="cat" || src
="xclip -o"
8 eval $
(xdotool search
--class i3bar getwindowgeometry
--shell)
9 rofi
="rofi -dmenu -yoffset $((HEIGHT+2)) -location 2"
13 -e 's; _\([A-Z]\); \1;p' \
14 -e '/^$/d' -e '/^-->/d' \
15 |
eval $rofi -l 20 -p 'Done'
18 phrase
="$($src | eval $rofi -markup -p 'Lookup: ')"
19 sdcv
-n --utf8-input --utf8-output "$phrase" | pag