2024-04-29 02:03:44 +03:00
|
|
|
{ pkgs, wallpaper, style, util, setting, ... } @args: let
|
2024-04-06 03:03:58 +03:00
|
|
|
mkConfig = { modules }: builtins.foldl' (acc: mod:
|
2024-04-30 20:36:50 +03:00
|
|
|
acc + util.trimTabs((import mod args).text)
|
2024-04-06 03:03:58 +03:00
|
|
|
) "" modules;
|
|
|
|
|
|
|
|
swayRc = mkConfig {
|
|
|
|
modules = [
|
|
|
|
./module/Style.nix
|
|
|
|
./module/Display.nix
|
|
|
|
./module/Input.nix
|
2024-04-14 23:09:59 +03:00
|
|
|
./module/Mod.nix
|
2024-04-06 03:03:58 +03:00
|
|
|
./module/Font.nix
|
|
|
|
./module/Launcher.nix
|
|
|
|
./module/Terminal.nix
|
|
|
|
./module/TitleBar.nix
|
|
|
|
./module/Brightness.nix
|
|
|
|
./module/Navigation.nix
|
|
|
|
./module/Notification.nix
|
|
|
|
./module/Resize.nix
|
|
|
|
./module/ScratchPad.nix
|
|
|
|
./module/Screenshot.nix
|
|
|
|
./module/Sound.nix
|
|
|
|
./module/Tiling.nix
|
|
|
|
./module/Workspace.nix
|
2024-04-10 11:04:06 +03:00
|
|
|
./module/Session.nix
|
2024-04-24 04:58:58 +03:00
|
|
|
./module/Keyd.nix
|
2024-04-06 03:03:58 +03:00
|
|
|
];
|
|
|
|
};
|
|
|
|
in {
|
2024-04-30 20:36:50 +03:00
|
|
|
config = (util.trimTabs ''
|
2024-04-06 03:03:58 +03:00
|
|
|
# Read `man 5 sway` for a complete reference.
|
|
|
|
include /etc/sway/config.d/*
|
2024-04-30 20:36:50 +03:00
|
|
|
'') + swayRc;
|
2024-04-06 03:03:58 +03:00
|
|
|
}
|
|
|
|
|