sway: improve startup
This commit is contained in:
parent
31c01e92aa
commit
c72f4a14e5
|
@ -7,6 +7,7 @@
|
||||||
After = [ "graphical-session.target" ];
|
After = [ "graphical-session.target" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
|
ExecStartPre = "/usr/bin/env sleep 10s";
|
||||||
ExecStart = "${pkgs.thunderbird}/bin/thunderbird";
|
ExecStart = "${pkgs.thunderbird}/bin/thunderbird";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
@ -19,7 +20,7 @@
|
||||||
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" "telegram.service" ];
|
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" "telegram.service" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
ExecStartPre = "/usr/bin/env sleep 1s";
|
ExecStartPre = "/usr/bin/env sleep 12s";
|
||||||
ExecStart = "${pkgs.webcord}/bin/webcord";
|
ExecStart = "${pkgs.webcord}/bin/webcord";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
@ -32,6 +33,7 @@
|
||||||
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ];
|
After = [ "graphical-session.target" "pipewire-pulse.service" "tray.service" ];
|
||||||
};
|
};
|
||||||
Service = {
|
Service = {
|
||||||
|
ExecStartPre = "/usr/bin/env sleep 11s";
|
||||||
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
|
ExecStart = "${pkgs.tdesktop}/bin/telegram-desktop";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
|
|
|
@ -133,6 +133,22 @@ in {
|
||||||
};
|
};
|
||||||
programs.bash = { enable = true; };
|
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 = {
|
services.kdeconnect = {
|
||||||
enable = true;
|
enable = true;
|
||||||
indicator = true;
|
indicator = true;
|
||||||
|
|
|
@ -304,6 +304,7 @@ in {
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
for_window [title=.*] inhibit_idle fullscreen
|
for_window [title=.*] inhibit_idle fullscreen
|
||||||
exec ${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
|
exec ${pkgs.dbus-sway-environment}/bin/dbus-sway-environment
|
||||||
|
exec swaymsg workspace 2
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
services.swayidle = {
|
services.swayidle = {
|
||||||
|
|
Loading…
Reference in a new issue