[O] Track selected options

This commit is contained in:
Azalea (on HyDEV-Daisy) 2022-06-19 18:03:05 -04:00
parent 8930f921b4
commit fed771d930
3 changed files with 25 additions and 17 deletions

View file

@ -1,3 +1,4 @@
import os
from pathlib import Path
CONFIG_PATH = Path.home() / '.config/hyfetch.json'
@ -5,3 +6,10 @@ VERSION = '1.0.7'
# Global color mode default to 8-bit for compatibility
COLOR_MODE = '8bit'
# Obtain terminal size
try:
TERM_LEN = os.get_terminal_size().columns
except Exception:
TERM_LEN = 40