diff options
Diffstat (limited to 'pywal/theme.py')
| -rw-r--r-- | pywal/theme.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pywal/theme.py b/pywal/theme.py index 6d0acdc..a049ad2 100644 --- a/pywal/theme.py +++ b/pywal/theme.py @@ -9,7 +9,7 @@ from .settings import CONF_DIR, MODULE_DIR from . import util -def index(): +def list_themes(): """List all installed theme files.""" return [*os.scandir(os.path.join(CONF_DIR, "colorschemes")), *os.scandir(os.path.join(MODULE_DIR, "colorschemes"))] @@ -46,7 +46,7 @@ def file(input_file): theme_file = user_theme_file elif input_file == "random": - themes = [theme.path for theme in index()] + themes = [theme.path for theme in list_themes()] random.shuffle(themes) theme_file = themes[0] |
