parent
d0a16bc9b9
commit
2abd8b5fd9
2 changed files with 15 additions and 4 deletions
homes
|
@ -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";
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue