perhaps this is one solution just using the static password
from
http://christiaanconover.com/yubikeyconfigTo use the static password, copy it from the text editor and paste it where you’re prompted to set a password. I would recommend using it in combination with a short password string that you’ve memorized. Make sure you place the memorized password ahead of the Yubikey static password, since the Yubikey presses Enter as soon as it’s put in the static password. By doing it this way, you effectively create a multi-factor authentication system in a simple password field: one part from something you know, and the other part from something you have. This makes it easy to remember your password, while still giving it superb stength by adding the 32 character random string from the Yubikey.