From 45f653a96979fc7b2cede60ec40e9482cab8c1b8 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 22 Feb 2023 20:58:20 -0300 Subject: bin/menu: Disable clipmenu when copying passwords --- bin/menu | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bin/menu') diff --git a/bin/menu b/bin/menu index 2387bbe..648fc94 100755 --- a/bin/menu +++ b/bin/menu @@ -130,6 +130,8 @@ case "$ACTION" in password) CHOICE="$(pass_list | show 'password')" if [ -n "$CHOICE" ]; then + trap 'clipctl enable' EXIT + clipctl disable if pass show -c1 "$CHOICE"; then notify-send -t 5000 -u critical -- \ "$CHOICE" 'password copied to clipboard' -- cgit v1.2.3