mirror of
https://gitlab.com/manzerbredes/i3-colors.git
synced 2025-04-07 09:06:25 +02:00
Debug
This commit is contained in:
parent
08e4930a52
commit
1f92a79588
5 changed files with 8 additions and 4 deletions
|
@ -8,6 +8,8 @@ def apply(args):
|
||||||
exit(1)
|
exit(1)
|
||||||
loaded_theme=theme.load(args.theme_path)
|
loaded_theme=theme.load(args.theme_path)
|
||||||
config_file=os.environ["HOME"]+"/.config/i3/config"
|
config_file=os.environ["HOME"]+"/.config/i3/config"
|
||||||
|
if args.config_path:
|
||||||
|
config_file=args.config_path
|
||||||
if not(args.dry):
|
if not(args.dry):
|
||||||
config.apply(config_file,loaded_theme)
|
config.apply(config_file,loaded_theme)
|
||||||
for meta_key,meta_value in loaded_theme["meta"].items():
|
for meta_key,meta_value in loaded_theme["meta"].items():
|
||||||
|
@ -45,6 +47,8 @@ if __name__ == "__main__":
|
||||||
argsApplyParser = argsSubParsers.add_parser("apply")
|
argsApplyParser = argsSubParsers.add_parser("apply")
|
||||||
argsApplyParser.add_argument('theme_path', type=str, nargs='?',
|
argsApplyParser.add_argument('theme_path', type=str, nargs='?',
|
||||||
help='I3 YAML theme path.')
|
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('-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.add_argument('-d', '--dry' ,action='store_true', help='Do not apply theme, just print config file.')
|
||||||
argsApplyParser.set_defaults(func=apply)
|
argsApplyParser.set_defaults(func=apply)
|
||||||
|
|
|
@ -287,7 +287,7 @@ bar {
|
||||||
position top
|
position top
|
||||||
font pango:DejaVu Sans Mono 14
|
font pango:DejaVu Sans Mono 14
|
||||||
status_command i3status -c ~/.config/i3/i3status.conf
|
status_command i3status -c ~/.config/i3/i3status.conf
|
||||||
separator_symbol "|"
|
separator_symbol "|"
|
||||||
colors {
|
colors {
|
||||||
active_workspace #414141 #2d2d2d #ffffff
|
active_workspace #414141 #2d2d2d #ffffff
|
||||||
background #2d2d2d
|
background #2d2d2d
|
||||||
|
|
|
@ -4,5 +4,5 @@ wai=$(dirname $(readlink -f $0))
|
||||||
source "${wai}/include.sh"
|
source "${wai}/include.sh"
|
||||||
|
|
||||||
##### Test apply on theme with no variables
|
##### Test apply on theme with no variables
|
||||||
$exec apply -d ${data}/google
|
$exec apply -d ${data}/google ${data}/config
|
||||||
|
|
||||||
|
|
|
@ -287,7 +287,7 @@ bar {
|
||||||
position top
|
position top
|
||||||
font pango:DejaVu Sans Mono 14
|
font pango:DejaVu Sans Mono 14
|
||||||
status_command i3status -c ~/.config/i3/i3status.conf
|
status_command i3status -c ~/.config/i3/i3status.conf
|
||||||
separator_symbol "|"
|
separator_symbol "|"
|
||||||
colors {
|
colors {
|
||||||
separator #AAAAAA
|
separator #AAAAAA
|
||||||
background #1f2326
|
background #1f2326
|
||||||
|
|
|
@ -4,4 +4,4 @@ wai=$(dirname $(readlink -f $0))
|
||||||
source "${wai}/include.sh"
|
source "${wai}/include.sh"
|
||||||
|
|
||||||
##### Test apply on theme with variables
|
##### Test apply on theme with variables
|
||||||
$exec apply -d ${data}/seti
|
$exec apply -d ${data}/seti ${data}/config
|
||||||
|
|
Loading…
Add table
Reference in a new issue