A simple widget to show the IP of an interface in the awesomewm window manager wibar.
Clone the repo under your widgets folder:
- If you are using a custom theme: ~/.config/awesome/widgets/
- If you are using a default theme: /usr/share/awesome/lib/ (requires root privileges)
Edit awesome-ip-widget/ip.lua and set your interface name
local interface = "enp0s3" --Change enp0s3 for your interface name
Edit your rc.lua file and add the following
- If you are using a custom theme: ~/.config/awesome/rc.lua
- If you are using a default theme: /etc/xdg/awesome/rc.lua (requires root privileges)
local ip_widget = require("widgets.awesome-ip-widget.ip")
...
s.mytasklist, -- Middle widget
{ -- Right widgets
layout = wibox.layout.fixed.horizontal,
...
ip_widget,
...
},
Restart awesome ;)
In case of any problem create an issue
If you want ask (or answer) a question, leave an opinion or have a open-ended conversation you can create (or join) a discussion
If you find this widget useful you can star this repo.