aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-02-22 20:58:20 -0300
committerEuAndreh <eu@euandre.org>2023-02-22 20:58:20 -0300
commit45f653a96979fc7b2cede60ec40e9482cab8c1b8 (patch)
treea82938164c4f49f8972044f34fba32cba7807249 /bin
parentetc/guix/home.scm: Use "clipmenu-latest" package (diff)
downloaddotfiles-45f653a96979fc7b2cede60ec40e9482cab8c1b8.tar.gz
dotfiles-45f653a96979fc7b2cede60ec40e9482cab8c1b8.tar.xz
bin/menu: Disable clipmenu when copying passwords
Diffstat (limited to 'bin')
-rwxr-xr-xbin/menu2
1 files changed, 2 insertions, 0 deletions
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'