From 83615eb1ea978db16609b2211136f5290860dba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gabriel=20N=C3=BCtzi?= Date: Wed, 8 Nov 2023 16:31:22 +0100 Subject: [PATCH] Create `ignore-password-swaywm.ini` Add your help to the list of useful automatic commands --- Automatic/ignore-password-swaywm.ini | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 Automatic/ignore-password-swaywm.ini diff --git a/Automatic/ignore-password-swaywm.ini b/Automatic/ignore-password-swaywm.ini new file mode 100644 index 0000000..3cafbc8 --- /dev/null +++ b/Automatic/ignore-password-swaywm.ini @@ -0,0 +1,9 @@ +[Command] +Automatic=true +Command=" + swaymsg -t get_tree | jq -r '.. | (.nodes? // empty)[] | select(.focused) | .name' | copyq: + const regex = /bitwarden|keepass/i + const title = str(input()).trim(); + if (regex.test(title)) ignore()" +Icon=\xf05e +Name=Ignore Password Manager (for sway wm)