From eab68ccb0eaf242e8f3d69e65b058d7fd9408f84 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Fri, 7 Jun 2019 18:54:06 +0000 Subject: [PATCH] [awesome] better regex for redshift widget to check if process is running --- home/.config/awesome/widgets.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/.config/awesome/widgets.lua b/home/.config/awesome/widgets.lua index 5b02716..30064ec 100644 --- a/home/.config/awesome/widgets.lua +++ b/home/.config/awesome/widgets.lua @@ -112,7 +112,7 @@ helpers.newtimer("bluetooth", 10, widgets.bluetooth.update) widgets.redshift = wibox.widget.imagebox(iconsdir .. "redshift-on.png") widgets.redshift.pid = nil -helpers.async_with_shell("ps x -o pid=,command=|grep -E 'redshift$' |cut -d' ' -f 1", function(pid) +helpers.async_with_shell("ps x -o pid=,command=|grep -E '^[0-9]* redshift$' |cut -d' ' -f 1", function(pid) if pid and #pid > 0 then widgets.redshift.pid = tonumber(pid) else