Skip to content

nukeop/rofi-ykman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

rofi-ykman

YubiKey OATH integration for Rofi

Dependencies

Usage

Usage: rofi-ykman [command]

Commands:
  clipboard   Copy the code to the clipboard (default).
  type        Type the code.

When selecting an an entry, the code will by copied to the clipboard or typed, depending on the selected command. Alternatively, you can use one of the shortcuts to choose a different command dynamically:

Shortcut Command
Alt+1 type
Alt+2 clipboard

Usage in i3 or Sway

Assuming you have copied this script to ~/.config/rofi/rofi-ykman, add this to your i3 or Sway config:

bindsym --release $mod+o exec --no-startup-id "~/.config/rofi/rofi-ykman"

When you press $mod+o, you will see a Rofi prompt listing available TOTP accounts. Choose one and the code will be copied to your clipboard. If you forgot to insert YubiKey, you'll get a notification saying so.

You are of course free to put the script in a different location or use a different keybinding.

About

Yubikey manager script for rofi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages