Skip to content

hyprland: expose wobble damping, mass and mesh in layout settings - #4033

Merged
purian23 merged 3 commits into
duxlabs-dev:masterfrom
alamin147:hyprland/wobble-tunables
Nov 2, 2026
Merged

purian23 merged 3 commits into
duxlabs-dev:masterfrom
alamin147:hyprland/wobble-tunables

Conversation

@alamin147

Copy link
Copy Markdown
Contributor

Summary

Hyprland 0.57's decoration:wobble section exposes 7 options, but DMS only surfaced enabled, intensity and stiffness. This adds sliders for the remaining spring tuning knobs in the Compositor layout tab's Visual effects card:

  • Wobble damping (decoration:wobble:damping) — 0–1000, default 12
  • Wobble mass (decoration:wobble:mass) — 0.25–3.0 (stores ×100, displayed via decimals: 2, same convention as the island spring-mass slider), default 1.0
  • Wobble mesh (decoration:wobble:mesh) — 2–32, default 12

Details

  • Same conventions as the surrounding rows: each slider is shown only when Wobbly windows is enabled, gated with hyprSupports("decoration:wobble:<prop>") so older Hyprland versions hide them, and each value is written to the generated Lua only when it differs from Hyprland's default.
  • Verified live against Hyprland 0.57.0: toggling wobble and dragging the new sliders regenerates dms/layout.lua and the option lands in hyprctl getoption.
  • New test in quickshell/tests/hyprland-lua.test.mjs: defaults omitted, tunables written once changed, unknown options skipped.
  • Translation catalogs (en.json, template.json) and the settings search index regenerated with the extractors.

@github-actions github-actions Bot added the ui Quickshell UI under quickshell/ label Oct 30, 2026
@bbedward

Copy link
Copy Markdown
Member

/claude review

Comment thread quickshell/translations/en.json Outdated
@@ -29116,10 +29406,37 @@
"settings"
]
},
{
"term": "Wobble damping",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en.json and template.json shouldn't change in a PR (CONTRIBUTING.md, "Don't re-extract the translations"). A maintainer script syncs them with POEditor, and this re-extraction rewrites ~2000 lines that will conflict with the next sync. Please revert both files to origin/master and keep only the I18n.tr() calls and the regenerated settings_search_index.json:

git checkout origin/master -- quickshell/translations/en.json quickshell/translations/template.json

@claude

claude Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Claude review

Code changes look correct. The translation catalogs need to be reverted.

  • en.json/template.json were re-extracted in the PR. Revert both and leave them to the POEditor sync (quickshell/translations/en.json:29410)

Checked: SettingsSpec/SettingsData wiring, slider rows (hyprSupports gating, mass ×100 with decimals), Lua generation in HyprlandService (default omission, per-option support checks), the new test, and the search index. Model: claude-opus-5-5.

@purian23
purian23 merged commit aafc9b6 into duxlabs-dev:master Nov 2, 2026
5 checks passed
dux-ci Bot pushed a commit that referenced this pull request Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ui Quickshell UI under quickshell/

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants