feat: consistent konawall on hyprland

This commit is contained in:
Kat Inskip 2024-03-10 12:28:14 -07:00
parent 576f3a3e7e
commit 15f40761fb
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
17 changed files with 92 additions and 72 deletions

View file

@ -1,19 +1,24 @@
{
inputs,
pkgs,
config,
...
}: let
desktop_entry = ''
[Desktop Entry]
Exec=${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall
Icon=
Name=konawall
Path=
Terminal=False
Type=Application
'';
systemd.user.services.konawall-py = {
Unit = {
Description = "konawall-py";
X-Restart-Triggers = [(toString config.xdg.configFile."konawall/config.toml".source)];
After = ["hyprland-session.target"];
};
Service = {
ExecStart = "${inputs.konawall-py.packages.${pkgs.system}.konawall-py}/bin/konawall";
Restart = "always";
};
Install = {WantedBy = ["hyprland-session.target"];};
};
konawallConfig = {
interval = 30 * 60;
interval = 60 * 5;
rotate = true;
source = "konachan";
tags = [