From 13c589d0b41e7b4f058f0db5fc754dace6f0dc9a Mon Sep 17 00:00:00 2001 From: Daniel Langbein Date: Mon, 23 May 2022 12:56:49 +0200 Subject: [PATCH] fix --- rotate-screen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rotate-screen.py b/rotate-screen.py index d70c357..8eba44a 100644 --- a/rotate-screen.py +++ b/rotate-screen.py @@ -175,7 +175,7 @@ class Xinput: @classmethod def get_devices(cls) -> list[Device]: ids = cls.get_device_ids() - names = [execute(['xinput', 'list', '--name-only', id_]).strip() for id_ in ids] + names = [execute(['xinput', 'list', '--name-only', str(id_)]).strip() for id_ in ids] return [Device(name, id_) for id_, name in zip(ids, names)] @classmethod