attempt to fix ala-fzf
This commit is contained in:
parent
fac6d63eda
commit
b302bd659f
|
@ -1,3 +1,4 @@
|
|||
set -euo pipefail
|
||||
|
||||
alacritty msg create-window --class ala-fzf -e "$HOME/dotfiles/bin/fzf-pass-inner.sh" && exit 0
|
||||
exec alacritty --class ala-fzf -e "$HOME/dotfiles/bin/fzf-pass-inner.sh"
|
||||
|
|
|
@ -5,12 +5,14 @@ if [ -z "$ENTRY" ]; then
|
|||
exit 1
|
||||
fi
|
||||
PASSENTRY=$(pass "$ENTRY")
|
||||
builtin echo "$PASSENTRY" | head -n1 | nohup wl-copy -f -n --sensitive &
|
||||
(builtin echo "$PASSENTRY" | head -n1 | nohup wl-copy -f -n --sensitive) &
|
||||
WLCOPY_PID=$!
|
||||
disown -h
|
||||
nohup bash -c "sleep 30s; kill $WLCOPY_PID" &
|
||||
disown -h
|
||||
|
||||
NOTIFICATION=$(builtin echo "$PASSENTRY" | sed 1d)
|
||||
if [ ! -z "${NOTIFICATION}" ]; then
|
||||
notify-send -t 6000 "$NOTIFICATION"
|
||||
fi
|
||||
builtin echo "$NOTIFICATION"
|
||||
|
|
Loading…
Reference in a new issue