mirror of
https://github.com/dylanaraps/pywal.git
synced 2025-01-23 22:38:36 +01:00
General: Add get_colors()
This commit is contained in:
parent
2bd66d07f0
commit
5b69a3b029
24
wal.py
24
wal.py
@ -1,4 +1,18 @@
|
||||
#!/usr/bin/env python
|
||||
#
|
||||
# wal - Generate and change colorschemes on the fly.
|
||||
#
|
||||
# Created by Dylan Araps
|
||||
|
||||
import argparse
|
||||
import os
|
||||
from pathlib import Path
|
||||
from os.path import expanduser
|
||||
|
||||
# Internal variables.
|
||||
cache_dir = expanduser("~") + "/.cache/wal"
|
||||
color_count = 16
|
||||
os = os.uname
|
||||
|
||||
|
||||
def get_args():
|
||||
@ -18,8 +32,18 @@ def get_args():
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
def get_colors(img):
|
||||
image = Path(img)
|
||||
|
||||
if image.is_file():
|
||||
print("File exists!")
|
||||
else:
|
||||
print("File doesn't exist. :(")
|
||||
|
||||
|
||||
def main():
|
||||
args = get_args()
|
||||
get_colors(args.i)
|
||||
return 0
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user