diff --git a/modules/hosts/t480/dwm/dwmblocks/default.nix b/modules/hosts/t480/dwm/dwmblocks/default.nix index 8adc434f..6257ac2d 100644 --- a/modules/hosts/t480/dwm/dwmblocks/default.nix +++ b/modules/hosts/t480/dwm/dwmblocks/default.nix @@ -16,6 +16,8 @@ {"", "status-cpu", 10, 0}, + {"", "status-weather", 600, 0}, + {"", "date '+%a %d %B %Y %H:%M %Z'", 30, 0}, }; diff --git a/modules/hosts/t480/dwm/dwmblocks/weather.nix b/modules/hosts/t480/dwm/dwmblocks/weather.nix new file mode 100644 index 00000000..2002481a --- /dev/null +++ b/modules/hosts/t480/dwm/dwmblocks/weather.nix @@ -0,0 +1,17 @@ +{ + flake.modules.homeManager.gui = + { pkgs, ... }: + { + home.packages = [ + (pkgs.writeShellApplication { + name = "status-weather"; + + runtimeInputs = with pkgs; [ curl ]; + + text = '' + curl -s https://wttr.in/Caerleon?format=%t + ''; + }) + ]; + }; +}