autostart thunderbird

This commit is contained in:
Leonardo Eugênio 2022-12-06 22:25:31 -03:00
parent c65c6a1331
commit 0e023887b7
2 changed files with 16 additions and 1 deletions

View file

@ -1,5 +1,17 @@
{ config, pkgs, lib, inputs, ... }: { { config, pkgs, lib, inputs, ... }: {
systemd.user.services = { systemd.user.services = {
thunderbird = {
Unit = {
Description = "Thunderbird Email client";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.thunderbird}/bin/thunderbird";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
discord = { discord = {
Unit = { Unit = {
Description = "Discord Internet voice chat"; Description = "Discord Internet voice chat";
@ -26,5 +38,5 @@
}; };
}; };
home.packages = with pkgs; [ tdesktop webcord ]; home.packages = with pkgs; [ tdesktop webcord thunderbird ];
} }

View file

@ -104,6 +104,9 @@ in {
{ class = "Chromium"; } { class = "Chromium"; }
{ app_id = "chromium"; } { app_id = "chromium"; }
]; ];
"7" = [
{ app_id = "thunderbird"; }
];
"9" = [ "9" = [
{ class = ".*[Ss]team.*"; } { class = ".*[Ss]team.*"; }
{ app_id = ".*[Ss]team.*"; } { app_id = ".*[Ss]team.*"; }