+
     iG  c                   s    R t ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHtHt ^ RIHt  ! R R	4      tR# )
zStarts the root reader-service.N)ArgumentParser)ProcessUtils)_Groups)ReaderService)GlobalUInputsFrontendUInput)loggerc                   s<   a  ] tR t^%t o ]V 3R lR l4       tRtV tR# )InputRemapperReaderServiceBinc                s   < V ^8  d   QhRR/# )i   ZreturnN )Zformat__classdict__s   "T/usr/lib/python3.14/site-packages/inputremapper/bin/input_remapper_reader_service.pyZ__annotate__Z*InputRemapperReaderServiceBin.__annotate__'   s     )* )*$ )*    c            	     sL   \        4       p V P                  R RRRRRR7       V P                  \        P                  R,          4      p\
        P                  ! VP                  4       \        P                  ! R4      ^8  d   \
        P                  ! R	4       \        P                  ! 4       ^ 8w  d   \
        P                  ! R
4       \        P                  ! 4       '       g`   \
        P                  ! R4       \        P                  ! 4       '       g/   \         P"                  ! R4       \
        P                  ! R4       KI  R p\$        P&                  ! V4       \)        4       p\+        \,        4      p\        W44      p\.        P0                  ! VP1                  4       4       R# )z-dz--debugZ
store_truedebugz%Displays additional debug informationF)ZactionZdestZhelpZdefault:i   NNzinput-remapper-reader-serviceznAnother input-remapper-reader-service process is already running. This can cause problems while recording keysz4The reader-service usually needs elevated privilegesz*Waiting for pipes to be created by the GUIg      ?z
Waiting...c                 sv    \         P                  ! \         P                  ! 4       \        P                  4       R# )z:Don't remain idle and alive when the GUI exits via ctrl+c.N)osZkillZgetpidsignalZSIGKILLr   r   r
   on_exitZ3InputRemapperReaderServiceBin.main.<locals>.on_exitE   s    
 GGBIIK0r   N)r    Zadd_argumentZ
parse_argssysZargvr   Zupdate_verbosityr   r   Zcount_python_processesZwarningr   Zgetuidr   Zpipes_existZinfotimeZsleepatexitZregisterr   r   r   asyncioZrun)ZparserZoptionsr   ZgroupsZglobal_uinputsZreader_services         r
   mainZ"InputRemapperReaderServiceBin.main&   s#   !8 	 	
 ##CHHRL1.../NOSTTNN?
 99;!NNQR((**KKDE#//11

3\*	1 	 &~6&v>N&&()r   r   N)Z__name__Z
__module__Z__qualname__Z__firstlineno__Zstaticmethodr   Z__static_attributes__Z__classdictcell__)r	   s   @r
   r   r   %   s     )* )*r   r   )Z__doc__r   r   r   r   r   r   Zargparser    Zinputremapper.bin.process_utilsr   Zinputremapper.groupsr   Z inputremapper.gui.reader_servicer   Z&inputremapper.injection.global_uinputsr   r   Zinputremapper.logging.loggerr   r   r   r   r
   <module>r      s8   ( &   	  
  # 8 ( : P /+* +*r   