2025-12-12 04:02:55 +01:00
|
|
|
{
|
|
|
|
|
config,
|
|
|
|
|
lib,
|
|
|
|
|
...
|
|
|
|
|
}: let
|
2025-12-12 03:38:32 +01:00
|
|
|
commonBarSettings = {
|
|
|
|
|
enabled = true;
|
|
|
|
|
position = 0;
|
|
|
|
|
|
|
|
|
|
spacing = 0;
|
|
|
|
|
innerPadding = 0;
|
|
|
|
|
bottomGap = -5;
|
|
|
|
|
transparency = 0;
|
|
|
|
|
widgetTransparency = 1;
|
|
|
|
|
squareCorners = true;
|
|
|
|
|
noBackground = false;
|
|
|
|
|
gothCornersEnabled = false;
|
|
|
|
|
gothCornerRadiusOverride = false;
|
|
|
|
|
gothCornerRadiusValue = 12;
|
|
|
|
|
borderEnabled = false;
|
|
|
|
|
borderColor = "primary";
|
|
|
|
|
borderOpacity = 1;
|
|
|
|
|
borderThickness = 2;
|
|
|
|
|
widgetOutlineEnabled = false;
|
|
|
|
|
widgetOutlineColor = "primary";
|
|
|
|
|
widgetOutlineOpacity = 1;
|
|
|
|
|
widgetOutlineThickness = 1;
|
|
|
|
|
fontScale = 1;
|
|
|
|
|
autoHide = false;
|
|
|
|
|
autoHideDelay = 250;
|
|
|
|
|
openOnOverview = false;
|
|
|
|
|
visible = true;
|
|
|
|
|
popupGapsAuto = true;
|
|
|
|
|
popupGapsManual = 4;
|
|
|
|
|
maximizeDetection = true;
|
|
|
|
|
};
|
|
|
|
|
primaryBar =
|
|
|
|
|
{
|
|
|
|
|
id = "default";
|
|
|
|
|
name = "Primary Bar";
|
|
|
|
|
screenPreferences = [
|
|
|
|
|
{
|
|
|
|
|
name = (builtins.head config.monitors).name or "";
|
|
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
showOnLastDisplay = true;
|
|
|
|
|
leftWidgets = [
|
|
|
|
|
"launcherButton"
|
|
|
|
|
"workspaceSwitcher"
|
|
|
|
|
"runningApps"
|
|
|
|
|
];
|
|
|
|
|
centerWidgets = [
|
|
|
|
|
"focusedWindow"
|
|
|
|
|
];
|
|
|
|
|
rightWidgets = [
|
|
|
|
|
"music"
|
|
|
|
|
"systemTray"
|
|
|
|
|
"cpuUsage"
|
|
|
|
|
"controlCenterButton"
|
|
|
|
|
"notificationButton"
|
|
|
|
|
"clock"
|
|
|
|
|
];
|
|
|
|
|
}
|
|
|
|
|
// commonBarSettings;
|
|
|
|
|
secondaryBar =
|
|
|
|
|
{
|
|
|
|
|
id = "secondary";
|
|
|
|
|
name = "Secondary Bar";
|
|
|
|
|
screenPreferences = builtins.map (monitor: {
|
|
|
|
|
inherit (monitor) name;
|
|
|
|
|
}) (builtins.tail config.monitors);
|
|
|
|
|
showOnLastDisplay = false;
|
|
|
|
|
leftWidgets = [
|
|
|
|
|
"workspaceSwitcher"
|
|
|
|
|
];
|
|
|
|
|
centerWidgets = [];
|
|
|
|
|
rightWidgets = [];
|
|
|
|
|
}
|
|
|
|
|
// commonBarSettings;
|
|
|
|
|
in {
|
2025-12-12 04:02:55 +01:00
|
|
|
config = lib.mkIf config.fireproof.desktop.enable {
|
|
|
|
|
fireproof.home-manager = {
|
|
|
|
|
programs.dankMaterialShell.default.settings = {
|
|
|
|
|
launcherLogoMode = "os";
|
|
|
|
|
launcherLogoContrast = 1;
|
|
|
|
|
launcherLogoSizeOffset = 3;
|
2025-12-12 03:38:32 +01:00
|
|
|
|
2025-12-12 04:02:55 +01:00
|
|
|
centeringMode = "geometric";
|
2025-12-12 03:38:32 +01:00
|
|
|
|
2025-12-12 04:02:55 +01:00
|
|
|
runningAppsCurrentWorkspace = true;
|
|
|
|
|
runningAppsGroupByApp = true;
|
2025-12-12 03:38:32 +01:00
|
|
|
|
2025-12-12 04:02:55 +01:00
|
|
|
barConfigs = [primaryBar secondaryBar];
|
|
|
|
|
};
|
2025-12-12 03:38:32 +01:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|