summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2024-05-28 22:36:22 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2024-05-28 22:37:13 +0200
commit9a9d75a93c98628a5421ea88b640d04f410778f2 (patch)
tree97109d1c4d614738315460a3e0957383f825a4da /rc.lua
parent6a5354e09fcf0a89e2d48bd80ecd494fc52c7b48 (diff)
downloadawesome-configs-9a9d75a93c98628a5421ea88b640d04f410778f2.tar.xz
rc.lua: re-add v4 net usage widget
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua26
1 files changed, 22 insertions, 4 deletions
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, '<span color="'
+ .. beautiful.fg_netdn_widget ..'">${eth0 down_kb}</span> <span color="'
+ .. beautiful.fg_netup_widget ..'">${eth0 up_kb}</span>', 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 = {