31 lines
1.2 KiB
Bash
31 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
|
|
export FZF_DEFAULT_OPTS='
|
|
--height="100%"
|
|
--layout=reverse
|
|
--margin=0
|
|
--padding=0
|
|
--color=bg+:#343d46,bg:#2b303b,spinner:#96b5b4,hl:#8fa1b3 --color=fg:#a7adba,header:#8fa1b3,info:#ebcb8b,pointer:#96b5b4 --color=marker:#96b5b4,fg+:#dfe1e8,prompt:#ebcb8b,hl+:#8fa1b3
|
|
'
|
|
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
|
|
elif [[ "$1" == "clipboard" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt='📋 ' --algo=v1 --bind 'tab:up' --read0 ${FZF_DEFAULT_OPTS}"
|
|
COMMAND=~/bin/launcher-clipboard
|
|
elif [[ "$1" == "gopass" ]]
|
|
then
|
|
FZF_DEFAULT_OPTS="--prompt='🔑 ' --algo=v1 --bind 'tab:up' --read0 ${FZF_DEFAULT_OPTS}"
|
|
COMMAND=~/bin/launcher-gopass
|
|
else
|
|
exec alacritty --class launcher --config-file ~/.config/alacritty/alacritty-launcher.yml --option "window.dimensions={lines: 40, columns: 80}" -e ~/bin/launcher-run
|
|
fi;
|
|
|
|
exec alacritty --class launcher --config-file ~/.config/alacritty/alacritty-launcher.yml --option "window.dimensions={lines: 40, columns: 80}" -e "$COMMAND"
|