Recently Written · git

xinput-persistence

xinput for mouse or keyboard configurations that work when disconnected or on boot.

git clone https://github.com/equwal/xinput-persistence

Log | Files | Refs


commit 694274379fa966854afcba45c7cc1c899d7b4229
Spenser Truex <spensertruexonline@gmail.com>
2019-04-22 15:17:14 -0700

readme edits

 README.org | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/README.org b/README.org
index a30fe96..f17ecec 100644
--- a/README.org
+++ b/README.org
@@ -10,16 +10,16 @@ to monitor udev for all devices.
 First, you need to know the last portion of each device's name, a portion of the
 device path, and the name of the property you want to watch for. Find these out
 like this:
-
-```
+#+BEGIN_SRC sh
 # Plugin the device
 $ xinput
 ...
-```
 ...DeathAdder Elite...
+#+END_SRC
+
+#+BEGIN_SRC sh
 # Unplug the device
 $ udevadm monitor
-```
 ...
 
 # Now plug it in
@@ -27,14 +27,15 @@ UDEV  [2607.521415] add      /devices/pci0000:00/0000:00:14.0/usb1/1-1/1-1:1.2/0
                                ^^^^^^^^^^
                               Need a string from here, like 'usb'
 # I used usb for my devices
-```
+
+#+END_SRC
 
 Now that you have those, modify commands.conf from my personal choices:
 
-```
+#+BEGIN_SRC sh
 monitor.pl -n 'device name #1' -d 'usb or other part of the path' -c1 'xinput ' <id inserted here> -c2 ' rest of command'
 monitor.pl -n 'device name #2' -d 'usb or other part of the path' -c1 'no-id-required command'
-```
+#+END_SRC
 
 Perl will insert the ID of the xinput device if -c2 is specified, and it will be
 placed between the c1 and c2 commands. Commands that do not need the xinput id
@@ -43,11 +44,11 @@ can omit -c2.
 You can have as many devices as required. For example, you might add a PS/2
 keyboard also:
 
-```shell
+#+BEGIN_SRC shell
 monitor.pl -n 'device name #1' -d 'usb or other part of the path' -c 'command'
 monitor.pl -n 'device name #2' -d 'usb or other part of the path' -c 'command'
 monitor.pl -n 'N-rollover' -d 'ps/2' -c 'command'
-```
+#+END_SRC shell
 
 The program will fork each one, with the controller process looping forever.