dyc3 / steamguard-cli

A linux utility for generating 2FA codes for Steam and managing Steam trade confirmations.
GNU General Public License v3.0
545 stars 36 forks source link

QR reader #380

Closed D3XX3R closed 4 months ago

D3XX3R commented 4 months ago

Description

Having the option to login with QR code links (s.team) is really great, but the QR codes on Steam refresh pretty fast which makes it a little bit of a hassle to be fast enough with the link.

Having a hotkey or maybe a button in the system tray (I guess that would be Windows only?) which makes it possible to scan a certain area, would make it easier to login.

dyc3 commented 4 months ago

Maybe if we add a gui layer, we can revisit adding a system tray icon, but IMO that doesn't really have a place in a strictly cli application.

It should be reasonably easy to have a script that:

  1. takes a screenshot (using something like maim)
  2. pass it to a qr code scanner (https://github.com/victorperin/qr-scanner-cli perhaps)
    • Maybe we could implement this part into steamguard-cli
  3. pass the link to steamguard-cli via xargs
    ... | xargs -I {} steamguard qr-login --url {}

I would accept a docs contribution to add a script that does that to the README or something.

D3XX3R commented 4 months ago

I've coded something, that does what I proposed, but right now it is Windows only. This is my first open source contribution, so feel free to work with me on the repository. https://github.com/D3XX3R/steamguard-qr-login