From 1444cc9c93df255f2adc54aea693e0a848d3a8bc Mon Sep 17 00:00:00 2001 From: Konstantin Pastbin Date: Wed, 2 Aug 2023 14:06:14 +0300 Subject: [PATCH] Remove drule types from prio.txt files Signed-off-by: Konstantin Pastbin --- src/libkomwm.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libkomwm.py b/src/libkomwm.py index b4be691..cd66bad 100644 --- a/src/libkomwm.py +++ b/src/libkomwm.py @@ -335,8 +335,12 @@ def dump_priorities(prio_range, path, maxzoom): info = f' # {drule_zooms}' if other_drules: info += f' (also has {other_drules})' + cl = p[0][0] + tokens = p[0][1].split('::') + if len(tokens) > 1: + cl += f'::{tokens[1]}' # TODO: add zoom ranges support? - group += f'{p[0][0]:40} {p[0][1]:10}{info}\n' + group += f'{cl:50} {info}\n' outfile.write(f'{group}=== {group_prio}\n') def get_drape_priority(cl, dr_type, object_id):