Skip to content

Latest commit

 

History

History

weather

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Awesome Window Manager

🌥️ Weather

Widget Preview

A simple way to displaycurl the weather of your current region in your bar using just wttr.in.


📑 Table of Contents


🔧 Dependencies

Name Description
curl A command-line tool for transferring data specified with URL syntax.
awesome-git Highly configurable framework window manager.

🚀 Installation

Implementing this widget is as simple as peeling a banana 🍌.

  1. 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/
  1. 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]
  1. 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.


⚙️ Configuration

📑 Parameters

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

💡 Contributors


👤 Credits

Back to top