aboutsummaryrefslogtreecommitdiff
path: root/.scripts/oath
diff options
context:
space:
mode:
authorMarvin Borner2023-05-17 17:45:18 +0200
committerMarvin Borner2023-05-17 17:53:44 +0200
commitb96beb25dcb0511f38c13b07c44cc929d5fd53ad (patch)
treed4c3a9cfed6f9776ad27e79b1cff1c6838a7f9c4 /.scripts/oath
parenta8a6c3a400174cf476ec8e75bb2e5a5b0afb34da (diff)
Sync
Diffstat (limited to '.scripts/oath')
-rwxr-xr-x.scripts/oath6
1 files changed, 6 insertions, 0 deletions
diff --git a/.scripts/oath b/.scripts/oath
new file mode 100755
index 0000000..054c7d6
--- /dev/null
+++ b/.scripts/oath
@@ -0,0 +1,6 @@
+#!/bin/env bash
+
+sel=$(ykman oath accounts list | dmenu)
+code=$(ykman oath accounts code "$sel" | awk '{print $NF}')
+printf "%s" "$code" | clip
+notify-send "$sel" "$code" &