| 
									
										
										
										
											2025-02-20 21:19:21 +00:00
										 |  |  | { | 
					
						
							|  |  |  |   config, | 
					
						
							|  |  |  |   lib, | 
					
						
							|  |  |  |   pkgs, | 
					
						
							|  |  |  |   ... | 
					
						
							|  |  |  | }: | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | with lib; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2025-03-05 15:09:06 +00:00
										 |  |  |   options.homeManagerModules.dwm.enable = mkEnableOption "Enable dwm"; | 
					
						
							| 
									
										
										
										
											2025-02-20 21:19:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-05 15:09:06 +00:00
										 |  |  |   config = mkIf config.homeManagerModules.dwm.enable { | 
					
						
							| 
									
										
										
										
											2025-02-28 00:18:04 +00:00
										 |  |  |     home = { | 
					
						
							| 
									
										
										
										
											2025-03-18 16:07:04 +00:00
										 |  |  |       file."${config.home.sessionVariables.XINITRC}".text = ''
 | 
					
						
							| 
									
										
										
										
											2025-02-28 00:18:04 +00:00
										 |  |  |         systemctl --user import-environment DISPLAY | 
					
						
							| 
									
										
										
										
											2025-02-20 21:19:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-28 00:18:04 +00:00
										 |  |  |         poweralertd -s & | 
					
						
							| 
									
										
										
										
											2025-02-20 21:19:21 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-17 23:05:33 +00:00
										 |  |  |         setbg & | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-28 00:18:04 +00:00
										 |  |  |         systemctl --user start dwm-status & | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         exec dwm | 
					
						
							|  |  |  |       '';
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-03-18 16:07:04 +00:00
										 |  |  |       sessionVariables = { | 
					
						
							|  |  |  |         XINITRC = "${config.xdg.configHome}/X11/xinitrc"; | 
					
						
							|  |  |  |       }; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-02-28 00:18:04 +00:00
										 |  |  |       packages = with pkgs; [ | 
					
						
							|  |  |  |         dunst | 
					
						
							|  |  |  |         poweralertd | 
					
						
							| 
									
										
										
										
											2025-03-17 23:05:33 +00:00
										 |  |  |         xwallpaper | 
					
						
							| 
									
										
										
										
											2025-02-28 00:18:04 +00:00
										 |  |  |       ]; | 
					
						
							|  |  |  |     }; | 
					
						
							| 
									
										
										
										
											2025-02-20 21:19:21 +00:00
										 |  |  |   }; | 
					
						
							|  |  |  | } |