Skip to content

Commit

Permalink
rin: Add autostart for work websites
Browse files Browse the repository at this point in the history
  • Loading branch information
tlater-famedly authored and TLATER committed Mar 4, 2024
1 parent ff3aeb1 commit 85d5605
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions home-config/config/desktop/sway.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ in {
enable = true;
package = null;
config = null;
systemd.xdgAutostart = true;
extraConfig = lib.fileContents ../../dotfiles/sway.conf;
};

Expand Down
15 changes: 15 additions & 0 deletions home-config/config/work/famedly.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
pkgs,
lib,
flake-inputs,
...
Expand Down Expand Up @@ -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";
}

0 comments on commit 85d5605

Please sign in to comment.