Тёмный

How to Configure Monitors with Sway on Linux 

Tony Tascioglu
Подписаться 4 тыс.
Просмотров 1 тыс.
50% 1

Sway is a tiling window manager like i3 but for wayland using the wlroots compositor. Since wayland is very different compared to XOrg/X11, you can't use the same commands like xrandr.
In this video, I show how to use swaymsg to configure displays (mode, resolution, position, refresh rate, etc) from the command line on Sway.
Note that for the average user, a graphical interface like wdisplays is probably much simpler. But also harder to script... There are also countless wrappers which try to act like xrandr but on wayland - use whatever works best for you!

Наука

Опубликовано:

 

17 май 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@MH_VOID
@MH_VOID Год назад
Sway IS the compositor. wlroots is an extremely popular library implementing much of the wayland protocols (including many custom ones), not a compositor, that was originally part of Sway but was separated out for easier use by other projects (though I think it's still primarily targetting Sway). Also wlr-randr (on sourcehut - not linking so YT doesn't swallow my comment) by the primary maintainer of Sway (Emersion) is a good choice for an xrandr clone.
@TonyTascioglu
@TonyTascioglu 11 месяцев назад
Thanks for the clarification, I probably should have tried to be a little more clear describing sway and wlroots. I'll also mention wdisplays as another tool that similar to arandr.
@TheMoonWatcher
@TheMoonWatcher 3 месяца назад
I recently switched to regolith 3(from i3-Gnome with X11). Everything was working smoothly until one day(most likely I messed up something 😂) I was no longer able to adjust my monitors in the default Gnome settings app(Regolith does some Dbus magic to make it work with sway from what I understand). They were just no longer listed there. I saw that the functionality is powered by regolith-displayd and so I simply made that auto-start in my sway config. However every time I logged out or restarted sway/regolith my monitors would get sorted incorrectly. I tried to figure out what I broke that I lost the ability to remember my monitors layout, but to no avail. After watching your video, I made a simple bash script with the three swaymsg commands I need to arrange my monitors in my preferred layout, added that to my exec_always list in sway's configuration and now it works like a charm 💟 So thank you for the video! It was short, precise and to the point 🙂In fact I've probably spent longer writing this comment than watching the video 😂
Далее
How to Easily Deduplicate Files On Linux Using rmlint!
10:34
60 Linux Commands you NEED to know (in 10 minutes)
10:50
ПОЮ ЛЕТНИЕ ПЕСНИ🌞
3:16:55
Просмотров 1,7 млн
Happy 4th of July 😂
00:12
Просмотров 25 млн
Command Line Tools ALL Developers Should Know
6:15
Просмотров 105 тыс.
Are Linux Tiling Window Managers Worth It?
8:20
Просмотров 78 тыс.
How To Configure Multi Monitor In Wayland Sway
12:39
Просмотров 23 тыс.
How to Fix Display Issues in Linux
12:15
Просмотров 39 тыс.
Wayland vs Xorg in 2024
6:45
Просмотров 28 тыс.
Linux Commands You Need To Know
11:53
Просмотров 136 тыс.
My New Desktop
11:46
Просмотров 579 тыс.
How To Autostart Programs On Linux
10:02
Просмотров 57 тыс.
Turn Sway & i3 Into Dynamic Tiling Window Manager
9:36
Все Смартфоны vivo Серии V30!
24:54
Просмотров 26 тыс.