From 6f3935f7364dce43f06f0111d4f9a741c24573d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Sun, 7 May 2023 12:18:50 -0300 Subject: [PATCH] chat: add Element client --- user/chat.nix | 20 +++++++++++++++++++- user/sway/sway-assigns.nix | 2 ++ 2 files changed, 21 insertions(+), 1 deletion(-) 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 = {