From d311a53284d1492b7dc50d22122b63d8c0360ac4 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 26 Oct 2016 09:42:58 -0200 Subject: [PATCH] Pass user arguments to redshift --- i3pystatus/redshift.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/i3pystatus/redshift.py b/i3pystatus/redshift.py index b784afc..97e41a0 100644 --- a/i3pystatus/redshift.py +++ b/i3pystatus/redshift.py @@ -9,7 +9,7 @@ from i3pystatus import IntervalModule, formatp class RedshiftController(threading.Thread): - def __init__(self, args=""): + def __init__(self, args=[]): """Initialize controller and start child process The parameter args is a list of command line arguments to pass on to @@ -26,7 +26,7 @@ class RedshiftController(threading.Thread): self._period = 'Unknown' self._location = (0.0, 0.0) - cmd = ["redshift"] + cmd = ["redshift"] + args if "-v" not in cmd: cmd += ["-v"]