[O] Track selected options
This commit is contained in:
parent
8930f921b4
commit
fed771d930
3 changed files with 25 additions and 17 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue