From 8d1e0386dbceade14055cf07a4ed1e4617565091 Mon Sep 17 00:00:00 2001 From: Crony Akatsuki Date: Mon, 26 Dec 2022 12:16:57 +0100 Subject: [PATCH] Generic update. --- dmenu-buku | 4 +++- dmenu-keepassxc | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 dmenu-keepassxc diff --git a/dmenu-buku b/dmenu-buku index 6fbb543..89d3101 100755 --- a/dmenu-buku +++ b/dmenu-buku @@ -2,4 +2,6 @@ # Simple dmenu scipt to open a buku bookmark in a browser -buku --nostdin -p -f5 | dmenu -p "Search bookmark: " -i -l 10 | cut -f1 | xargs -r buku --nostdin -o +[ "$1" = "open" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | dmenu -p "Open bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r buku --nostdin -o + +[ "$1" = "edit" ] && buku --nostdin -p -f5 | sed 's/\t/;/g' | column -t -s ';' | dmenu -p "Edit bookmark: " -i -l 10 | cut -d' ' -f1 | xargs -r $TERMINAL start -- buku -w diff --git a/dmenu-keepassxc b/dmenu-keepassxc new file mode 100755 index 0000000..1faa06b --- /dev/null +++ b/dmenu-keepassxc @@ -0,0 +1,9 @@ +#!/bin/sh + +# Simple dmenu script to ask for keepassxc database password, and get the password of asked account + +db=$(grep database ~/.config/dmenu-keepassxc/config | cut -d: -f 2) + +kf=$(grep keyfile ~/.config/dmenu-keepassxc/config | cut -d: -f 2) + +dmenu -P -p "Enter KeePassXC database password" | keepassxc-cli show -sa password -k $kf $db "$@"