Skip to content

Custom module for showing the weather in Waybar, using the great wttr.io and Nerd Fonts icons.

License

Notifications You must be signed in to change notification settings

sh4k095/wttrbar-nerd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wttrbar-nerd

My fork of wttrbar, a simple but detailed weather indicator for Waybar using wttr.in. This uses Nerd Fonts icons rather than Noto Fonts emojis.


Installation

Compile yourself using cargo build --release and add the resulting wttrbar binary to your $PATH.

Usage

  • --ampm - display time in AM/PM format
  • --location - pass a specific location to wttr.in
  • --main-indicator - decide which current_conditions key will be shown on waybar. defaults to temp_C
  • --date-format - defaults to %Y-%m-%d, formats the date next to the days. see reference
  • --hide-conditions - show a shorter descrpition next to each hour, like 7° Mist instead of 7° Mist, Overcast 81%, Sunshine 17%, Frost 15%
  • --fahrenheit - use fahrenheit instead of celsius

e.g. wttrbar --date-format "%m/%d" --location Paris --hide-conditions

Waybar configuration

Assuming wttrbar is in your path, it can be used like:

"custom/weather": {
    "format": "{} °",
    "tooltip": true,
    "interval": 3600,
    "exec": "wttrbar",
    "return-type": "json"
},

About

Custom module for showing the weather in Waybar, using the great wttr.io and Nerd Fonts icons.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • Rust 100.0%