Skip to content

Feature: OAuth picker for walker#3265

Closed
HappyNZ95 wants to merge 1 commit into
basecamp:masterfrom
HappyNZ95:master
Closed

Feature: OAuth picker for walker#3265
HappyNZ95 wants to merge 1 commit into
basecamp:masterfrom
HappyNZ95:master

Conversation

@HappyNZ95
Copy link
Copy Markdown

@HappyNZ95 HappyNZ95 commented Nov 9, 2025

OAuth is necessary but annoying to work with most of the time.

This PR adds a small script that lets you pick an OAuth/TOTP account from a .totp file using walker --dmenu. Once you select an account, it generates the current TOTP code and copies it to your clipboard.

Depends on
oathtool (oath-toolkit)

How it works:
Type in your OAuth code into the .totp file in your home directory like so:

github SKDFHWOEFKH
microsoft KSAJDFHSDSDFKJ
google KJSGHKSDJFHHJDS

Shows all account names from your secrets file in walker's dmenu
Generates a 6-digit TOTP code with oathtool from your selection
Copies the code to the clipboard
Sends a confirmation notification with the name and code or an error message

My personal keybinding is SUPER CONTROL, O (OAuth)

Why this is useful:
It makes accessing TOTP codes super easy without having to open a seperate app, pull out your phone, etc.

screenshot-2025-11-09_21-42-01

If this is of interest I can integrate with the menu under Setup > Security > OAuth

@abenz1267
Copy link
Copy Markdown
Contributor

What tool are you using to get the $HOME/.totp-file to begin with?

Omarchy does ship with 1Password by default. I'm not sure if maybe @dhh wants to integrate the upcoming native 1Password provider for Walker instead.

@HappyNZ95
Copy link
Copy Markdown
Author

HappyNZ95 commented Nov 9, 2025

What tool are you using to get the $HOME/.totp-file to begin with?

Omarchy does ship with 1Password by default. I'm not sure if maybe @dhh wants to integrate the upcoming native 1Password provider for Walker instead.

This was just entered manually by copying the setup code provided when setting up a new 'authenticator app' in Microsoft etc.
If there's an integration for 1Password's authenticator in walker that would be ideal.

@dhh
Copy link
Copy Markdown
Member

dhh commented Nov 17, 2025

This is an interesting idea, and thanks for suggesting it, but not something I'd personally use. Maybe we can do this as an external package for those who want this?

@dhh dhh closed this Nov 17, 2025
@abenz1267
Copy link
Copy Markdown
Contributor

This is an interesting idea, and thanks for suggesting it, but not something I'd personally use. Maybe we can do this as an external package for those who want this?

There's https://github.com/abenz1267/elephant-community where users can submit custom menus for elephant. They can be easily installed via elephant community install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants