Sway Support

When one is using Sway, one has to keep in mind, that it is not something like the Gnome Desktop. Sway focuses itself on windows managing and ignores system integration. The benefit is, that it runs on BSD and Linux as well. The downside is, that there is no common project which integrates a certain operation system with Sway. So things like using the media keys has to be configured manually.

    d:toDo
    • d:toDo
      • https://snapcraft.io/sway
    • d:toDo
      • Installation on Ubuntu and Fedora.
    • d:toDo
      • Installation via OSSI.

Try using i3 . It is the predecessor of Sway based on X11 instead of Wayland. Configuration files of i3 are mostly also working in Sway out of the box.

    d:toDo
    • Most simple way to Start sway.
    d:toDo
    • Use CTRL + ALT + F6 for most systems during login.
    d:val
    Basic Sway Commands
    • d:val
      Window Commands
      • d:val
        Move current window to neighbouring position.
        • d:val
          up
          • $mod+shift+↑
        • d:val
          right
          • $mod+shift+→
        • d:val
          down
          • $mod+shift+↓
        • d:val
          left
          • $mod+shift+←
      • d:val
        Move current window to another workspace.
        • d:val
          Close current window.
          • d:val
            Switch window float status.
          • d:val
            Desktop Commands
            • d:val
              Switch currently selected window.
              • d:val
                Switch currently selected Desktop.
              • d:val
                Session Commands
                • d:val
                  Open new terminal window.
                  • d:val
                    Open menu.
                    • d:val
                      Close session/ logout.
                      • d:val
                        Switch keyboard layout.
                        • $mod+space

                  The Project Sway itself has some documentation. You can use its wiki ,lookup known issues and use its support chat . There is a reddit community 

                  Arch Linux has a wiki with some info.

                  This chapter describes the setup of functionality, that are not described in the previously linked Sway Support Sites , or where the setup is done in an alternative way.

                  One can stream on Sway with OBS, but OBS needs the plugin wlrobs , which works fine on Ubuntu 20.04.1 LTS.

                  One can take partial screenshots via grim, slurp and wl-clipboard . First install these packages and add the following configuration to ~/.config/sway/config : $mod+p exec grim -g "$(slurp -d)" - | wl-copy . Now you can create screenshots by pressing $mod+p and selecting a part of the screen. The image is stored in the clipboard and can be pasted anywhere.

                  Alerts on power state default notification system can be done via poweralertd .

                  One can fix this by exporting the variable _JAVA_AWT_WM_NONREPARENTING in the shell, that executes the Java program. This can be done via export _JAVA_AWT_WM_NONREPARENTING=1 # This is needed in order to use Java GUIs in Sway. .pam_environment

                    d:toDo
                    • Gnome Service Integration

                  Some applications look different in full screen mode. You could run a wayland compositor like cage inside Sway, but in this way you are not able to copy and paste between windows in the nested compositor and Sway. Browsers have some functionality in order to toggle full screen mode, without occupying the full screen. In Firefox `full-screen-api.ignore-widgets` makes Firefox full screen not trigger Sway full screen (not the other way, though). (the *other* way, `browser.fullscreen.autohide` is your best bet, which just makes full screen look the same by not hiding the bar)