regolith-desktop icon indicating copy to clipboard operation
regolith-desktop copied to clipboard

Use wayland and sway

Open luisdavim opened this issue 6 years ago • 16 comments

Sway is a drop in replacement for i3 on wayland how hard would it be to migrate?

luisdavim avatar Jun 15 '19 02:06 luisdavim

That's a great question! I do not know much about Wayland, and would expect there to be some deep changes in the gnome integration. If that even makes sense in Wayland I can't say. I opted to target X11 for application support and general familiarity. I would guess that the UI themeing stuff would be pretty straight forward, but there may be dragons lurking in lower integration levels.

kgilmer avatar Jun 15 '19 14:06 kgilmer

I agree with @kgilmer, sway is a fantastic project with super potential, I'm an eager user of i3 and have tried it, but I myself think It would be good to wait for a little more Wayland maturity before attempting to set up something like regolith on it.

muniter avatar Jun 16 '19 00:06 muniter

I'll add the feedback wanted tag and maybe someone with a deeper understanding of Wayland could determine the level of effort.

kgilmer avatar Jun 16 '19 03:06 kgilmer

#61 needs to be completed before work on this can begin.

kgilmer avatar Jul 08 '19 01:07 kgilmer

From Hacker News Regolith Linux – A desktop with less visual bullshit, is what user ac130kz said technically true?

Install Ubuntu minimal, build sway, install the packages they are using for system configuration and basically you're done

shadowrylander avatar Jul 16 '19 06:07 shadowrylander

Hi @shadowrylander , I cannot say as I do not have any experience with sway. There are some parts of Regolith that are compatibly with Wayland/Sway such as Rofi, but other programs may not be, or may require different configuration. One issue is that color and font data is moving to Xresources (in Regolith) and I'm told that Wayland does not have a similar facility.

In any case, I don't think you'd be able to just install packages and have it work. You would need to extract the files and modify them as needed. If you'd like to try applying Regolith theme stuff to Wayland, I'll try and help as best I can.

kgilmer avatar Jul 17 '19 04:07 kgilmer

Thanks @kgilmer! That makes sense. At the moment, I need a bit more experience with modifying i3 themes in general, but if I try, I'll be sure to ask!

shadowrylander avatar Jul 17 '19 04:07 shadowrylander

Regolith relies on Xresources for configuration, which is not available in wayland. Based on this I do not see how Regolith could be ported easily. A better option would be to create something new that is Wayland-first in terms of configuration and principles.

kgilmer avatar Aug 18 '19 05:08 kgilmer

Hey, I did some test-runs with sway on ManjaroARM. It turns out in sway you can configure variables directly in the sway configuration files. It also allows you to separate sections of the file and use an include direction to put the different parts together...

As a reference here you can see how you can configure different styles / colors via variables: https://github.com/rkubosz/base16-sway

Here you can see how you can split the file into different sections merging them together via includes: https://github.com/robertjk/dotfiles/blob/253b86442dae4d07d872e8b963fa33b5f8819594/.config/sway/config

appelgriebsch avatar Apr 27 '20 13:04 appelgriebsch

Hello! Is there any update on this? Also I would like to ask, when you say that a better option would be the creation of something new, does that mean a completely new project with different name and goals or the re-write of Regolith from the ground up? It may be a minor issue at this point but Regolith as a brand and as a project has gained attention, without mentioning how amazing the name and logo are!

Adam-Antios avatar Jul 04 '20 19:07 Adam-Antios

Thanks for the kind words @Adam-Antios. The Regolith "experience" and branding may be easily integrated into Wayland/Sway, I'm not sure. I guess I was just playing it safe with my earlier message. Given that the non-modularity of the i3 config seems to be a substantial issue for users during upgrades, it may make sense to do some more investigation into Sway in the near tearm.

kgilmer avatar Jul 09 '20 22:07 kgilmer

FYI, work in this area will be documented here: https://github.com/orgs/regolith-linux/projects/8

kgilmer avatar Jul 09 '20 22:07 kgilmer

Hey! What you say is completely understandable. From what I see most teams haven't really put a lot of work migrating to Wayland yet. I just wanted to see what the state of the project is. Glad that you are monitoring the situation!

Adam-Antios avatar Jul 10 '20 14:07 Adam-Antios

....take it from me, sway is not ready for prime time just yet. Especially if you are on a newer hidpi display. Or if you are a corporate user and need zoom to work. Or if you are a big jetbrains user.

I switched from sway to regolith a while back and keep track of the issues here https://github.com/hypergig/workstation/pull/2

hypergig avatar Jul 10 '20 17:07 hypergig

Ubuntu 21.04 will default on Wayland.

ploum avatar Jan 28 '21 19:01 ploum

This post could be of interest to @kgilmer : someone on Sway created a rofi-clone by "simply" opening a terminal without border with fzf launched. Very smart.

gemini://ew.srht.site/en/2022/20220112-debian-on-hifive-unmatched-2.gmi

ploum avatar Jan 14 '22 08:01 ploum