🔧 make i3 default_orientation configurable

This commit is contained in:
Ingolf Wagner 2025-06-13 09:50:26 +02:00
parent d0a16bc9b9
commit 2abd8b5fd9
2 changed files with 15 additions and 4 deletions
homes
ingolf-wagner
palo

View file

@ -38,6 +38,8 @@
ll = "ls -lah";
};
gui.i3.defaultOrientation = "horizontal";
# todo check home-manager nixGL options
# we need nixGL to run kitty, because it depends on GL it's not nice, but not to bad either
xsession.windowManager.i3.config.terminal = lib.mkForce "nixGLIntel kitty";

View file

@ -37,9 +37,18 @@ let
in
{
options.gui.i3.enable = mkOption {
type = lib.types.bool;
default = config.gui.enable;
options.gui.i3 = {
enable = mkOption {
type = lib.types.bool;
default = config.gui.enable;
};
defaultOrientation = mkOption {
type = lib.types.enum [
"vertical"
"horizontal"
];
default = "vertical";
};
};
config = lib.mkIf config.gui.i3.enable {
@ -145,7 +154,7 @@ in
enable = true;
extraConfig = ''
default_border pixel
default_orientation vertical
default_orientation ${config.gui.i3.defaultOrientation}
'';
config = {
modifier = "Mod4";