From c046c4ee9787469807470e76cd403b3219b818ce Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Thu, 24 Apr 2025 11:42:50 +0200 Subject: [PATCH] add dotool to fuzzel-rbw script --- dot_config/fuzzel/executable_fuzzel-rbw.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/dot_config/fuzzel/executable_fuzzel-rbw.sh b/dot_config/fuzzel/executable_fuzzel-rbw.sh index 9f02eb1..d600677 100644 --- a/dot_config/fuzzel/executable_fuzzel-rbw.sh +++ b/dot_config/fuzzel/executable_fuzzel-rbw.sh @@ -57,5 +57,18 @@ if [[ -n "$selected" ]]; then cleaned_text=$(clean_text "$selected_detail") copy_to_clipboard "$cleaned_text" echo "In Zwischenablage kopiert: ${cleaned_text:0:20}..." + + # Passwortverarbeitung + if [[ "$OSTYPE" != "darwin"* ]]; then + choice=$(select_item "Passwort mit dotool eingeben? (5s Verzögerung)" "$(echo -e "Ja\nNein")") + + if [[ "$choice" == "Ja" ]]; then + echo "Tippe Passwort in 5 Sekunden (Layout: DE)..." + sleep 5 && { + echo "typedelay 100" + echo "type $cleaned_text" + } | DOTOOL_XKB_LAYOUT=de dotool && notify-send "Passwort eingetippt" + fi + fi fi fi