From 546e334fde3d959dab792aa3c97ec50343b4e647 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Fri, 4 Dec 2020 16:43:37 +0100 Subject: [PATCH] Move from st+dmenu to rofi with -dmenu mode --- qb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qb b/qb index feb161c..a381491 100755 --- a/qb +++ b/qb @@ -42,6 +42,10 @@ define_vars() { # {{{ ## List of process pattern to monitor qutebrowser_proc_pattern="(qutebrowser)" + ## Rofi colors + black="#000000" + blue="#0094cc" + ## Store selected content to a temp file choice_temp_file="$(mktemp -t ${PROGNAME}-XXXXXX.tmp)" @@ -219,7 +223,7 @@ goto_qutebrowser_content() { # {{{ debug_message "goto_qutebrowser_content − \ Search in Qutebrowser's content ${QUTEBROWSER_GLOBAL_CONTENT} file." - st -g 90x30+0+540 -n QuteBrowserSearch -t QuteBrowserQuteBrowserSearch -e sh -c "cat ${QUTEBROWSER_GLOBAL_CONTENT} | dmenu -l 15 -i -p 'Search with Engine' > ${choice_temp_file}" + rofi -dmenu -location 6 -lines 15 -width 80 -p 'Qutebrowser' -color-enabled -color-normal "${black},${blue},${black},${blue},${black}" -color-window "${black},${black}" > "${choice_temp_file}" < "${QUTEBROWSER_GLOBAL_CONTENT}" if [ -s "${choice_temp_file}" ]; then debug_message "goto_qutebrowser_content − \