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