---
name: "yubikey-touch-detector"
section: "1"
platform: "linux"
package: "yubikey-touch-detector"
version: "1.15.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/yubikey-touch-detector"
---

# yubikey-touch-detector(1)

detect when a YubiKey is waiting for a touch

## NAME

yubikey-touch-detector - detect when a YubiKey is waiting for a touch

## SYNOPSIS

**yubikey-touch-detector** \[options...\]

## OPTIONS

- **-notify**

  Show desktop notifications.

- **-notify-title** *title*

  Set the desktop notification title template. Defaults to "YubiKey is waiting for a touch".

- **-notify-body** *body*

  Set the desktop notification body template. Defaults to "Touch your YubiKey to continue ({{.Reasons}})."

The notification title and body use Go template syntax. *{{.Reasons}}* expands to a sorted, comma-separated list of active event types: *gpg*, *hmac*, and *u2f*.

- **-no-socket**

  Disable unix socket notifier.

- **-stdout**

  Print notifications to stdout.

- **-dbus**

  Support notifications via dbus SessionBus.

- **-v**

  Enable debug logging.

- **-version**

  Print version information and exit.

## DESCRIPTION

**yubikey-touch-detector** detects when a YubiKey is waiting for a touch configuration. It is designed to be integrated with other UI components to display a visible indicator.

## ENVIRONMENT

*YUBIKEY\_TOUCH\_DETECTOR\_VERBOSE*

Equivalent to specifying **-v**.

*YUBIKEY\_TOUCH\_DETECTOR\_NOTIFY*

Equivalent to specifying **-notify**.

*YUBIKEY\_TOUCH\_DETECTOR\_NOTIFY\_TITLE*

Equivalent to specifying **-notify-title**.

*YUBIKEY\_TOUCH\_DETECTOR\_NOTIFY\_BODY*

Equivalent to specifying **-notify-body**.

*YUBIKEY\_TOUCH\_DETECTOR\_STDOUT*

Equivalent to specifying **-stdout**.

*YUBIKEY\_TOUCH\_DETECTOR\_NOSOCKET*

Equivalent to specifying **-no-socket**.

*YUBIKEY\_TOUCH\_DETECTOR\_DBUS*

Equivalent to specifying **-dbus**.

## FILES

*$XDG\_RUNTIME\_DIR/yubikey-touch-detector.socket*

The socket exposing events on Linux.

*$TMPDIR/yubikey-touch-detector.socket*

The socket exposing events on macOS.

## EVENTS

The following events are emitted over the socket:

*GPG\_1*

When a GPG operation starts waiting for a touch.

*GPG\_0*

When a GPG operation stops waiting for a touch.

*U2F\_1*

When a U2F operation starts waiting for a touch.

*U2F\_0*

When a U2F operation stops waiting for a touch.

*MAC\_1*

When a HMAC operation starts waiting for a touch.

*MAC\_0*

When a HMAC operation stops waiting for a touch.

## SEE ALSO

ykman, [pam\_u2f(8)](/pam_u2f/8.md)

## LICENCE

yubikey-touch-detector is distributed under the ISC licence.
