Move from st+dmenu to rofi with -dmenu mode

This commit is contained in:
gardouille 2020-12-04 16:43:37 +01:00
parent a1d6cab03d
commit 546e334fde
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 5 additions and 1 deletions

6
qb
View File

@ -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 \