temp
This commit is contained in:
@@ -61,7 +61,30 @@ in
|
||||
|
||||
modules-center = [ "hyprland/window" ];
|
||||
|
||||
modules-right = cfg.modules-right;
|
||||
modules-right = [
|
||||
"tray"
|
||||
"custom/left-end"
|
||||
"temperature"
|
||||
"temperature#gpu"
|
||||
"keyboard-state#capslock"
|
||||
"keyboard-state#numlock"
|
||||
"wireplumber#sink"
|
||||
"bluetooth"
|
||||
"network"
|
||||
"idle_inhibitor"
|
||||
"custom/right-end"
|
||||
"custom/left-end"
|
||||
"clock"
|
||||
"battery"
|
||||
"custom/weather"
|
||||
"custom/right-end"
|
||||
];
|
||||
|
||||
# modules-right = [
|
||||
# "tray"
|
||||
# "custom/left-end" ] ++
|
||||
# cfg.modules-right ++
|
||||
# [ "custom/right-end" ];
|
||||
|
||||
# Module Definitions
|
||||
# Left
|
||||
@@ -290,6 +313,16 @@ in
|
||||
return-type = "json";
|
||||
markup = "pango";
|
||||
};
|
||||
|
||||
"custom/left-end" = {
|
||||
format = " ";
|
||||
tooltip = false;
|
||||
};
|
||||
|
||||
"custom/right-end" = {
|
||||
format = " ";
|
||||
tooltip = false;
|
||||
};
|
||||
} // cfg.extraModules;
|
||||
};
|
||||
|
||||
@@ -373,7 +406,7 @@ in
|
||||
${defaultBorderRadius}
|
||||
${defaultCenterOptions}
|
||||
margin-left: 4rem;
|
||||
margin-right: 4rem;
|
||||
margin-right: ${toString cfg.windowOffset}rem;
|
||||
}
|
||||
|
||||
/* make window module transparent when no windows present */
|
||||
@@ -529,6 +562,18 @@ in
|
||||
}
|
||||
|
||||
/* ------------- */
|
||||
|
||||
#custom-left-end {
|
||||
background-color: ${nord.polarNight.nord0};
|
||||
${defaultOpacity}
|
||||
${borderLeft}
|
||||
}
|
||||
|
||||
#custom-right-end {
|
||||
background-color: ${nord.polarNight.nord0};
|
||||
${defaultOpacity}
|
||||
${borderRight}
|
||||
}
|
||||
''
|
||||
+ cfg.extraModulesStyle or '''';
|
||||
};
|
||||
|
||||
@@ -29,6 +29,11 @@ with lib;
|
||||
default = "";
|
||||
};
|
||||
|
||||
windowOffset = mkOption {
|
||||
type = types.int;
|
||||
default = 4;
|
||||
};
|
||||
|
||||
# Waybar modules config
|
||||
# modules = mkOption {
|
||||
# type = types.submodule {
|
||||
|
||||
Reference in New Issue
Block a user