Can I create and switch between two display profiles?

Hi. I have a 3440x1440 monitor. Everyday I use it with 125% scale, it suits me best. But when I run my flight simulator, I would prefer it to have 100% scale in order to use full 3440x1440 pixels. Can I somehow create a shortcut (preferably assign a mouse button, keyboard is also ok) to switch between the two?

Thanks in advance.

Probably a small script would do, e.g.:
xrandr --output eDP-1 --scale 1.5x1.5

Unfortunately, Wayland :frowning: I forgot to include it

Edit: I think it is possible in kscreen-doctor with a command, I will try it

1 Like

Yes, now I switch using my mouse extra buttons.

Can you post solution for others?

Surely. I created two scripts, named monitor_regular.sh and monitor_flightsim.sh, here are their contents:
monitor_regular.sh:

#!/bin/bash
kscreen-doctor output.1.scale.1.25 #Monitor I scale is number 1, one can check it with kscreen-doctor -o. With more monitors you also have to adjust the position, but I have one.

monitor_flightsim.sh:

#!/bin/bash
kscreen-doctor output.1.scale.1.00

Then I assigned keyboard shortcuts to those scripts, and then mouse buttons to keyboard shortcuts.

If someone notices something wrong here, please let me know.

1 Like

Scaling does not reduce your resolution.

1 Like

Really? Thanks for the information.

Still, I keep my shortcuts just if I need more screen real estate.