diff --git a/user/chat.nix b/user/chat.nix index 2ec4a2b..9fcb4c9 100644 --- a/user/chat.nix +++ b/user/chat.nix @@ -53,7 +53,25 @@ }; Install = { WantedBy = [ "sway-session.target" ]; }; }; + element = { + Unit = { + Description = "Feature-rich client for Matrix.org"; + PartOf = [ "graphical-session.target" ]; + After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ]; + }; + Service = { + ExecStartPre = "/usr/bin/env sleep 11s"; + ExecStart = "${pkgs.element-desktop-wayland}/bin/element-desktop"; + Restart = "on-failure"; + }; + Install = { WantedBy = [ "sway-session.target" ]; }; + }; }; - home.packages = with pkgs; [ tdesktop webcord thunderbird ]; + home.packages = with pkgs; [ + tdesktop + webcord + thunderbird + element-desktop-wayland + ]; } diff --git a/user/sway/sway-assigns.nix b/user/sway/sway-assigns.nix index c0c5c0f..66f8388 100644 --- a/user/sway/sway-assigns.nix +++ b/user/sway/sway-assigns.nix @@ -43,6 +43,8 @@ in { title = "Discord"; } { class = "WebCord"; } { app_id = "WebCord"; } + { class = "Element"; } + { app_id = "Element"; } ]; }; floating = {