This commit is contained in:
parent
ec72053b8c
commit
d0b4f8cdf5
2 changed files with 19 additions and 0 deletions
|
@ -16,6 +16,8 @@
|
|||
|
||||
{"", "status-cpu", 10, 0},
|
||||
|
||||
{"", "status-weather", 600, 0},
|
||||
|
||||
{"", "date '+%a %d %B %Y %H:%M %Z'", 30, 0},
|
||||
};
|
||||
|
||||
|
|
17
modules/hosts/t480/dwm/dwmblocks/weather.nix
Normal file
17
modules/hosts/t480/dwm/dwmblocks/weather.nix
Normal file
|
@ -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
|
||||
'';
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue