~tardypad/dotfiles

ref: 00c0c349a1b8960152233f11caa9ea1a40e395a3 dotfiles/files/scripts/shell/copy-otp -rwxr-xr-x 210 bytes
00c0c349 — Damien Tardy-Panis Add presentation mode to mako to hide notifications 4 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

NAME=$(
  ykman oath accounts list 2> /dev/null \
    | sort \
    | bemenu -p 'Copy OTP'
)

[ -n "${NAME}" ] || exit

ykman oath accounts code -s "${NAME}" \
  | wl-copy -n \
      > /dev/null 2>&1