summaryrefslogtreecommitdiff
path: root/pywal
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2018-04-16 19:39:51 +1000
committerDylan Araps <dylan.araps@gmail.com>2018-04-16 19:39:51 +1000
commitff2ad9bd3560b92b8d195616929ac63251e4c217 (patch)
treedc4c04b2c5e76857c3a337305ff93e1473a8d31a /pywal
parent80449d94399f33fcc2d60785086af845235c8769 (diff)
colors: Limit palette width.
Diffstat (limited to 'pywal')
-rw-r--r--pywal/colors.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pywal/colors.py b/pywal/colors.py
index 34fe521..fa606e7 100644
--- a/pywal/colors.py
+++ b/pywal/colors.py
@@ -94,8 +94,6 @@ def get_backend(backend):
def palette():
"""Generate a palette from the colors."""
- col_width = " " * (os.get_terminal_size().columns // 8)
-
for i in range(0, 16):
if i % 8 == 0:
print()
@@ -103,7 +101,7 @@ def palette():
if i > 7:
i = "8;5;%s" % i
- print("\033[4%sm%s\033[0m" % (i, col_width), end="")
+ print("\033[4%sm%s\033[0m" % (i, " " * (80 // 20)), end="")
print("\n")