Update python modules interfaces, improve update_all.py
This commit is contained in:
parent
3b79722c1f
commit
6905d05946
5 changed files with 103 additions and 79 deletions
|
|
@ -5,23 +5,29 @@ from glob import glob
|
|||
|
||||
from os.path import basename, splitext, join
|
||||
|
||||
import xrdb2konsole
|
||||
import xrdb2terminator
|
||||
import xrdb2Xresources
|
||||
import xrdb2putty
|
||||
import xrdb2xfce_terminal
|
||||
|
||||
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()
|
||||
ret_code = subprocess.Popen(['./iterm2xrdb', f], stdout=fout).wait()
|
||||
print(ret_code and "ERROR" or "OK" + " --> " + xrdb_filepath)
|
||||
|
||||
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])
|
||||
|
||||
putty_path = '../putty/'
|
||||
print("--> " + putty_path)
|
||||
subprocess.Popen(['./xrdb2putty.py', '../xrdb/', '-d', putty_path])
|
||||
print()
|
||||
xrdb2konsole.main('../xrdb/', '../konsole/')
|
||||
print('OK --> ' + '../konsole/')
|
||||
xrdb2terminator.main('../xrdb/', '../terminator/')
|
||||
print('OK --> ' + '../terminator/')
|
||||
xrdb2Xresources.main('../xrdb/', '../Xresources/')
|
||||
print('OK --> ' + '../Xresources/')
|
||||
xrdb2putty.main('../xrdb/', '../putty/')
|
||||
print('OK --> ' + '../putty/')
|
||||
xrdb2xfce_terminal.main('../xrdb/', '../xfce4terminal/colorschemes/')
|
||||
print('OK --> ' + '../xfce4terminal/colorschemes/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue