Sway не верно выбирает основной монитор
Есть три монитора. 2560x1440 и два 1920x1080. Игры постоянно выбирают разрешение со второго экрана и выставляют 1920x1080. Меню rofi тоже открывается на втором экране. Курсор вообще на 3 мониторе после запуска оказывается. На соседнем разделе установлен Arch Linux, у него общий с Artix раздел /home. Конфиги sway точно одинаковые, всё работает по нормальному там. Что это может быть? Куда копать? Всегда думал, что монитору на координате 0,0 приоритет отдаваться должен.
set $monitor1 DP-1
set $monitor2 DP-2
set $monitor3 HDMI-A-1
output $monitor1 pos 0,0 res 2560x1440@165Hz
output $monitor2 pos 0,1450 res 1920x1080@165Hz
output $monitor3 pos 1920,1450 res 1920x1080@75Hz transform 180
Запускаю так
command = "dbus-launch /usr/bin/sway"
Даже swaymsg -t get_outputs их в обратном порядке показывает.
Output HDMI-A-1 'Samsung Electric Company S24C36x H4PW601734'
Current mode: 1920x1080 @ 74.973 Hz
Power: on
Position: 1920,1450
Scale factor: 1.000000
Scale filter: nearest
Subpixel hinting: rgb
Transform: 180
Workspace: 21
Max render time: off
Adaptive sync: disabled
Allow tearing: no
Available modes:
1920x1080 @ 60.000 Hz
1920x1080 @ 74.973 Hz
1920x1080 @ 60.000 Hz (16:9)
1920x1080 @ 59.940 Hz (16:9)
1920x1080 @ 50.000 Hz (16:9)
1680x1050 @ 59.883 Hz
1600x900 @ 60.000 Hz
1280x1024 @ 75.025 Hz
1280x1024 @ 60.020 Hz
1440x900 @ 59.901 Hz
1280x800 @ 59.910 Hz
1152x864 @ 75.000 Hz
1280x720 @ 60.000 Hz
1280x720 @ 60.000 Hz (16:9)
1280x720 @ 59.940 Hz (16:9)
1280x720 @ 50.000 Hz
1280x720 @ 50.000 Hz (16:9)
1024x768 @ 75.029 Hz
1024x768 @ 70.069 Hz
1024x768 @ 60.004 Hz
832x624 @ 74.551 Hz
800x600 @ 75.000 Hz
800x600 @ 72.188 Hz
800x600 @ 60.317 Hz
800x600 @ 56.250 Hz
720x576 @ 50.000 Hz
720x576 @ 50.000 Hz (16:9)
720x480 @ 60.000 Hz (4:3)
720x480 @ 60.000 Hz (16:9)
720x480 @ 59.940 Hz
720x480 @ 59.940 Hz (16:9)
640x480 @ 75.000 Hz
640x480 @ 72.809 Hz
640x480 @ 66.667 Hz
640x480 @ 60.000 Hz (4:3)
640x480 @ 59.940 Hz
720x400 @ 70.082 Hz
Output DP-2 'Philips Consumer Electronics Company PHL 242E1GZ UK02052018154'
Current mode: 1920x1080 @ 165.003 Hz
Power: on
Position: 0,1450
Scale factor: 1.000000
Scale filter: nearest
Subpixel hinting: rgb
Transform: normal
Workspace: 11
Max render time: off
Adaptive sync: disabled
Allow tearing: no
Available modes:
1920x1080 @ 60.000 Hz
1920x1080 @ 165.003 Hz
1920x1080 @ 144.000 Hz
1920x1080 @ 120.000 Hz (16:9)
1920x1080 @ 119.880 Hz (16:9)
1920x1080 @ 119.982 Hz
1920x1080 @ 60.000 Hz (16:9)
1920x1080 @ 59.940 Hz (16:9)
1920x1080 @ 50.000 Hz (16:9)
1680x1050 @ 60.000 Hz
1280x1024 @ 75.025 Hz
1280x1024 @ 60.020 Hz
1440x900 @ 60.000 Hz
1280x800 @ 60.000 Hz
1280x720 @ 60.000 Hz (16:9)
1280x720 @ 59.940 Hz (16:9)
1280x720 @ 50.000 Hz (16:9)
1024x768 @ 119.926 Hz
1024x768 @ 99.991 Hz
1024x768 @ 75.029 Hz
1024x768 @ 70.069 Hz
1024x768 @ 60.004 Hz
832x624 @ 74.551 Hz
800x600 @ 119.933 Hz
800x600 @ 99.862 Hz
800x600 @ 75.000 Hz
800x600 @ 72.188 Hz
800x600 @ 60.317 Hz
800x600 @ 56.250 Hz
720x576 @ 50.000 Hz (16:9)
720x576 @ 50.000 Hz (4:3)
720x480 @ 60.000 Hz (16:9)
720x480 @ 60.000 Hz (4:3)
720x480 @ 59.940 Hz (16:9)
720x480 @ 59.940 Hz (4:3)
640x480 @ 119.803 Hz
640x480 @ 99.825 Hz
640x480 @ 75.000 Hz
640x480 @ 72.809 Hz
640x480 @ 66.667 Hz
640x480 @ 60.000 Hz (4:3)
640x480 @ 59.940 Hz
640x480 @ 59.940 Hz (4:3)
720x400 @ 70.082 Hz
Output DP-1 'Philips Consumer Electronics Company 27M1N3500LS UK02241008808' (focused)
Current mode: 2560x1440 @ 165.000 Hz
Power: on
Position: 0,0
Scale factor: 1.000000
Scale filter: nearest
Subpixel hinting: rgb
Transform: normal
Workspace: 3
Max render time: off
Adaptive sync: disabled
Allow tearing: no
Available modes:
2560x1440 @ 59.951 Hz
2560x1440 @ 165.000 Hz
2560x1440 @ 143.912 Hz
2560x1440 @ 119.998 Hz
1920x1200 @ 59.951 Hz
1920x1080 @ 120.000 Hz (16:9)
1920x1080 @ 119.880 Hz (16:9)
1920x1080 @ 60.000 Hz
1920x1080 @ 60.000 Hz (16:9)
1920x1080 @ 59.940 Hz (16:9)
1920x1080 @ 50.000 Hz (16:9)
1600x1200 @ 59.951 Hz
1280x1440 @ 59.913 Hz
1680x1050 @ 59.951 Hz
1280x1024 @ 75.025 Hz
1280x1024 @ 60.020 Hz
1440x900 @ 59.951 Hz
1280x800 @ 59.951 Hz
1280x720 @ 60.000 Hz (16:9)
1280x720 @ 59.940 Hz (16:9)
1280x720 @ 50.000 Hz (16:9)
1024x768 @ 119.926 Hz
1024x768 @ 99.991 Hz
1024x768 @ 75.029 Hz
1024x768 @ 70.069 Hz
1024x768 @ 60.004 Hz
832x624 @ 74.551 Hz
800x600 @ 119.933 Hz
800x600 @ 99.862 Hz
800x600 @ 75.000 Hz
800x600 @ 72.188 Hz
800x600 @ 60.317 Hz
800x600 @ 56.250 Hz
720x576 @ 50.000 Hz (16:9)
720x576 @ 50.000 Hz (4:3)
720x480 @ 60.000 Hz (16:9)
720x480 @ 60.000 Hz (4:3)
720x480 @ 59.940 Hz (16:9)
720x480 @ 59.940 Hz (4:3)
640x480 @ 119.803 Hz
640x480 @ 99.825 Hz
640x480 @ 75.000 Hz
640x480 @ 72.809 Hz
640x480 @ 66.667 Hz
640x480 @ 60.000 Hz (4:3)
640x480 @ 59.940 Hz
640x480 @ 59.940 Hz (4:3)
720x400 @ 70.082 Hz
"focus output $monitor1" не помог, игры всё равно криво работают.