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 "$@"