diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2023-04-07 12:19:21 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2023-04-07 12:19:21 -0300 |
commit | 184094b95852ea29df783c0270bccf3a747b6ac0 (patch) | |
tree | 81a95843d1ab6c95454ee2f5986c9f79efe4d334 | |
parent | 76f6400167ecc744897ba73cfec125574f2668f6 (diff) | |
download | awesome-184094b95852ea29df783c0270bccf3a747b6ac0.tar.gz awesome-184094b95852ea29df783c0270bccf3a747b6ac0.tar.bz2 |
Feat: adds back net_widgets (commented)
-rw-r--r-- | .gitmodules | 3 | ||||
m--------- | config.dot/awesome.link/net_widgets | 0 | ||||
-rw-r--r-- | config.dot/awesome.link/rc.lua | 1 | ||||
-rw-r--r-- | config.dot/awesome.link/wibar.lua | 9 |
4 files changed, 13 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules index fb8e5de..8a58c3a 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "config.dot/awesome.link/freedesktop"] path = config.dot/awesome.link/freedesktop url = https://github.com/copycat-killer/awesome-freedesktop +[submodule "config.dot/awesome.link/net_widgets"] + path = config.dot/awesome.link/net_widgets + url = https://github.com/pltanton/net_widgets diff --git a/config.dot/awesome.link/net_widgets b/config.dot/awesome.link/net_widgets new file mode 160000 +Subproject 36fc290ba8e94b2081c716d7ec0b4a6defcb938 diff --git a/config.dot/awesome.link/rc.lua b/config.dot/awesome.link/rc.lua index 817cf17..9f3486e 100644 --- a/config.dot/awesome.link/rc.lua +++ b/config.dot/awesome.link/rc.lua @@ -13,6 +13,7 @@ naughty = require("naughty") lain = require("lain") freedesktop = require("freedesktop") xrandr = require("xrandr") +net_widgets = require("net_widgets") -- Variables dofile(configdir .. "/variables.lua") diff --git a/config.dot/awesome.link/wibar.lua b/config.dot/awesome.link/wibar.lua index 41eafd8..65f5a89 100644 --- a/config.dot/awesome.link/wibar.lua +++ b/config.dot/awesome.link/wibar.lua @@ -93,6 +93,13 @@ awful.screen.connect_for_each_screen(function(s) -- Create the wibox s.mywibox = awful.wibar({ position = "top", screen = s }) + -- Network widgets + net_wireless = net_widgets.wireless({interface="wlan0"}) + net_wired = net_widgets.indicator({ + interfaces = {"eth0"}, + timeout = 5, + }) + -- Add widgets to the wibox s.mywibox:setup { layout = wibox.layout.align.horizontal, @@ -109,6 +116,8 @@ awful.screen.connect_for_each_screen(function(s) powerline_widget, --mytextclock, --s.mylayoutbox, + --net_wireless, + --net_wired, wibox.widget.systray(), }, } |