From c72f4a14e50f4eda518f6c7d7f80765e4785deba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Wed, 21 Dec 2022 21:06:47 -0300 Subject: [PATCH] sway: improve startup --- user/chat.nix | 4 +++- user/home.nix | 16 ++++++++++++++++ user/sway.nix | 1 + 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/user/chat.nix b/user/chat.nix index 8864126..f5fc2e0 100644 --- a/user/chat.nix +++ b/user/chat.nix @@ -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"; }; diff --git a/user/home.nix b/user/home.nix index be1b083..f709ae1 100644 --- a/user/home.nix +++ b/user/home.nix @@ -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; diff --git a/user/sway.nix b/user/sway.nix index f429489..99e670b 100644 --- a/user/sway.nix +++ b/user/sway.nix @@ -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 = {