Compare commits

..

2 commits

Author SHA1 Message Date
Fabian Montero 995b085d82 improve baseline module 2024-11-28 18:23:37 -06:00
Fabian Montero bcd049b8c5 modularize gui 2024-11-28 18:23:16 -06:00
6 changed files with 36 additions and 22 deletions

View file

@ -13,18 +13,28 @@ in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
xdg.enable = true; xdg.enable = true;
home.packages = with pkgs; [ home = {
calc packages = with pkgs; [
file calc
git file
htop git
killall htop
man-pages killall
man-pages-posix man-pages
tree man-pages-posix
units tree
unzip units
zip unzip
]; vim
zip
];
};
keyboard = {
layout = "us";
variant = "altgr-intl";
};
sessionVariables = {
"EDITOR" = mkDefault "vim";
};
}; };
} }

View file

@ -18,8 +18,12 @@ in {
mapAttrs ( mapAttrs (
monitorId: monitorId:
filterAttrs filterAttrs
(k: v: !elem k [ #list of options to exclude from this list (k: v:
"fingerprint" "initialI3Workspace" "monitorId" !elem k [
#list of options to exclude from this list
"fingerprint"
"initialI3Workspace"
"monitorId"
]) ])
) )
cfg.monitors; cfg.monitors;

View file

@ -51,7 +51,8 @@ with lib; let
example = 1; example = 1;
}; };
}; };
config = optionalAttrs (setName) { # make this better later config = optionalAttrs setName {
# make this better later
monitorId = name; monitorId = name;
}; };
}) })

View file

@ -82,7 +82,8 @@ with lib; {
"bar/secondary" = { "bar/secondary" = {
monitor = head (attrNames (filterAttrs (monitorId: v: monitor = head (attrNames (filterAttrs (monitorId: v:
!v.primary) config.local.gui.monitors)); # this is bad. will fail if more than 2 monitors. this sets all monitors other than the primary one for this bar. !v.primary)
config.local.gui.monitors)); # this is bad. will fail if more than 2 monitors. this sets all monitors other than the primary one for this bar.
"inherit" = "bar/main"; "inherit" = "bar/main";
modules-left = "i3"; modules-left = "i3";

View file

@ -44,5 +44,8 @@ in {
vim-multiple-cursors vim-multiple-cursors
]; ];
}; };
home.sessionVariables = {
"EDITOR" = "neovim";
};
}; };
} }

View file

@ -48,13 +48,8 @@
username = "fabian"; username = "fabian";
homeDirectory = "/home/fabian"; homeDirectory = "/home/fabian";
sessionVariables = { sessionVariables = {
"EDITOR" = "nvim";
"TERMINAL" = "kitty"; "TERMINAL" = "kitty";
}; };
keyboard = {
layout = "us";
variant = "altgr-intl";
};
}; };
programs.home-manager.enable = true; programs.home-manager.enable = true;
} }