diff options
-rw-r--r-- | cpu-widget/cpu-widget.lua | 4 | ||||
-rw-r--r-- | net-speed-widget/README.md | 21 | ||||
-rw-r--r-- | ram-widget/README.md | 18 |
3 files changed, 40 insertions, 3 deletions
diff --git a/cpu-widget/cpu-widget.lua b/cpu-widget/cpu-widget.lua index d804c80..c8b90c8 100644 --- a/cpu-widget/cpu-widget.lua +++ b/cpu-widget/cpu-widget.lua @@ -100,13 +100,14 @@ local function worker(user_args) local step_width = args.step_width or 2 local step_spacing = args.step_spacing or 1 local color = args.color or beautiful.fg_normal + local background_color = args.background_color or "#00000000" local enable_kill_button = args.enable_kill_button or false local process_info_max_length = args.process_info_max_length or -1 local timeout = args.timeout or 1 local cpugraph_widget = wibox.widget { max_value = 100, - background_color = "#00000000", + background_color = background_color, forced_width = width, step_width = step_width, step_spacing = step_spacing, @@ -163,6 +164,7 @@ local function worker(user_args) layout = wibox.container.mirror }, bottom = 2, + color = background_color, widget = wibox.container.margin } diff --git a/net-speed-widget/README.md b/net-speed-widget/README.md index 1cac674..a09893e 100644 --- a/net-speed-widget/README.md +++ b/net-speed-widget/README.md @@ -1,3 +1,22 @@ # Net Speed Widget -The widget and readme is in progress
\ No newline at end of file +The widget and readme is in progress + +## Installation + +Please refer to the [installation](https://github.com/streetturtle/awesome-wm-widgets#installation) section of the repo. + +Clone repo, include widget and use it in **rc.lua**: + +```lua +local net_speed_widget = require("awesome-wm-widgets.net-speed-widget.net-speed") +... +s.mytasklist, -- Middle widget + { -- Right widgets + layout = wibox.layout.fixed.horizontal, + ... + net_speed_widget(), + ... + } + ... +``` diff --git a/ram-widget/README.md b/ram-widget/README.md index 8f8eee4..dcbf9ab 100644 --- a/ram-widget/README.md +++ b/ram-widget/README.md @@ -18,4 +18,20 @@ It is possible to customize widget by providing a table with all or some of the ## Installation -Please refer to the [installation](https://github.com/streetturtle/awesome-wm-widgets#installation) section of the repo.
\ No newline at end of file +Please refer to the [installation](https://github.com/streetturtle/awesome-wm-widgets#installation) section of the repo. + +Clone repo, include widget and use it in **rc.lua**: + +```lua +local ram_widget = require("awesome-wm-widgets.ram-widget.ram-widget") +... +s.mytasklist, -- Middle widget + { -- Right widgets + layout = wibox.layout.fixed.horizontal, + ... + ram_widget(), + ... + } + ... +``` + |