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