From fbb6149ad0825bb2be71edf1e0dd1a1a397f1193 Mon Sep 17 00:00:00 2001 From: Uyanide Date: Mon, 23 Jun 2025 06:52:31 +0200 Subject: [PATCH] update --- .utils/fetch-weather.service | 11 +++++++++++ .utils/fetch-weather.timer | 10 ++++++++++ README.md | 6 ++++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .utils/fetch-weather.service create mode 100644 .utils/fetch-weather.timer diff --git a/.utils/fetch-weather.service b/.utils/fetch-weather.service new file mode 100644 index 0000000..ace22ff --- /dev/null +++ b/.utils/fetch-weather.service @@ -0,0 +1,11 @@ +[Unit] +Description=Fetch Weather +After=network.target + +[Service] +Type=oneshot +ExecStart=/home/Username_PLACEHOLDER/.config/eww/Main/scripts/weather --getdata +WorkingDirectory=/home/Username_PLACEHOLDER/.config/eww/Main/scripts +Environment=OPENWEATHER_API_KEY="Onecall_3.0_APIKey_PLACEHOLDER" +Environment=OPENWEATHER_LAT="Latitude_PLACEHOLDER" +Environment=OPENWEATHER_LON="Longitude_PLACEHOLDER" diff --git a/.utils/fetch-weather.timer b/.utils/fetch-weather.timer new file mode 100644 index 0000000..6bfd13e --- /dev/null +++ b/.utils/fetch-weather.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Fetch weather information every hour +Requires=fetch-weather.service + +[Timer] +OnCalendar=hourly +Persistent=true + +[Install] +WantedBy=timers.target diff --git a/README.md b/README.md index 5980361..a925ada 100644 --- a/README.md +++ b/README.md @@ -18,11 +18,13 @@ ## Hyprland & most of Hypr\* ecosystem -Based on [end-4/dots-hyprland](https://github.com/end-4/dots-hyprland) but without ags. +Based on [end-4/dots-hyprland](https://github.com/end-4/dots-hyprland) but without ags amd tons of other stuff. ## Eww -Modified "Main Dashboard" from [syndrizzle/hotfiles](https://github.com/syndrizzle/hotfiles/tree/bspwm) without notification center. +- **"main"**, modified from [syndrizzle/hotfiles](https://github.com/syndrizzle/hotfiles/tree/bspwm) without notification center. +- **"lyrics"**, dependent on api from [akashrchandran/spotify-lyrics-api](https://github.com/akashrchandran/spotify-lyrics-api) and [a small program](https://github.com/Uyanide/spotify-lyrics) from myself. +- weather API from [Openweather](https://openweathermap.org/), requires API Key and two systemd files in `.utils/` ## Grub theme