diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2019-10-09 10:38:33 -0400 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2019-10-09 10:38:33 -0400 |
| commit | 1f92a795880e9db158713e520c8fcbcaff301c9c (patch) | |
| tree | fb43cd2976070f45494d4f4a02d76e8e9720287c /src/i3-colors.py | |
| parent | 08e4930a522e821c96dbd2da173df2800aa488f5 (diff) | |
Debug
Diffstat (limited to 'src/i3-colors.py')
| -rwxr-xr-x | src/i3-colors.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i3-colors.py b/src/i3-colors.py index e206a3d..a544c01 100755 --- a/src/i3-colors.py +++ b/src/i3-colors.py @@ -8,6 +8,8 @@ def apply(args): exit(1) loaded_theme=theme.load(args.theme_path) config_file=os.environ["HOME"]+"/.config/i3/config" + if args.config_path: + config_file=args.config_path if not(args.dry): config.apply(config_file,loaded_theme) for meta_key,meta_value in loaded_theme["meta"].items(): @@ -45,6 +47,8 @@ if __name__ == "__main__": argsApplyParser = argsSubParsers.add_parser("apply") argsApplyParser.add_argument('theme_path', type=str, nargs='?', help='I3 YAML theme path.') + argsApplyParser.add_argument('config_path', type=str, nargs='?', + help='I3 config file path.') argsApplyParser.add_argument('-r', '--restart' ,action='store_true', help='Restart i3 after applying theme.') argsApplyParser.add_argument('-d', '--dry' ,action='store_true', help='Do not apply theme, just print config file.') argsApplyParser.set_defaults(func=apply) |
