Skip to content

Commit

Permalink
Merge pull request #1 from aszlig/i3_integration
Browse files Browse the repository at this point in the history
Add xserver integration of i3 WM.
  • Loading branch information
edolstra committed Jun 21, 2012
2 parents bd5b06b + b78ce79 commit 055eae2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/services/x11/window-managers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ in
./twm.nix
./wmii.nix
./xmonad.nix
./i3.nix
];

options = {
Expand Down
30 changes: 30 additions & 0 deletions modules/services/x11/window-managers/i3.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{pkgs, config, ...}:

let
inherit (pkgs.lib) mkOption mkIf;
cfg = config.services.xserver.windowManager.i3;
in

{
options = {
services.xserver.windowManager.i3 = {
enable = mkOption {
default = false;
example = true;
description = "Enable the i3 tiling window manager.";
};
};
};

config = {
services.xserver.windowManager = {
session = mkIf cfg.enable [{
name = "i3";
start = "
${pkgs.i3}/bin/i3 &
waitPID=$!
";
}];
};
};
}

0 comments on commit 055eae2

Please sign in to comment.