added cheat sheet script. Updated password script to have a title. Updated readme.

This commit is contained in:
2026-06-03 06:18:46 -05:00
parent 2465ec78c2
commit 865140ace6
3 changed files with 19 additions and 1 deletions
+4
View File
@@ -13,3 +13,7 @@ to be saved as environment variables.
Pipe the password store entries into wofi to create a selectable menu. Pipe the password store entries into wofi to create a selectable menu.
Depends on wofi, pass, and wl-clipboard. Kilpper was fighing me when Depends on wofi, pass, and wl-clipboard. Kilpper was fighing me when
clearing the clipboard so the dbus6 line was added. 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
View File
@@ -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
View File
@@ -13,7 +13,7 @@ store="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
passwords="$(find "$store" -name "*.gpg" | sed -e 's|\.gpg$||' | sed -e "s|$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 [ -z "$selection" ] && exit 0