Skip to content

Containerfile for building a Vanilla OS Desktop image with Gnome and Sway-WM.

License

Notifications You must be signed in to change notification settings

DevelAngel/vanillaos-desktop-sway-image

Repository files navigation

Vanilla OS Desktop Image with Gnome and Sway-WM

Containerfile for building a Vanilla OS Desktop image with Gnome and Sway-WM.

This image is based on top of vanillaos/desktop and extends the default Vanilla OS Gnome Desktop experience with Sway.

The Vanilla OS bootscreen is shown with the Sway logo put inside it.

Sway

Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11.

Sway allows you to arrange your application windows logically, rather than spatially. Windows are arranged into a grid by default which maximizes the efficiency of your screen and can be quickly manipulated using only the keyboard.

Project Goals

We want to provide a similar experiance as the Manjaro Sway Edition does for Manjaro Linux.

Features

Managing user applications with systemd

  • sway's output handled by journald: journalctl --user --identifier sway
  • waybar.service
  • swaync.service
  • xdg-desktop-portal.service
  • xdg-desktop-portal-wlr.service
  • sway-session.target
  • swayidle.service
  • swaylock.service

Guide used: systemd integration - Managing user applications with systemd

Installation

Method A: Custom Image via Live-ISO

Download the Vanilla OS 2 Orchid Live-ISO, flash it to your USB stick and boot from it.

You will see the following dialog:

The Vanilla OS installer shows the dialog "Welcome to Vanilla OS!" together with the four buttons "Install" and "Install Custom Image (Advanced)" as well as "Recovery" and "Power Off".

Select Install Custom Image (Advanced). This installation method differs in one step from the Install method: You can choose the Vanilla OS Image which will be installed by the Vanilla OS Installer.

At some point, you will see the following dialog:

The Vanilla OS installer shows a dialog where the user can enter the URL of the custom image.

Enter the URL ghcr.io/develangel/desktop-sway:latest.

The Vanilla OS installer shows a dialog to inform the user that the installation has finished and it is time to reboot.

After installing Vanilla OS, you can follow the First Setup guide to set up your system.

The First Setup shows a welcome dialog.

The First Setup shows a dialog to inform the user that the first setup has finished and it is time to reboot.

After the First Setup has finished, reboot the system and the First Setup will install the applications.

After reboot, it is time to set your password. [NOTE: Keep the Gnome session active. Do not switch to the Sway session!]

The login screen is shown and forces you to set your password.

After login, the First Setup installs the previously configured applications.

The First Setup requests your password for authentication.

The First Setup installs applications like org.gnome.Calculator.

The First Setup has finished the finalizing step.

After the First Setup has finished the finalizing step, the Tour dialog pops up.

The Tour dialog is shown and wants the user to take a short tour.

Now, it is time to reboot and you are done. Let's switch to the Sway session...

Method B: Change the image in ABRoot

If you have installed Vanilla OS with the Install method, you can point ABRoot to the custom image to use it.

  • Open the terminal Black Box.
  • Edit the configuration file with the command: abroot config-editor.
  • Change the "name" entry from something like vanilla-os/desktop to develangel/desktop-sway. [Note: All characters must be in lowercase.]
  • Change the "tag" entry to latest to use releases, only.
  • Now, run abroot upgrade to switch to the custom image.
  • Reboot.

After reboot, you can select the Sway session when you log in.

Switch to the Sway session

The Vanilla OS login screen is shown. After selecting the user account, a settings button is visible. Using this button, the Sway session can be selected.

Select the Sway session when you log in the next time.

Build

Note

The fsguard compiled plugin .so file should be downloaded from the latest release and be placed under a plugins directory beside the recipe.yml file.

vib build recipe.yml
podman image build -t vanillaos/desktop-sway .

About

Containerfile for building a Vanilla OS Desktop image with Gnome and Sway-WM.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages