ke_auto_profile_switcher 0.3.1

This CLI automatically switches Karabiner-Elements profiles with and without USB keyboard connection
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! USB device listing for the `check` command.
//!
//! Live USB keyboard monitoring is handled by the unified IOKit monitor
//! (`crate::monitor::iokit`). This module only provides the device listing used
//! by `kaps check`.

/// List all USB devices (for the `check` command).
pub fn list_usb_devices() {
    #[cfg(target_os = "macos")]
    crate::monitor::iokit::list_usb_devices();

    #[cfg(not(target_os = "macos"))]
    println!("No USB devices found.");
}