diff --git a/src/debug/HyprCtl.cpp b/src/debug/HyprCtl.cpp index d45ca48d..4ea53b49 100644 --- a/src/debug/HyprCtl.cpp +++ b/src/debug/HyprCtl.cpp @@ -61,6 +61,8 @@ static std::string availableModesForOutput(CMonitor* pMonitor, eHyprCtlOutputFor result += std::format("\"{}x{}@{:.2f}Hz\",", m->pixelSize.x, m->pixelSize.y, m->refreshRate / 1000.0); } + trimTrailingComma(result); + return result; }