folder restructuring

This commit is contained in:
chrys 2018-09-11 02:43:03 +02:00
parent 1c27bfde65
commit b2c5fef4f1
5 changed files with 25 additions and 2 deletions

View File

@ -5,7 +5,7 @@ Things needing little knowledge are marked with "(Easy for contribution)". so ju
[X] = Done
[S] = Stopped
__TOD___
__TODO___
Application Profiles (low priority):
- reimplement process detection without subprocessing
- fenrir is not able to detect the current application inside of screen.

2
bugs
View File

@ -12,4 +12,4 @@ sudo fenrir -d
stop fenrir (fenrirKey + q)
the debug file is in /var/log/fenrir.log
plese be as precise as possible to make it easy to solve the problem.
please be as precise as possible to make it easy to solve the problem.

23
tools/listDevices.py Executable file
View File

@ -0,0 +1,23 @@
#!/bin/python
import evdev
from evdev import InputDevice, UInput
from select import select
import time
iDevices = map(evdev.InputDevice, (evdev.list_devices()))
iDevices = {dev.fd: dev for dev in iDevices}
print('----------------------')
for fd in iDevices:
dev = iDevices[fd]
cap = dev.capabilities()
print('Name: ' + str(dev.name))
print('LEDs: ' + str(dev.leds()))
print('Has Keys: '+ str(evdev.events.EV_KEY in cap))
if evdev.events.EV_KEY in cap:
print('No. of keys: ' + str(len(cap[evdev.events.EV_KEY])))
print('has Key 116: ' + str(116 in cap[evdev.events.EV_KEY]))
print('Is Mouse: ' + str(((evdev.events.EV_REL in cap) or (evdev.events.EV_ABS in cap))))
print('!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!')
print(dev.capabilities(verbose=True))
print('----------------------')