summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-17 00:59:55 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-17 00:59:55 +1000
commit5b69a3b029f07b8fae83f418f1271f24de9a39ea (patch)
tree7b8bdcbffac0467d0d7c8650c82717c74d304ab8
parent2bd66d07f06cba64a2b343c9c2fea38757fe7281 (diff)
General: Add get_colors()
-rw-r--r--wal.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/wal.py b/wal.py
index 8460a08..af7cdfe 100644
--- a/wal.py
+++ b/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