File: deviceInfo.py

package info (click to toggle)
fenrir 2025.0.2.26-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,108 kB
  • sloc: python: 11,782; sh: 345; makefile: 12
file content (4 lines) | stat: -rwxr-xr-x 162 bytes parent folder | download | duplicates (5)
1
2
3
4
from pyudev import Context
context = Context()
for device in context.list_devices(subsystem='input'):
    '{0} - {1}'.format(device.sys_name, device.device_type)