added cheat sheet script. Updated password script to have a title. Updated readme.
This commit is contained in:
@@ -13,3 +13,7 @@ to be saved as environment variables.
|
||||
Pipe the password store entries into wofi to create a selectable menu.
|
||||
Depends on wofi, pass, and wl-clipboard. Kilpper was fighing me when
|
||||
clearing the clipboard so the dbus6 line was added.
|
||||
|
||||
## cheat-sheet.sh
|
||||
Added a script for displaying commands that I want to remember in wofi.
|
||||
Selecting an entry will copy it to the clipboard if wl-clipboard is installed.
|
||||
|
||||
Executable
+14
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
commandList="tea
|
||||
git
|
||||
hcloud"
|
||||
|
||||
if ! command -v wofi >/dev/null 2>&1; then
|
||||
echo "wofi is not installed"
|
||||
exit 1
|
||||
fi
|
||||
selection=$(echo "$commandList" | wofi --prompt "Cheat Sheet" --dmenu)
|
||||
|
||||
[ -z "$selection" ] && echo "nothing selected"
|
||||
exit 1
|
||||
+1
-1
@@ -13,7 +13,7 @@ store="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
|
||||
|
||||
passwords="$(find "$store" -name "*.gpg" | sed -e 's|\.gpg$||' | sed -e "s|$store/||")"
|
||||
|
||||
selection=$(echo "$passwords" | wofi --dmenu)
|
||||
selection=$(echo "$passwords" | wofi --prompt "Passwords" --dmenu)
|
||||
|
||||
[ -z "$selection" ] && exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user