Add xserver integration of i3 WM.
This allows to set i3 as the default window manager in the system configuration.
This commit is contained in:
parent
f2a33809c1
commit
b78ce79f89
@ -14,6 +14,7 @@ in
|
||||
./twm.nix
|
||||
./wmii.nix
|
||||
./xmonad.nix
|
||||
./i3.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
30
modules/services/x11/window-managers/i3.nix
Normal file
30
modules/services/x11/window-managers/i3.nix
Normal file
@ -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=$!
|
||||
";
|
||||
}];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user