1
0
mirror of https://github.com/gryf/urxvt-wrapper.git synced 2025-12-17 11:30:21 +01:00

Use urxvt class to run terminal.

This commit is contained in:
2021-02-19 18:43:22 +01:00
parent a94f03878a
commit ca0e8dcb22

View File

@@ -328,40 +328,8 @@ def main():
LOG.set_verbose(args.verbose)
command = ['urxvt']
command.extend(['-icon', os.path.join(os.path.expanduser(ICON_PATH),
args.icon)])
if not args.no_perl:
command.append('-pe')
if args.tabbedalt:
command.append('tabbedalt,' + PERLEXT)
else:
command.append(PERLEXT)
size = args.size
font_faces = _ADDITIONAL_FONTS[:]
if ',' in args.default_font:
f_f = [f.strip() for f in args.default_font.split(',')]
f_f.extend(font_faces)
font_faces = f_f
else:
font_faces.insert(0, args.default_font)
if args.bitmap:
font_faces.insert(0, DEFAULT_BITMAP)
# __import__('ipdb').set_trace()
fn = ['-fn', _get_font_list(font_faces, size)]
print(fn)
fb = ['-fb', _get_font_list(font_faces, size, True)]
print(fn)
print(fb)
command.extend(fn)
command.extend(fb)
LOG.info('%s', command)
subprocess.run(command)
urxvt = Urxvt(args)
urxvt.run()
if __name__ == '__main__':