bemenu
This commit is contained in:
		| @@ -6,7 +6,7 @@ if [ -z "$query" ]; then | ||||
| 	query="$(echo "tui" | bemenu --prompt "qalc")" | ||||
| fi | ||||
| if [ "$query" = "tui" ]; then | ||||
| 	exec footclient --app-id="footclient_float" -D ~/ "qalc"; | ||||
| 	exec footclient --app-id="footclient_float" -D ~/ "qalc" | ||||
| elif [ -n "$query" ]; then | ||||
| 	qalc_res="$(qalc --terse "$query")" | ||||
| 	menu_res="$(echo -e "$qalc_res\ntui" | bemenu --prompt "qalc")" | ||||
|   | ||||
| @@ -1,14 +1,12 @@ | ||||
| #!/bin/bash | ||||
| set -e | ||||
|  | ||||
| type="$1" | ||||
| shift | ||||
|  | ||||
| cd "$PASSWORD_STORE_DIR" | ||||
| pws="$(find -path "*/.*" -prune -o -path "*/cred/*" -name "*.gpg" -printf '%P\n' | sed 's/\.gpg$//')" | ||||
| pw="$(echo "$pws" | bemenu --prompt "pass")" | ||||
|  | ||||
| case "$type" in | ||||
| case "$2" in | ||||
| 	info) exec footclient --app-id="footclient_float" -D ~/ "$SHELL" -c "pass $pw | vim -";; | ||||
| 	otp) pass otp -c "$pw" && notify-send "$pw" -a pass "OTP copied to clipboard, clears in 45s";; | ||||
| 	*) pass -c "$pw" && notify-send "$pw" -a pass "Password copied to clipboard, clears in 45s";; | ||||
| esac | ||||
|   | ||||
		Reference in New Issue
	
	Block a user