Skip to content

Commit

Permalink
Add xserver integration of i3 WM.
Browse files Browse the repository at this point in the history
This allows to set i3 as the default window manager in the system configuration.
  • Loading branch information
aszlig committed Jun 4, 2012
1 parent f2a3380 commit b78ce79
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 b78ce79

Please sign in to comment.