From 1d1174dc51c83fb247dbc62de3579bd48ac48427 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 3 Oct 2022 20:36:48 +0800 Subject: Update --- X11/rofi/pass.edit | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'X11/rofi/pass.edit') diff --git a/X11/rofi/pass.edit b/X11/rofi/pass.edit index fb6ade9..428564d 100755 --- a/X11/rofi/pass.edit +++ b/X11/rofi/pass.edit @@ -1,6 +1,5 @@ #! /bin/sh -ROFI_ARGS=( '-font' 'Hack 22' ) ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" # Give rofi available passwords and exit @@ -15,8 +14,8 @@ fi # If password doesn't exist, just quit <<<"$ENTRIES" grep -q $1 || exit 0 -# Use alacritty to edit password +# Use detected terminal emulator to edit password coproc ( - alacritty -e pass edit $1 && pass $1 --clip - rofi "${ROFI_ARGS[@]}" -e "Copied: $1" + rofi-sensible-terminal -e pass edit $1 && pass $1 --clip + rofi -e "Copied: $1" ) -- cgit v1.2.3-70-g09d2