~yerinalexey/dotfiles

5c470d3b1560fb402eac778c3255d66caab32a23 — Alexey Yerin 6 months ago 4561065
Add himitsu-menu
2 files changed, 13 insertions(+), 0 deletions(-)

M river/init
A scripts/himitsu-menu
M river/init => river/init +1 -0
@@ 67,6 67,7 @@ riverctl map normal $mod M spawn emoji-menu

# Copy password
riverctl map normal $mod apostrophe spawn pass-menu
riverctl map normal $mod semicolon spawn himitsu-menu

# "Now it's safe to turn off your computer"
riverctl map normal $mod+Shift Q spawn shutdown-menu

A scripts/himitsu-menu => scripts/himitsu-menu +12 -0
@@ 0,0 1,12 @@
#!/bin/sh -e

selected="$(hiq | bemenu -i -l 10 -p "hiq>")"
if [ -n "$selected" ]; then
	# Decrypt
	selected="$(hiq -d $selected)"
	password="${selected##*!=}"

	wl-copy "$password"
	sleep 20
	wl-copy "[redacted]"
fi