Browse Source

Rename util.common to util.x

pull/2/head
Ali Hatami Tajik 2 years ago
parent
commit
e300bd486b
  1. 2
      src/scripts/python/changemouse.py
  2. 6
      src/scripts/python/util/pointer.py
  3. 0
      src/scripts/python/util/x.py

2
src/scripts/python/changemouse.py

@ -29,7 +29,7 @@ NOTE: In case of psyco adds and removes mouses with intervals smaller than run
"""
import util.pointer as xup
import util.common as com
import util.x as com
if __name__ == "__main__":
# If we didn't import the script as utility

6
src/scripts/python/util/pointer.py

@ -1,4 +1,4 @@
import xutil.common as com
import x as xutil
import re
@ -55,7 +55,7 @@ def get_short_pointer(id) -> Pointer:
ValueError: if id is not reistered with xinput
ValueError: if id is not a pointer id
"""
desc = com.get_list_short(id)
desc = xutil.get_list_short(id)
name, props = desc.rsplit('id=', 1)
if "pointer" in props:
is_master = "master" in props
@ -81,7 +81,7 @@ def get_pointers(is_short=True):
to the system for processing them individually and per-case).
"""
pointers = []
ids = com.get_ids()
ids = xutil.get_ids()
for id in ids:
if is_short:
try:

0
src/scripts/python/util/common.py → src/scripts/python/util/x.py

Loading…
Cancel
Save