52 lines
1.6 KiB
Bash
52 lines
1.6 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
export FZF_DEFAULT_OPTS='
|
|
--height="100%"
|
|
--layout=reverse
|
|
--margin=0
|
|
--padding=0
|
|
--color=fg:#bfbfbf,bg:#1f2430,hl:#707a8c
|
|
--color=fg+:#feacd0,bg+:#191e2a,hl+:#ffcc66
|
|
--color=info:#73d0ff,prompt:#707a8c,pointer:#cbccc6
|
|
--color=marker:#73d0ff,spinner:#73d0ff,header:#d4bfff
|
|
'
|
|
|
|
FOOT_OPTIONS=''
|
|
|
|
if [[ -z "$1" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt=' '${FZF_DEFAULT_OPTS}"
|
|
COMMAND=~/bin/launcher-run
|
|
elif [[ "$1" == "bookmarks" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt=' '${FZF_DEFAULT_OPTS}"
|
|
COMMAND=~/bin/launcher-bookmarks
|
|
FOOT_OPTIONS="-W 120x40 ${FOOT_OPTIONS}"
|
|
elif [[ "$1" == "documents" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt='f '${FZF_DEFAULT_OPTS}"
|
|
COMMAND=~/bin/launcher-folder
|
|
FOOT_OPTIONS="-W 120x40 ${FOOT_OPTIONS}"
|
|
elif [[ "$1" == "clipboard" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt='📋 ' --algo=v1 --bind 'tab:up' ${FZF_DEFAULT_OPTS}"
|
|
FOOT_OPTIONS="-W 190x30 ${FOOT_OPTIONS}"
|
|
COMMAND=~/bin/launcher-clipboard
|
|
elif [[ "$1" == "gopass" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt='🔑 ' --algo=v1 --bind 'tab:up' ${FZF_DEFAULT_OPTS}"
|
|
COMMAND=~/bin/launcher-gopass
|
|
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 ${FOOT_OPTIONS} --config ~/.config/foot/foot-launcher.ini "$COMMAND"
|