From ec54ecc9cd56697452f140acdd57eef2e25f32eb Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Fri, 28 Apr 2023 09:20:31 -0400 Subject: [PATCH] Fix tiling with different gravity In some environments, the coordinates may be reported in a different format. Handle the different context. --- confluent_client/bin/nodeconsole | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/confluent_client/bin/nodeconsole b/confluent_client/bin/nodeconsole index 93818ed4..4dc0d5f4 100755 --- a/confluent_client/bin/nodeconsole +++ b/confluent_client/bin/nodeconsole @@ -229,7 +229,7 @@ if options.windowed: elif 'Height' in line: window_height = int(line.split(':')[1]) elif '-geometry' in line: - l = re.split(' |x|\+', line) + l = re.split(' |x|-|\+', line) l_nosp = [ele for ele in l if ele.strip()] wmxo = int(l_nosp[1]) wmyo = int(l_nosp[2]) @@ -313,4 +313,4 @@ if options.tile: os.execlp('tmux', 'tmux', 'attach', '-t', sessname) else: os.execl(confettypath, confettypath, 'start', - '/nodes/{0}/console/session'.format(args[0])) \ No newline at end of file + '/nodes/{0}/console/session'.format(args[0]))