From 07626eb69267b1cff879a807d9f236c6e4398e32 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 a3bf6cfa..336d4c73 100644 --- a/home-config/config/work/famedly.nix +++ b/home-config/config/work/famedly.nix @@ -1,4 +1,5 @@ { + pkgs, lib, flake-inputs, ... @@ -38,4 +39,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"; }