Skip to content

Commit d40983b

Browse files
committed
dwm: add extraSessionCommands option
1 parent d85ca92 commit d40983b

File tree

1 file changed

+9
-0
lines changed
  • nixos/modules/services/x11/window-managers

1 file changed

+9
-0
lines changed

nixos/modules/services/x11/window-managers/dwm.nix

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ in
1515
options = {
1616
services.xserver.windowManager.dwm = {
1717
enable = mkEnableOption "dwm";
18+
extraSessionCommands = mkOption {
19+
default = "";
20+
type = types.lines;
21+
description = ''
22+
Shell commands executed just before dwm is started.
23+
'';
24+
};
1825
package = mkPackageOption pkgs "dwm" {
1926
example = ''
2027
pkgs.dwm.overrideAttrs (oldAttrs: rec {
@@ -39,6 +46,8 @@ in
3946
{ name = "dwm";
4047
start =
4148
''
49+
${cfg.extraSessionCommands}
50+
4251
export _JAVA_AWT_WM_NONREPARENTING=1
4352
dwm &
4453
waitPID=$!

0 commit comments

Comments
 (0)