mirror of
https://github.com/sezanzeb/input-remapper
synced 2024-11-16 06:12:58 +00:00
lint, badges
This commit is contained in:
parent
f4da5e7bd8
commit
56b6573d42
@ -181,7 +181,7 @@ class Daemon:
|
||||
mapping.load(path)
|
||||
except FileNotFoundError as error:
|
||||
logger.error(str(error))
|
||||
return
|
||||
return False
|
||||
|
||||
if xmodmap_path is not None:
|
||||
try:
|
||||
|
@ -27,7 +27,6 @@ import asyncio
|
||||
import time
|
||||
import subprocess
|
||||
import multiprocessing
|
||||
import itertools
|
||||
|
||||
import evdev
|
||||
from evdev.ecodes import EV_KEY, EV_ABS, EV_REL
|
||||
@ -430,7 +429,7 @@ class KeycodeInjector:
|
||||
|
||||
Parameters
|
||||
----------
|
||||
macros : int -> _Macro
|
||||
macros : (int, int) -> _Macro
|
||||
macro with a handler that writes to the provided uinput
|
||||
source : evdev.InputDevice
|
||||
where to read keycodes from
|
||||
|
@ -256,7 +256,7 @@ class _KeycodeReader:
|
||||
|
||||
if len(self._unreleased) > 0:
|
||||
return Key(*self._unreleased.values())
|
||||
else:
|
||||
|
||||
# nothing
|
||||
return None
|
||||
|
||||
|
@ -42,7 +42,8 @@ def to_string(key):
|
||||
"""A nice to show description of the pressed key."""
|
||||
if isinstance(key, Key):
|
||||
return ' + '.join([to_string(sub_key) for sub_key in key])
|
||||
elif isinstance(key[0], tuple):
|
||||
|
||||
if isinstance(key[0], tuple):
|
||||
raise Exception('deprecated stuff')
|
||||
|
||||
ev_type, code, value = key
|
||||
|
@ -24,7 +24,6 @@
|
||||
|
||||
import os
|
||||
import json
|
||||
import itertools
|
||||
import copy
|
||||
|
||||
from keymapper.logger import logger
|
||||
|
@ -17,7 +17,7 @@
|
||||
<text x="22.0" y="14">pylint</text>
|
||||
</g>
|
||||
<g fill="#fff" text-anchor="middle" font-family="DejaVu Sans,Verdana,Geneva,sans-serif" font-size="11">
|
||||
<text x="63.0" y="15" fill="#010101" fill-opacity=".3">9.76</text>
|
||||
<text x="62.0" y="14">9.76</text>
|
||||
<text x="63.0" y="15" fill="#010101" fill-opacity=".3">9.71</text>
|
||||
<text x="62.0" y="14">9.71</text>
|
||||
</g>
|
||||
</svg>
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Loading…
Reference in New Issue
Block a user