Skip to content

Unintuitive / unintended sway-output behaviour #15

@geryzhydrox

Description

@geryzhydrox

Hello,
I recently installed a new monitor with a refresh rate of 120 Hz (technically 144Hz, but Sway only allows 120 Hz for it, so let's keep it at that).
Anticipating that sway (or guile-swayer) wouldn't auto-detect it, I set it explicitly in my guile-swayer init.scm.
I included the following lines:

(sway-output "HDMI-A-1"
	     #:refresh-rate 120)

However, after checking swaymsg -t get_outputs, it turns out it didn't change the refresh rate.
I tried setting the position and then setting the resolution and it turns out that setting the resolution fixed it.
To summarize, the refresh-rate option of sway-output will ONLY apply if BOTH the refresh-rate AND resolution options are (manually) set. This definitely tripped me up and seems like unintended behaviour.

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions