From 9a9d75a93c98628a5421ea88b640d04f410778f2 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Tue, 28 May 2024 22:36:22 +0200 Subject: rc.lua: re-add v4 net usage widget --- rc.lua | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'rc.lua') diff --git a/rc.lua b/rc.lua index 1601c2e..f428213 100644 --- a/rc.lua +++ b/rc.lua @@ -86,6 +86,16 @@ mybatwidget = wibox.widget.textbox() vicious.register(mybatwidget, vicious.widgets.bat, "$1$2%", 61, "BAT0") -- }}} +-- {{{ Network usage +mydnicon = wibox.widget.imagebox("/home/anrxc/.config/awesome/icons/down.png", false) +myupicon = wibox.widget.imagebox("/home/anrxc/.config/awesome/icons/up.png", false) +-- Initialize widget +mynetwidget = wibox.widget.textbox() +vicious.register(mynetwidget, vicious.widgets.net, '${eth0 down_kb} ${eth0 up_kb}', 3) +-- }}} + -- {{{ Date and time mydateicon = wibox.widget.imagebox("/home/anrxc/.config/awesome/icons/time.png", false) -- Initialize widgets @@ -207,6 +217,10 @@ awful.screen.connect_for_each_screen(function(s) mybaticon, mybatwidget, myseparator, + mydnicon, + mynetwidget, + myupicon, + myseparator, mydateicon, mydatestwidget, myseparator, @@ -478,13 +492,17 @@ awful.rules.rules = { }, { rule = { name = "Alpine" }, - properties = { screen = 1, tag = "4" } }, + properties = { screen = 1, tag = "mail" } }, + { rule = { name = "alpine" }, + properties = { screen = 1, tag = "mail" } }, { rule = { class = "Emacs" }, - properties = { screen = scount, tag = "2" } }, + properties = { screen = scount, tag = "emacs" } }, { rule = { class = "Firefox" }, - properties = { screen = scount, tag = "3" } }, + properties = { screen = scount, tag = "web" } }, + { rule = { class = "firefox" }, + properties = { screen = scount, tag = "web" } }, { rule = { class = "Slack" }, - properties = { screen = scount, tag = "5" } }, + properties = { screen = scount, tag = "im" } }, { rule_any = { instance = { -- cgit v1.2.3