You are not logged in.
Dear all ![]()
If I do this in Sway
bindsym $mod+m exec wlr-randr --output HDMI-A-2 --on && wlr-randr --output eDP-1 --off
bindsym $mod+Shift+m exec wlr-randr --output eDP-1 --on && wlr-randr --output HDMI-A-2 --offthen it turns the desired monitor off, but doesn't disable/remove it. I can see this as the mouse can continue into nothing when I move it to the right border. Here I would have expected it to meet a hard border, so the pointer also is on the screen.
Does anyone know how to remove/disable a monitor in Sway?
Hugs,
Sandra ![]()
Last edited by LittleSandra (2023-03-13 07:38:27)
Offline
Hi Sandra,
is there a reason why you use wlr-randr?
You can use this:
bindsym $mod+m output "HDMI-A-2" enable ; output "eDP-1" disableOr you can use toggle instead of enable/disable, so you don't have to use different shortcuts. More information about this in the sway-output manpage.
Offline
Hi Sandra,
is there a reason why you use wlr-randr?
You can use this:
bindsym $mod+m output "HDMI-A-2" enable ; output "eDP-1" disableOr you can use toggle instead of enable/disable, so you don't have to use different shortcuts. More information about this in the sway-output manpage.
Dear szlig
What a great solution!
bindsym $mod+m output "HDMI-A-2" toggle ; output "eDP-1" togglemade the screens flash and then it enabled both. But just using enable/disable worked perfectly ![]()
Thanks ![]()
Offline