diff --git a/.config/ags/modules/overview/overview_hyprland.js b/.config/ags/modules/overview/overview_hyprland.js index 0ce07d146..77d3bb3ca 100644 --- a/.config/ags/modules/overview/overview_hyprland.js +++ b/.config/ags/modules/overview/overview_hyprland.js @@ -152,10 +152,10 @@ export default () => { maxWidthChars: 1, // Doesn't matter what number truncate: 'end', className: `margin-top-5 ${xwayland ? 'txt txt-italic' : 'txt'}`, - css: ` + css: overviewMonitor.bind().as(monitor => ` font-size: ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 14.6}px; margin: 0px ${Math.min(monitors[monitor].width, monitors[monitor].height) * userOptions.overview.scale / 10}px; - `, + `), // If the title is too short, include the class label: (title.length <= 1 ? `${c}: ${title}` : title), })