summaryrefslogtreecommitdiff
path: root/.local
diff options
context:
space:
mode:
authorDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-14 14:39:09 -0700
committerDavid Luevano <55825613+luevano@users.noreply.github.com>2020-02-14 14:39:09 -0700
commitc508398d4de79158e4ea0461fc3036f8cfbbf9df (patch)
treeb6646c9bcfceb1062893e712c354b0c630e4fcf4 /.local
parent83b2eed76095dbe4128e8610fea2bcbe87741aa1 (diff)
Shebang exploration
Diffstat (limited to '.local')
-rwxr-xr-x[-rw-r--r--].local/bin/pys/xcolors.py15
1 files changed, 10 insertions, 5 deletions
diff --git a/.local/bin/pys/xcolors.py b/.local/bin/pys/xcolors.py
index 39010c7..c6ef9f3 100644..100755
--- a/.local/bin/pys/xcolors.py
+++ b/.local/bin/pys/xcolors.py
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
import os
HOME=os.environ['HOME'] + '/'
@@ -17,7 +18,7 @@ def update_xresources(csname):
with open(XRPATH, 'r') as infile:
lines = infile.readlines()
- with open(file_dir, 'w') as outfile:
+ with open(file_dir, 'w') as outfile:
for i, line in enumerate(lines):
if i == 4:
nline = line.split('/')
@@ -32,19 +33,19 @@ def update_alacritty(csname):
"""
Updates the ~/.config/alacritty/alacritty.yml file with new color scheme.
"""
- if csname not in CSLIST:
+ if csname not in CSLIST:
return f"{csname} not in {XCDIR}"
-
+
with open(ALPATH, 'r') as infile:
lines = infile.readlines()
-
+
for line in lines:
if 'background' in line:
print(line)
return None
- with open(file_dir, 'w') as outfile:
+ with open(file_dir, 'w') as outfile:
for i, line in enumerate(lines):
if i == 4:
nline = line.split('/')
@@ -53,3 +54,7 @@ def update_alacritty(csname):
outfile.write(nline)
else:
outfile.write(line)
+
+
+if __name__=="__main__":
+ print('Test')