From e300bd486bab50af88348643f2a4dc97d9fc5ee2 Mon Sep 17 00:00:00 2001 From: Ali Hatami Tajik Date: Sat, 11 Mar 2023 12:48:39 +0330 Subject: [PATCH] Rename util.common to util.x --- src/scripts/python/changemouse.py | 2 +- src/scripts/python/util/pointer.py | 6 +++--- src/scripts/python/util/{common.py => x.py} | 0 3 files changed, 4 insertions(+), 4 deletions(-) rename src/scripts/python/util/{common.py => x.py} (100%) diff --git a/src/scripts/python/changemouse.py b/src/scripts/python/changemouse.py index 0874671..db5494d 100644 --- a/src/scripts/python/changemouse.py +++ b/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 diff --git a/src/scripts/python/util/pointer.py b/src/scripts/python/util/pointer.py index 41fb97f..364e515 100644 --- a/src/scripts/python/util/pointer.py +++ b/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: diff --git a/src/scripts/python/util/common.py b/src/scripts/python/util/x.py similarity index 100% rename from src/scripts/python/util/common.py rename to src/scripts/python/util/x.py