From 2c9fc903f4136f4a1a32852c693f9c63fc0e3d62 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Sun, 7 Jul 2024 17:46:23 +0200 Subject: [PATCH] feat(user/zsh): use kdialog instead of yad Signed-off-by: Matej Focko --- roles/user/shell/zsh/templates/zshrc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/user/shell/zsh/templates/zshrc b/roles/user/shell/zsh/templates/zshrc index becc108..bb5353e 100644 --- a/roles/user/shell/zsh/templates/zshrc +++ b/roles/user/shell/zsh/templates/zshrc @@ -69,7 +69,7 @@ eval "$(bw completion --shell zsh); compdef _bw bw;" function bwu() { local VAULT=$(basename $BITWARDENCLI_APPDATA_DIR) - local PASS=$(yad --text "Master password for Bitwarden Vault @ $VAULT:" --center --button "yad-ok" --entry --hide-text) + local PASS=$(kdialog --password "Master password for Bitwarden Vault @ $VAULT") export BW_SESSION=$(bw unlock --raw "$PASS") } @@ -104,7 +104,7 @@ function gen_passphrase() { ### HashiCorp Vault ### export VAULT_ADDR="https://hvault.mfocko.xyz" function hcvu() { - local PASS=$(yad --text "Password for HashiCorp Vault @ mfocko.xyz:" --center --button "yad-ok" --entry --hide-text) + local PASS=$(kdialog --password "Password for HashiCorp Vault @ mfocko.xyz") vault login -method=userpass -no-print username=$(whoami) password=$PASS }