Skip to content

Add Affinity Suite installer with DPI scaling for Hyprland#5818

Open
Cliffback wants to merge 4 commits into
basecamp:devfrom
Cliffback:affinity-v3
Open

Add Affinity Suite installer with DPI scaling for Hyprland#5818
Cliffback wants to merge 4 commits into
basecamp:devfrom
Cliffback:affinity-v3

Conversation

@Cliffback
Copy link
Copy Markdown
Contributor

@Cliffback Cliffback commented May 14, 2026

Summary

Adds an installer for the Affinity Suite (previously Affinity Designer, Affinity Photo, Affinity Publisher) via the affinity-appimage-bin AUR package, which packages the Linux Affinity Installer AppImage.

Problem

Affinity runs under Wine via an AppImage, and Wine manages its own DPI independently from Hyprland's monitor scaling. This means the UI appears at the wrong size, too small on HiDPI displays or too large after scaling down. The AppImage includes an affinity --dpi command that opens a GUI DPI configurator, but it requires manual input and doesn't offer precise control, you have to guess the right value rather than having it automatically match your monitor's scale. The alternative is manually editing Wine registry files, and the correct registry location is non-obvious (Wine reads DPI from system.reg's hardware profile, not just user.reg).

Additionally, the AppImage ships without a working desktop icon, so there's no launcher entry in the application menu after installation.

Solution

  • omarchy install creative affinity: Installs the AUR package, copies a 512x512 icon, and creates a desktop entry with a working launcher icon
  • omarchy-launch-affinity: Wrapper that automatically syncs Wine DPI to the focused monitor's Hyprland scale before every launch:
    • Reads the focused monitor's scale via hyprctl monitors
    • Calculates Wine DPI (scale × 96) and patches LogPixels in both user.reg and system.reg
    • Waits for any previous Affinity/Wine processes to fully exit before patching to avoid registry race conditions
    • Then launches the AppImage normally
  • omarchy remove creative affinity: Removes the package, desktop entry, and icon
  • Adds a new Creative submenu to the Install menu (Super+Alt+Space → Install → Creative), providing a dedicated group for creative applications alongside the existing Gaming and Productivity groups.

Note: DPI scaling is applied at launch time, not while Affinity is running. Wine locks the registry during execution, so if you change monitor scale mid-session, you'll need to close and relaunch Affinity for the new scaling to take effect.

Related to #3141

Copilot AI review requested due to automatic review settings May 14, 2026 19:20
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings May 14, 2026 19:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

@Cliffback Cliffback changed the title Add Affinity creative suite installer with DPI scaling for Hyprland Add Affinity Suite installer with DPI scaling for Hyprland May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants