Skip to content

Commit

Permalink
[O] Use fastfetch as the default backend option if it's installed
Browse files Browse the repository at this point in the history
  • Loading branch information
hykilpikonna committed Oct 23, 2024
1 parent 6af128f commit 36fc38c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hyfetch/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,11 @@ def select_backend():
printc('- &bqwqfetch&r: Pure python, &nminimal dependencies&r ' +
('&c(Not installed)' if not has_qwqfetch else ''))
print()

# Use fastfetch as the default backend if it is installed
def_backend = 'neofetch' if ff_path is None else 'fastfetch'

return literal_input('Your choice?', ['neofetch', 'fastfetch', 'qwqfetch'], 'neofetch')
return literal_input('Your choice?', ['neofetch', 'fastfetch', 'qwqfetch'], def_backend)

backend = select_backend()
update_title('Selected backend', backend)
Expand Down

0 comments on commit 36fc38c

Please sign in to comment.