From 8ad454de381eb2d01133d8e1db4de2f88b07e866 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 2 Dec 2020 09:02:07 -0500 Subject: [cpu] use sh instead of bash --- cpu-widget/cpu-widget.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cpu-widget') diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua index 317ef0a..54547ae 100644 --- a/cpu-widget/cpu-widget.lua +++ b/cpu-widget/cpu-widget.lua @@ -139,7 +139,7 @@ local function worker(args) local cpu_widget = wibox.container.margin(wibox.container.mirror(cpugraph_widget, { horizontal = true }), 0, 0, 0, 2) local cpus = {} - watch([[bash -c "grep '^cpu.' /proc/stat; ps -eo '%p|%c|%C|' -o "%mem" -o '|%a' --sort=-%cpu | head -11 | tail -n +2"]], timeout, + watch([[sh -c "grep '^cpu.' /proc/stat; ps -eo '%p|%c|%C|' -o "%mem" -o '|%a' --sort=-%cpu | head -11 | tail -n +2"]], timeout, function(widget, stdout) local i = 1 local j = 1 @@ -227,11 +227,11 @@ local function worker(args) row:connect_signal("mouse::enter", function(c) c:set_bg(beautiful.bg_focus) end) row:connect_signal("mouse::leave", function(c) c:set_bg(beautiful.bg_normal) end) - + if enable_kill_button then row:connect_signal("mouse::enter", function(c) kill_proccess_button.icon.opacity = 1 end) row:connect_signal("mouse::leave", function(c) kill_proccess_button.icon.opacity = 0.1 end) - + kill_proccess_button:buttons( awful.util.table.join( awful.button({}, 1, function() row:set_bg('#ff0000') -- cgit v1.2.3