Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion hyfetch/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ def run():
config.mode = args.mode
if args.backend:
config.backend = args.backend
if args.args:
config.args = args.args

# Override global color mode
GLOBAL_CFG.color_mode = config.mode
Expand All @@ -421,7 +423,7 @@ def run():
try:
asc = get_distro_ascii() if not args.ascii_file else Path(args.ascii_file).read_text("utf-8")
asc = config.color_align.recolor_ascii(asc, preset)
neofetch_util.run(asc, config.backend, args.args or '')
neofetch_util.run(asc, config.backend, config.args or '')
except Exception as e:
print(f'Error: {e}')
traceback.print_exc()
Expand Down
1 change: 1 addition & 0 deletions hyfetch/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Config:
lightness: float | None = None
color_align: ColorAlignment = field(default_factory=lambda: ColorAlignment('horizontal'))
backend: BackendLiteral = "neofetch"
args: str | None = None
distro: str | None = None
pride_month_shown: list[int] = field(default_factory=list) # This is deprecated, see issue #136
pride_month_disable: bool = False
Expand Down