Pass user arguments to redshift
This commit is contained in:
parent
9a8c1011a8
commit
d311a53284
@ -9,7 +9,7 @@ from i3pystatus import IntervalModule, formatp
|
|||||||
|
|
||||||
class RedshiftController(threading.Thread):
|
class RedshiftController(threading.Thread):
|
||||||
|
|
||||||
def __init__(self, args=""):
|
def __init__(self, args=[]):
|
||||||
"""Initialize controller and start child process
|
"""Initialize controller and start child process
|
||||||
|
|
||||||
The parameter args is a list of command line arguments to pass on to
|
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._period = 'Unknown'
|
||||||
self._location = (0.0, 0.0)
|
self._location = (0.0, 0.0)
|
||||||
|
|
||||||
cmd = ["redshift"]
|
cmd = ["redshift"] + args
|
||||||
if "-v" not in cmd:
|
if "-v" not in cmd:
|
||||||
cmd += ["-v"]
|
cmd += ["-v"]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user