nixos/bspwm: spawn bpswm process in the background and properly set waiPID (#39707)

Milo b405a653 89d2dbb3

Changed files
+1 -1
nixos
modules
services
x11
window-managers
+1 -1
nixos/modules/services/x11/window-managers/bspwm.nix
···
start = ''
export _JAVA_AWT_WM_NONREPARENTING=1
SXHKD_SHELL=/bin/sh ${cfg.sxhkd.package}/bin/sxhkd ${optionalString (cfg.sxhkd.configFile != null) "-c \"${cfg.sxhkd.configFile}\""} &
-
${cfg.package}/bin/bspwm ${optionalString (cfg.configFile != null) "-c \"${cfg.configFile}\""}
+
${cfg.package}/bin/bspwm ${optionalString (cfg.configFile != null) "-c \"${cfg.configFile}\""} &
waitPID=$!
'';
};