added back in the option to hide the center part of the dock because it is overlappig
This commit is contained in:
@@ -3,12 +3,22 @@
|
|||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
flake.modules.homeManager.noctalia = { ... }: {
|
flake.modules.homeManager.noctalia = { lib, config, ... }: {
|
||||||
|
options = {
|
||||||
programs.noctalia = {
|
modules.noctalia.smallScreen = lib.mkOption {
|
||||||
enable = true;
|
type = lib.types.bool;
|
||||||
settings = (import ./noctalia/_settings.nix) { };
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
|
smallScreen ? false,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
{
|
{
|
||||||
accessibility = {
|
accessibility = {
|
||||||
ui_scale = 1.25;
|
ui_scale = 1.25;
|
||||||
@@ -22,10 +22,14 @@
|
|||||||
default = {
|
default = {
|
||||||
background_opacity = 0;
|
background_opacity = 0;
|
||||||
capsule = true;
|
capsule = true;
|
||||||
center = [
|
center =
|
||||||
"audio_visualizer"
|
if smallScreen then
|
||||||
"media"
|
[ ]
|
||||||
];
|
else
|
||||||
|
[
|
||||||
|
"audio_visualizer"
|
||||||
|
"media"
|
||||||
|
];
|
||||||
end = [
|
end = [
|
||||||
"tray"
|
"tray"
|
||||||
"notifications"
|
"notifications"
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
flake.modules.nixos.bluetooth = {
|
||||||
|
hardware.bluetooth.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user