Skip to content

Instantly share code, notes, and snippets.

@lkw657
lkw657 / yubi.sh
Created February 3, 2020 14:59
Rofi script for yubikey otp
#!/bin/bash
if [ $# -eq 0 ]; then
ykman oath list
else
ykman oath code $1 2>/dev/null | awk '{print($2)}' | tr -d "\n" | xclip -selection clipboard &> /dev/null
echo -e "\n"
fi
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
#include <poll.h>
#define BUFFLEN 128
### Keybase proof
I hereby claim:
* I am lkw657 on github.
* I am lkw (https://keybase.io/lkw) on keybase.
* I have a public key ASAgbwn6mwOKuXNNk4yKqypk-aDM5Lz-UsVlfUUsQJsjogo
To claim this, I am signing this object: