add update_all.py script, update all
This commit is contained in:
parent
404fa1c183
commit
4e9224e2f0
29 changed files with 1375 additions and 24 deletions
23
tools/update_all.py
Normal file
23
tools/update_all.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env python3
|
||||
|
||||
import subprocess
|
||||
from glob import glob
|
||||
|
||||
from os.path import basename, splitext, join
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
for f in glob("../schemes/*.itermcolors"):
|
||||
base_name = splitext(basename(f))[0]
|
||||
xrdb_filepath = join('../xrdb', base_name + '.xrdb')
|
||||
with open(xrdb_filepath, 'w') as fout:
|
||||
print("--> " + xrdb_filepath)
|
||||
subprocess.Popen(['./iterm2xrdb', f], stdout=fout).wait()
|
||||
|
||||
konsole_path = "../konsole/"
|
||||
print("--> " + konsole_path)
|
||||
subprocess.Popen(['./xrdb2konsole.py', '../xrdb/', '-d', konsole_path])
|
||||
|
||||
terminator_path = '../terminator/'
|
||||
print("--> " + terminator_path)
|
||||
subprocess.Popen(['./xrdb2terminator.py', '../xrdb/', '-d', terminator_path])
|
||||
Loading…
Add table
Add a link
Reference in a new issue