diff options
author | Adam Stück <adam@adast.xyz> | 2023-03-22 07:49:52 +0100 |
---|---|---|
committer | Adam Stück <adam@adast.xyz> | 2023-04-28 20:31:52 +0200 |
commit | 1abce784cf269fd98ee5faa09e52ba642f2e61ec (patch) | |
tree | 716d9b1961dc7235c665747454f03d5f488bffac /.local/bin/dmenu/dm-pass | |
parent | c1fae7c333a7c89347b1955e23aadae47e28f20f (diff) |
switched from i3 to sway
Diffstat (limited to '.local/bin/dmenu/dm-pass')
-rwxr-xr-x | .local/bin/dmenu/dm-pass | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/.local/bin/dmenu/dm-pass b/.local/bin/dmenu/dm-pass deleted file mode 100755 index 2432822..0000000 --- a/.local/bin/dmenu/dm-pass +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh - -DMENU_CMD="dmenu -p 'pass:' -l 8 -b -i -fn 'JetBrainsMono Nerd Font:size=11'" - -entry=$(find "$PASSWORD_STORE_DIR" -name '*.gpg' |\ - sed "s|$PASSWORD_STORE_DIR/||" |\ - sed "s|.gpg||" |\ - sort -n |\ - eval "$DMENU_CMD") || exit 1 - -details=$(pass "$entry") || exit 1 -user=$(echo "$details" | sed -n '2p' | sed 's|user: ||') -pass=$(echo "$details" | head -n1) - -case "$(printf "autotype\npass\nuser" | eval "$DMENU_CMD")" in - autotype) - xdotool type "$user" - xdotool key Tab - xdotool type "$pass" ;; - pass) - xdotool type "$pass" ;; - user) - xdotool type "$user" ;; -esac |