Primary monitor kde wayland

dear kde/endeavouros/wayland comrades…

I was wondering how to set the primary monitor on kde plasma/endeavouros. I use wayland, and have 3 monitors… one of them is vertical and is somehow set as my primary monitor. When I start programs it often gets opened on the vertical secondary monitor… how to change that? is this program specific, or is there something in the general settings which I am missing?

Any help is highly appreciated.

thanks,
delphine

Both options can be found in “system settings”.

This, set desiered layout, apply. logout login or reboot

I’m also using wayland. Never seen this priority thingy.

1 Like

if you look on the second screenshot, it is right under the checkbox which says “Enabled”. Probably only appears when you have multiple screens.

How does this post answer the question asked on the top post?

hey @kiamlaluno,

On wayland you can select your primary monitor via system settings. see screenshots which I posted before. It does not solve the wine question, but the original question on how to select a primary monitor on wayland can be found there.

That was answered from GolDNenex. The post selected as solution is a reply to what GolDNenex said.

I only used KDE Plasma with X11; setting the primary display was simple because System Settings has a setting for that, as @GolDNenex shown.
Reading https://www.baeldung.com/linux/primary-monitor-x-wayland, I learned that Wayland does not have the concept of primary screen.

Unlike changing the primary monitor in X, Wayland does not have the concept of a primary display. Instead, the primary monitor must be implemented by the compositor.

It also explains that KDE Plasma supports Wayland with its KWin compositor and how to set the primary monitor with kscreen-doctor.

KDE Plasma supports Wayland using its own compositor, KWIn. Let’s use the kscreen-doctor command, part of the libkscreen package, to set the primary display. We can start by printing information about our various outputs using the –outputs flag with kscreen-doctor:

$ kscreen-doctor --outputs
Output: 1 Hewlett Packard HP 22cwa/6CM6501C14 enabled connected HDMI Modes: 0:1920x1080@60*! 1:1920x1080@60
...
Output: 2 Acer Technologies Acer H226HQL/LX2AA0024210 enabled connected primary DVI Modes: 0:1920x1080@60*!

If we want to assign a different primary monitor, we may use the command kscreen-doctor output.”${Name}”.primary with ${Name} being the section outputted by kscreen-doctor –outputs indicating manufacturer, model name, and serial number (i.e. Hewlett Packard HP 22cwa/6CM6501C14).

Let’s try assigning this monitor as the primary display using this format:

$ kscreen-doctor output.'Hewlett Packard HP 22cwa/6CM6501C14'.primary
kscreen.doctor: setop exec returned KScreen::Config( 
KScreen::Output(1, "Hewlett Packard HP 22cwa/6CM6501C14", connected enabled primary, ... )
KScreen::Output(2, "Acer Technologies Acer H226HQL/LX2AA0024210", connected enabled, ... ))

I take that setting is not show in System Settings because it is a setting for the used compositor.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.