From 810f81be66bf35aeca8853c6b4ab442919eacf60 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Tue, 10 Jan 2023 09:43:51 +0900 Subject: [PATCH] fixed depreciated --- qtile/.config/qtile/Screens.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qtile/.config/qtile/Screens.py b/qtile/.config/qtile/Screens.py index 5fd0107..c422869 100644 --- a/qtile/.config/qtile/Screens.py +++ b/qtile/.config/qtile/Screens.py @@ -19,7 +19,7 @@ cmd = ['xrandr'] p = subprocess.Popen(cmd, stdout=subprocess.PIPE) resolution_string, junk = p.communicate() p.stdout.close() -screen_resolutions = [np.array(screen_res.split('x')).astype(np.int) for screen_res in re.findall('[0-9]+x[0-9]+(?=[^\\\\n]*\*)',str(resolution_string))] +screen_resolutions = [np.array(screen_res.split('x')).astype(int) for screen_res in re.findall('[0-9]+x[0-9]+(?=[^\\\\n]*\*)',str(resolution_string))] number_of_screens = len(screen_resolutions) max_width = max(screen_resolutions, key=lambda res: res[0])[0] defined_main_window = False