Re: FVWM: Restoring keyboard/mouse settings on USB plug
Klaus Ethgen <[email protected]> Sat, 31 Jul 2021 14:28:46 +0100
| Newsgroups | gmane.comp.window-managers.fvwm |
|---|---|
| Message-ID | <[email protected]> |
Am Mo den 26. Jul 2021 um 10:15 schrieb Mark Hills: > Is there some kind of X event that fvwm can respond to when a new USB > input device is plugged in? > > Because I recently switched from using CorePointer/CoreKeyboard in the > xorg.conf, to the 'modern' hot plugging of X devices. Well, there are some answers already. But... For security reason I made the way around, Instead of using the standard core pointer, I do configure explicitly the input devices I use. I made this to prevent a malicious USB device plugged in that exploits some flaws or could act as a key logger. I would like to have a whitelist or to enable the devices manually. The bad side of this setup are: - I could not plug additional devices like a barcode reader or a wacom tablet - All devices must be present at X server start. I found a way to redetect a device that was plugged out and in again with xinput disabling and reenabling it (like a bluetooth mouse) but I found no way to manually add new devices by intention. If it is not working automated, it doesn't work at all. But this is not specially related to fvwm than to X itself. Regards Klaus -- Klaus Ethgen http://www.ethgen.ch/ pub 4096R/4E20AF1C 2011-05-16 Klaus Ethgen <[email protected]> Fingerprint: 85D4 CA42 952C 949B 1753 62B3 79D0 B06F 4E20 AF1C
signature.asc
(application/pgp-signature, 688 B)
-----BEGIN PGP SIGNATURE----- Comment: Charset: ISO-8859-1 iQGzBAABCgAdFiEEMWF28vh4/UMJJLQEpnwKsYAZ9qwFAmEFUA0ACgkQpnwKsYAZ 9qxFzwwAjMZ9yRGqg351lt0VBr+bvWSRVE/2xWvrqZdIJzxNJ54bbXnHcqkGnAyP Pd03TNFvv/rm8pjiR/fapqKMgOkLI+FW3VUdZi8Qut7iJh92wIHI/LzpEih6ujx+ Xot3AbZh2+XBAB3tiNw2OgJefgrtBFFzN2doQOcLoXbWcR3Kj17zi+Bwm958QH4E +h+OE6ZVU72uF6PVCkLuC5KXy85a16yJ2gHExOBt4l3ry1tyjznEjg7b8GFE8169 WMsMCS8lDt5DPTTkZ0pAIAP+1vy+HyA7hWXiWllBpqzzgTDr6KLNipNtvgGKlgn2 yNIJXtwcdWRS7PZV7pChbJ4OjFRarhZFVhfTtB/lg5+KPW/j9gKoXQwZGzfFgZQS iPhBHpuW+TGPb2mBAedH5hFiCbRCmEh9YB2j5f88ELY5sO/x8Alt8lhL333NU66w XeCGVI/cxac7Rdqmwp5NWj0brSsbHnYHzHRBwMhN9eT+89KzAC0RJP9WgRxyalym 2gSEpDPt =adeV -----END PGP SIGNATURE-----