[+] Add distro option in config #102
This commit is contained in:
+3
-4
@@ -338,10 +338,6 @@ def run():
|
||||
ensure_git_bash()
|
||||
check_windows_cmd()
|
||||
|
||||
# Use a custom distro
|
||||
if args.distro:
|
||||
GLOBAL_CFG.override_distro = args.distro
|
||||
|
||||
if args.debug:
|
||||
GLOBAL_CFG.debug = True
|
||||
|
||||
@@ -360,6 +356,9 @@ def run():
|
||||
# Load config or create config
|
||||
config = create_config() if args.config else check_config(args.config_file)
|
||||
|
||||
# Use a custom distro
|
||||
GLOBAL_CFG.override_distro = args.distro or config.distro
|
||||
|
||||
# Param overwrite config
|
||||
if args.preset:
|
||||
config.preset = args.preset
|
||||
|
||||
@@ -16,6 +16,7 @@ class Config:
|
||||
lightness: float | None = None
|
||||
color_align: ColorAlignment = field(default_factory=lambda: ColorAlignment('horizontal'))
|
||||
backend: BackendLiteral = "neofetch"
|
||||
distro: str | None = None
|
||||
|
||||
@classmethod
|
||||
def from_dict(cls, d: dict):
|
||||
|
||||
Reference in New Issue
Block a user