summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/guiscripts/favwal2
-rwxr-xr-xbin/menuscripts/mpass14
2 files changed, 11 insertions, 5 deletions
diff --git a/bin/guiscripts/favwal b/bin/guiscripts/favwal
index 94ee709..4be5c9c 100755
--- a/bin/guiscripts/favwal
+++ b/bin/guiscripts/favwal
@@ -2,7 +2,7 @@
pics="$(xdg-user-dir PICTURES)"
mkdir -p "${pics:=$HOME/pics}/favorites"
wal="$(realpath "$pics/wallpaper")"
-diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" &&
+diff "$wal" "$pics/favorites/$(realpath "$wal" | xargs basename)" > /dev/null 2>&1 &&
exit
cp "$wal" "$pics/favorites"
echo "$wal"
diff --git a/bin/menuscripts/mpass b/bin/menuscripts/mpass
index ebe3956..870efb1 100755
--- a/bin/menuscripts/mpass
+++ b/bin/menuscripts/mpass
@@ -10,10 +10,16 @@ then
else
menucmd="fzf --prompt pass:"
fi
-while [ -d "${store}/${file}" ]
+while [ -d "$store/$file" ]
do
- choice="$($lscmd "${store}/${file}" | sed 's/\.gpg$//'| $menucmd)"
+ choice="$($lscmd "$store/$file" | sed 's/\.gpg$//'| $menucmd)"
[ "$choice" ] || break
- file="${file}/${choice}"
+ file="$file/$choice"
done
-pass show -c "${file}"
+
+pass show -c "$file"
+
+test -n "$WAYLAND_DISPLAY" && pgrep -f "cliphist" &&
+ cliphist list |
+ tail -1 |
+ cliphist delete