diff options
author | streetturtle <streetturtle@gmail.com> | 2020-12-02 09:02:07 -0500 |
---|---|---|
committer | streetturtle <streetturtle@gmail.com> | 2020-12-02 09:05:10 -0500 |
commit | 8ad454de381eb2d01133d8e1db4de2f88b07e866 (patch) | |
tree | c9b67b473f1d92ea082bdf8d8f0d05264fafb20d | |
parent | e1d71bf6c97e6db77ced483349d9dcc73efaaa68 (diff) |
[cpu] use sh instead of bash
-rw-r--r-- | cpu-widget/cpu-widget.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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') |