From 50d20a6a1006df708639110299d13ada9ee74610 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Mon, 26 Feb 2024 18:44:19 +0100 Subject: [PATCH] rin: Add autostart for work websites --- home-config/config/desktop/sway.nix | 1 + home-config/config/work/famedly.nix | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/home-config/config/desktop/sway.nix b/home-config/config/desktop/sway.nix index a24a6c3b..c3b60357 100644 --- a/home-config/config/desktop/sway.nix +++ b/home-config/config/desktop/sway.nix @@ -44,6 +44,7 @@ in { enable = true; package = null; config = null; + systemd.xdgAutostart = true; extraConfig = lib.fileContents ../../dotfiles/sway.conf; }; diff --git a/home-config/config/work/famedly.nix b/home-config/config/work/famedly.nix index 9f4dfdd0..f0fd5d7a 100644 --- a/home-config/config/work/famedly.nix +++ b/home-config/config/work/famedly.nix @@ -1,4 +1,5 @@ { + pkgs, lib, flake-inputs, ... @@ -39,4 +40,18 @@ element.enable = lib.mkForce false; }; }; + + xdg.configFile."autostart/work-sites.desktop".source = let + desktopItem = pkgs.makeDesktopItem { + name = "work-sites"; + desktopName = "Work site autostartup"; + exec = lib.concatStringsSep " " [ + "firefox" + "https://calendar.google.com" + "https://mail.google.com" + "https://app.factorialhr.com/attendance/clock-in" + "https://messenger.famedly.de" + ]; + }; + in "${desktopItem}/share/applications/work-sites.desktop"; }