From 82ad171125004755c07e54dc364f9744881e2dee Mon Sep 17 00:00:00 2001 From: Sebastian Schulze Date: Tue, 25 Jan 2022 09:01:05 +0100 Subject: [PATCH] [bin] Add FOOT_OPTIONS and qute mode to my launcher --- bin/executable_my-rofi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/executable_my-rofi b/bin/executable_my-rofi index e8afde5..0125fb2 100644 --- a/bin/executable_my-rofi +++ b/bin/executable_my-rofi @@ -11,6 +11,8 @@ export FZF_DEFAULT_OPTS=' --color=marker:#ff79c6,spinner:#ffb86c,header:#6272a4 ' +FOOT_OPTIONS='' + if [[ -z "$1" ]] then FZF_DEFAULT_OPTS="--prompt=' '${FZF_DEFAULT_OPTS}" @@ -19,6 +21,7 @@ elif [[ "$1" == "bookmarks" ]] then FZF_DEFAULT_OPTS="--prompt=' '${FZF_DEFAULT_OPTS}" COMMAND=~/bin/launcher-bookmarks + FOOT_OPTIONS="-W 120x40 ${FOOT_OPTIONS}" elif [[ "$1" == "clipboard" ]] then FZF_DEFAULT_OPTS="--prompt='📋 ' --algo=v1 --bind 'tab:up' ${FZF_DEFAULT_OPTS}" @@ -31,8 +34,13 @@ elif [[ "$1" == "snippets" ]] then FZF_DEFAULT_OPTS="--prompt='📋'${FZF_DEFAULT_OPTS}" COMMAND=~/bin/launcher-snippets +elif [[ "$1" == "qutebrowser" ]] +then + FZF_DEFAULT_OPTS="--prompt='🌐'${FZF_DEFAULT_OPTS}" + FOOT_OPTIONS="-W 250x40 ${FOOT_OPTIONS}" + COMMAND=~/bin/launcher-qutebrowser else exec foot --app-id launcher --config ~/.config/foot/foot-launcher.ini ~/bin/launcher-run fi; -exec foot --app-id launcher --config ~/.config/foot/foot-launcher.ini "$COMMAND" +exec foot --app-id launcher ${FOOT_OPTIONS} --config ~/.config/foot/foot-launcher.ini "$COMMAND"