Omarchy TOTP
A native Quickshell overlay for searching pass-otp entries and copying time-based one-time passwords on Omarchy.
The plugin reads entries under ~/.password-store/2fa, uses GPG/Pinentry for unlocking, and delegates clipboard handling to pass-otp. Copied codes are cleared automatically after 45 seconds.
Install
Install the system dependencies:
omarchy pkg add pass pass-otp oath-toolkit
Set up a GPG key and password store if you do not already have one:
gpg --full-generate-key
gpg --list-secret-keys --keyid-format=long
pass init YOUR_GPG_KEY_ID
Install and enable the plugin:
omarchy plugin add https://github.com/hamzahasann/omarchy-totp.git --enable
~/.config/omarchy/plugins/hamzahasann.totp/scripts/setup-menu
omarchy menu refresh
Press Super + Space, open Trigger, select 2FA Codes, type to search, and press Enter to copy the selected code.
Add an account
Paste an otpauth:// URL supplied by the service:
pass otp insert "2fa/GitHub"
Remove
Remove the menu entry before uninstalling the plugin:
~/.config/omarchy/plugins/hamzahasann.totp/scripts/remove-menu
omarchy menu refresh
omarchy plugin remove hamzahasann.totp
Your encrypted pass entries are deliberately retained in ~/.password-store/2fa. Remove them separately with pass rm only when you no longer need those accounts.
License
MIT