A simple way to displaycurl
the weather of your current region in your bar using just wttr.in.
Name | Description |
---|---|
curl |
A command-line tool for transferring data specified with URL syntax. |
awesome-git |
Highly configurable framework window manager. |
Implementing this widget is as simple as peeling a banana 🍌.
- Clone this repository and copy the files to the Awesome WM configuration directory. eg:
git clone https://github.com/paodelonga/awesome-widgets.git
cp --recursive --parents awesome-widgets/widgets/ ~/.config/awesome/
- Then add the following lines to your rc.lua
-- Importing the widget
local widgets = require("widgets")
-- Configure the Widget
local weather = widgets.weather({
timeout = 900,
font = {
name = "Font Name",
color = "HEX Color Code"
}
})
-- Add the Widget to your Wibar
s.wibar:setup({
weather
})
--[>D]
-
Then go to the init.lua file and uncomment the following line
-- To activate a Widget move the line out of the comment block. return { --[[ - weather = require("widgets.weather") --]] + weather = require("widgets.weather") } --[>D]
Check the configuration category to learn more about the widgets parameters and settings.
Now the widget has been installed, to initialize just restart your environment.
Parameter | Description | Type | Value | Default |
---|---|---|---|---|
timeout |
Check execution interval | number |
seconds |
900 |
font |
Table containing information about the source | table |
table |
|
font.name |
Name of the font to be used | string |
font-family |
Noto Mono 9 |
font.color |
Color of the font | string |
hex color |
#FAFAFA |
- Paodelonga
- wttr.in contributors