X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/099e23aac2372f11a6f2b9a8c0d62bdfd8ee85b6..9ec9f475c886a8fba0532cb3d1b47190c01352fa:/widgets/contrib/redshift.lua?ds=inline diff --git a/widgets/contrib/redshift.lua b/widgets/contrib/redshift.lua index fdda61f..73cc100 100644 --- a/widgets/contrib/redshift.lua +++ b/widgets/contrib/redshift.lua @@ -26,7 +26,7 @@ function redshift:start() end function redshift:toggle() - async(string.format("%s -c 'ps -p %d -o pid='", awful.util.shell, redshift.pid), function(f) + async({ awful.util.shell, "-c", string.format("ps -p %d -o pid=", redshift.pid) }, function(f) if f and #f > 0 then -- redshift is running -- Sending -USR1 toggles redshift (See project website) execute("pkill -USR1 redshift")