From 5ea88efc6f28321decb53becd10cca36c5f5a8f1 Mon Sep 17 00:00:00 2001 From: malc Date: Mon, 2 Jan 2017 17:23:58 +0300 Subject: [PATCH] Better Offset vertically to account of possible i3bar on top, hackish but effective. --- misc/dicx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/misc/dicx b/misc/dicx index b2310d1..c9d821a 100755 --- a/misc/dicx +++ b/misc/dicx @@ -5,15 +5,14 @@ exec 1>&2 2>/dev/null test "$1" = "-" && src="cat" || src="xclip -o" -font='source code pro 16' -rofi="rofi -dmenu -font '$font' -fg white -bg grey20" +rofi="rofi -dmenu -yoffset 30 -location 2" pag() { \ sed -e 1d \ -e 's; _\([A-Z]\); \1;p' \ -e '/^$/d' -e '/^-->/d' \ - | eval $rofi -location 2 -l 20 -p 'Done' >/dev/null + | eval $rofi -l 20 -p 'Done' >/dev/null } -phrase="$($src | eval $rofi -markup -location 2 -p '\ ')" +phrase="$($src | eval $rofi -markup -p 'Lookup: ')" sdcv -n --utf8-input --utf8-output "$phrase" | pag -- 2.11.4.GIT