added back in the option to hide the center part of the dock because it is overlappig

This commit is contained in:
2026-10-08 08:33:53 +02:00
parent 30c1f3eb7e
commit 400a5e4bf8
3 changed files with 30 additions and 10 deletions
+15 -5
View File
@@ -3,12 +3,22 @@
services.upower.enable = true;
};
flake.modules.homeManager.noctalia = { ... }: {
programs.noctalia = {
enable = true;
settings = (import ./noctalia/_settings.nix) { };
flake.modules.homeManager.noctalia = { lib, config, ... }: {
options = {
modules.noctalia.smallScreen = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Whether to adjust to small screen. Affects mostly the visibility of the middle bar panel.";
};
};
config = {
programs.noctalia = {
enable = true;
settings = (import ./noctalia/_settings.nix) {
smallScreen = config.modules.noctalia.smallScreen;
};
};
};
};
}
+9 -5
View File
@@ -1,6 +1,6 @@
{
smallScreen ? false,
}:
{
accessibility = {
ui_scale = 1.25;
@@ -22,10 +22,14 @@
default = {
background_opacity = 0;
capsule = true;
center = [
"audio_visualizer"
"media"
];
center =
if smallScreen then
[ ]
else
[
"audio_visualizer"
"media"
];
end = [
"tray"
"notifications"