From 2ab0b842097c95577197d3ff8f93478d81c11440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Eug=C3=AAnio?= Date: Tue, 8 Aug 2023 12:43:24 -0300 Subject: [PATCH] monolith: autostart some apps --- user/chat.nix | 4 ++-- user/home.nix | 9 ++++++++- user/sway/sway-assigns.nix | 5 +++++ 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/user/chat.nix b/user/chat.nix index bfe5b39..34ddd84 100644 --- a/user/chat.nix +++ b/user/chat.nix @@ -2,8 +2,8 @@ wayland.windowManager.sway = { extraConfig = '' exec thunderbird - exec sleep 3s && exec webcord - exec sleep 3s && exec telegram-desktop + exec webcord + exec telegram-desktop ''; }; diff --git a/user/home.nix b/user/home.nix index 4a7c5c5..896243f 100644 --- a/user/home.nix +++ b/user/home.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, inputs, ... }: { +{ config, pkgs, lib, inputs, osConfig, ... }: { imports = [ ./controller.nix ./waybar @@ -174,6 +174,13 @@ indicator = true; }; + wayland.windowManager.sway.extraConfig = lib.optionalString (osConfig.networking.hostName or "" == "monolith") '' + exec steam + exec obs --startreplaybuffer + exec deluge-gtk + exec nicotine + ''; + # This value determines the Home Manager release that your # configuration is compatible with. This helps avoid breakage # when a new Home Manager release introduces backwards diff --git a/user/sway/sway-assigns.nix b/user/sway/sway-assigns.nix index 66f8388..3731222 100644 --- a/user/sway/sway-assigns.nix +++ b/user/sway/sway-assigns.nix @@ -26,6 +26,11 @@ in { class = "Chromium"; } { app_id = "chromium"; } ]; + "6" = [ + { app_id = "org.nicotine_plus.Nicotine"; } + { app_id = "deluge"; } + { app_id = "com.obsproject.Studio"; } + ]; "7" = [ { app_id = "thunderbird"; } { app_id = "astroid"; }