From b2abaa7c40661010a971e516807aea306d7722f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Wed, 7 Sep 2022 19:19:26 +0200 Subject: [PATCH] :rocket: add tray service to start polybar --- modules/programs/bspwm/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/programs/bspwm/default.nix b/modules/programs/bspwm/default.nix index 7c0d4a4..314a37b 100644 --- a/modules/programs/bspwm/default.nix +++ b/modules/programs/bspwm/default.nix @@ -51,7 +51,6 @@ in focus_follows_pointer = true; }; startupPrograms = [ - "${pkgs.systemd}/bin/systemctl --user start polybar.service" "randomWallpaper" "${pkgs.synology-drive-client}/bin/synology-drive" ]; @@ -72,6 +71,15 @@ in ''; }; }; + systemd.user.targets.tray = { + Unit = { + Description = "Bspwm Tray Target"; + After = [ "graphical-session.target" ]; + }; + Install = { + WantedBy = [ "graphical-session.target" ]; + }; + }; home.packages = with pkgs; [ bc # HACK to get bsp-layout to work