nixos-config/profiles/workspace/i3blocks/scripts/weather.nix
2022-09-01 23:10:23 +04:00

6 lines
163 B
Nix

{ bash, config, curl, iconfont, ... }: ''
#!${bash}/bin/bash
WTTR=$(${curl}/bin/curl wttr.in/?format=1)
echo "<span font=\"Roboto Mono 11\">$WTTR</span>"
''