chat: add Element client

This commit is contained in:
Leonardo Eugênio 2023-05-07 12:18:50 -03:00
parent b400bd938e
commit 6f3935f736
2 changed files with 21 additions and 1 deletions

View file

@ -53,7 +53,25 @@
}; };
Install = { WantedBy = [ "sway-session.target" ]; }; 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
];
} }

View file

@ -43,6 +43,8 @@ in
{ title = "Discord"; } { title = "Discord"; }
{ class = "WebCord"; } { class = "WebCord"; }
{ app_id = "WebCord"; } { app_id = "WebCord"; }
{ class = "Element"; }
{ app_id = "Element"; }
]; ];
}; };
floating = { floating = {