A minimal weather line with forecast pop up on click. Using rofi for the pop up and wttr.in as the weather interface.
The popup with the default rofi theme
- rofi
- curl
- Copy the script into your directory of choice, e.g. ~/.i3blocks/blocklets
- Give it execution permission (
chmod +x rofi-wttr
) - Optional: Customize your rofi theme via the
rofi-theme-selector
command - Optional: Customize the rofi launch options in the script
- Optional: Customize the wttr curl arguments in the script
- Add the following blocklet to your i3blocks.conf:
[rofi-wttr]
command=$SCRIPT_DIR/rofi-wttr
interval=3600
#BAR_POSITION=top
#FONT=Monospace 10
#LABEL=🌡️
#LOCATION=Washington_DC
#ROFI_CONFIG_FILE=/dev/null
Modeled off of rofi-calendar with thanks to its authors.