commit 2e46acf97fd4d673eb650cc4acd6496a7095a7d3
parent 6c5b025621f17fc180c819cda1067a3a8db11ff8
Author: Paco Esteban <paco@e1e0.net>
Date: Thu, 30 May 2024 11:38:48 +0200
I don't use this anymore ...
But those changes where there, so better have them committed.
Diffstat:
2 files changed, 36 insertions(+), 1 deletion(-)
diff --git a/passwd_management/get_pass.sh b/passwd_management/get_pass.sh
@@ -12,4 +12,4 @@ item_id=$(for i in $(echo $items_json |jq -r ".[].id"); do
printf "$folder_name/$item_name\t$i\n"
done | fzf -d "\t" --with-nth=1 | cut -f 2)
-bw get password $item_id | xclip -selection clipboard
+[ -z "$item_id" ] || bw get password $item_id | xclip -selection clipboard
diff --git a/passwd_management/pass_to_bw.py b/passwd_management/pass_to_bw.py
@@ -4,10 +4,45 @@ import json
FOLDERS = [
{"object": "folder", "id": "c3470844-395c-46a0-8ebf-8a4161fc52af", "name": "chat"},
+ {
+ "object": "folder",
+ "id": "e603bbd3-cffa-4ed6-9d91-e4b266b051f8",
+ "name": "chat/irc",
+ },
+ {
+ "object": "folder",
+ "id": "8f366938-334c-4dda-800e-99fcb1f82b44",
+ "name": "chat/xmpp",
+ },
{"object": "folder", "id": "d2ac53c5-68e3-4d66-9757-3a6e7302b687", "name": "db"},
{"object": "folder", "id": "cedc22c3-5306-489c-81da-c5cc3bc8db69", "name": "email"},
+ {
+ "object": "folder",
+ "id": "d8bb7bf6-0000-4c80-959f-922d23dcc714",
+ "name": "network",
+ },
+ {
+ "object": "folder",
+ "id": "a146834b-490f-4ec1-a5c8-a6404809eac5",
+ "name": "network/infra_nules",
+ },
+ {
+ "object": "folder",
+ "id": "995edf15-9bba-4316-841a-fcbb6251c9b7",
+ "name": "network/storage",
+ },
+ {
+ "object": "folder",
+ "id": "6ca78980-2868-40ad-94c2-66c8bc1aecc8",
+ "name": "network/storage/syno",
+ },
{"object": "folder", "id": "1b228e1b-6b3f-40a3-879e-7497125771a4", "name": "sites"},
{"object": "folder", "id": "06d2c19c-7d41-4a3b-94f2-2fca30d4127b", "name": "wifi"},
+ {
+ "object": "folder",
+ "id": "3cec8d40-fc12-49a2-9e58-d3fdca615bbd",
+ "name": "wifi/casa",
+ },
{"object": "folder", "id": None, "name": "No Folder"},
]