sway: improve startup

This commit is contained in:
Leonardo Eugênio 2022-12-21 21:06:47 -03:00
parent 31c01e92aa
commit c72f4a14e5
3 changed files with 20 additions and 1 deletions

View file

@ -7,6 +7,7 @@
After = [ "graphical-session.target" ];
};
Service = {
ExecStartPre = "/usr/bin/env sleep 10s";
ExecStart = "${pkgs.thunderbird}/bin/thunderbird";
Restart = "on-failure";
};
@ -19,7 +20,7 @@
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" "telegram.service" ];
};
Service = {
ExecStartPre = "/usr/bin/env sleep 1s";
ExecStartPre = "/usr/bin/env sleep 12s";
ExecStart = "${pkgs.webcord}/bin/webcord";
Restart = "on-failure";
};
@ -32,6 +33,7 @@
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ];
};
Service = {
ExecStartPre = "/usr/bin/env sleep 11s";
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
Restart = "on-failure";
};

View file

@ -133,6 +133,22 @@ in {
};
programs.bash = { enable = true; };
systemd.user.services = {
steam = {
Unit = {
Description = "Steam client";
PartOf = [ "graphical-session.target" ];
After = [ "graphical-session.target" ];
};
Service = {
ExecStartPre = "/usr/bin/env sleep 20s";
ExecStart = "${pkgs.steam}/bin/steam";
Restart = "on-failure";
};
Install = { WantedBy = [ "sway-session.target" ]; };
};
};
services.kdeconnect = {
enable = true;
indicator = true;

View file

@ -304,6 +304,7 @@ in {
extraConfig = ''
for_window [title=.*] inhibit_idle fullscreen
exec ${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
exec swaymsg workspace 2
'';
};
services.swayidle = {