r/swaywm • • 44m ago

Question Does sway have incomplete or pathological handling of certain xwayland scenarios and I should just stop trying?

3 Upvotes

For the life of me I can't figure out, why certain games (Quake1 and Runescape3, both through steam) run at completely unplayable FPS when using sway. Vast majority of other games work fine. The aforementioned games also run fine while using gnome. I'm not asking for help to debug; I've already seen and tried variety of suggestions I found on google. What I want to know, if someone familiar with under the hood implementation details can confirm or deny that sway (/ wlroots) just has worse implementation of xwayland than gnome and I should stop bothering.

Sorry for a negative post, so I want to be clear I like sway as a whole, and while having to use a different session for couple games is annoying, it's not a deal breaker


r/swaywm • • 3h ago

Utility screepy: screenshots, screen recording and OCR for Sway, written in Rust

Thumbnail
github.com
4 Upvotes

I wrote a screenshot tool for my own Wayland setup and made it a standalone app so it isn't tied to one compositor. It runs on Sway, Hyprland and other wlr-layer-shell compositors.

Press Print, drag a box, and the PNG is on your clipboard. From the same overlay you can annotate it, pin it above your windows, select the text in it (OCR), read a QR code, take a scrolling screenshot, or record the area as MP4 or GIF with desktop audio.

On Sway, window mode reads the window list from Sway, so Space lets you grab a single window. Frames come from ext-image-copy-capture-v1 or wlr-screencopy, with grim as a fallback.

Binds:

bindsym Print exec screepy open

bindsym Shift+Print exec screepy screen

bindsym Ctrl+Print exec screepy record

bindsym Mod4+Shift+t exec screepy text

I'm using Hyprland, so Sway gets less testing from me. If something looks or behaves wrong on Sway, I'd really like to know. It's v0.1.0 and still a beta. Install with a Nix flake (Home Manager module included), a PKGBUILD for Arch, or prebuilt binaries. MIT licensed.


r/swaywm • • 13h ago

Utility palobar - a convenience shell

Thumbnail
github.com
11 Upvotes

palobar is essentially meant to make wayland UX simple. I love fancy wm where there offer all sorts of features, I do not love to lose seven days discovering there is yet another service I need to enable because I do not use a full DE.

While basic features seems to be in place it will be an endless work to keep checking for more & more components & guide user.


r/swaywm • • 2d ago

Question Pasting image from clipboard without conversion?

4 Upvotes

Finally decided clipboard manager is worth using.

Is it possible to default to copy and paste image without converting image format? My understanding is that on pasting content that was copied from a source app, wl-clipboard gets a list of supported formats from source app and infers which is preferred/default to get, however, it doesn't seem to pick the the original format and a converted format of much larger size gets picked instead, example: image is a 287.92K jpeg file when downloaded by wget or saved by Firefox.

With a clipboard manager with wl-paste (wl-paste --type image --watch clipvault store), copying the image from Firefox and "pasting" (saved by the clipboard manager), it becomes a whopping 2 MB png file. This is fixed if instead I explicitly set the format to be jpeg for wl-paste: wl-paste --type image/jpeg --watch clipvault store. Presumably the original file is only a 287K jpeg file and the converted file is the 2 MB png file, but more importantly, the guess of png was not a good one.

Specifying a specific image format only solves this particular case (and perhaps not even for the Firefox app itself, just this particular file), what if I don't want conversion of image files from any apps which seems to be the more intuitive behavior to preserve quality (and in this scenario ensuring reasonable size of image)? Is the approach to run multiple wl-paste instances? This approach will mean the clipboard manager will store multiple formats for the same image and it's not clear which is the original copy that's not converted (I would have thought the larger 2 MB png file is the original).

I don't want the clipboard manager to save multiple formats of a file--ideally it saves "the original file, but convert if it exceeds e.g. 10 MB in size)". If I'm copying the image from one application to another, I only want/expect it to be the original image in quality and size. As-is it seems like a strange limitation with how clipboard works, e.g. that the source app (Firefox) provides a list of available formats but with no way to "prefer" the original (or "ideal") format and the destination app (wl-clipboard) can only guess. The destination client has the choice, but not an informed one (they would have to download all the available formats provided by the source). AFAIK there's no decent solution to the problem.


r/swaywm • • 3d ago

Question How to setup default aplication

4 Upvotes

I want to set browser as default


r/swaywm • • 4d ago

Release scroll: new stable release 1.12.22

50 Upvotes

This is a big new release that includes:

  • A whole new animation system with more features, animation types and better performance.
  • Virtual Outputs: You can split your monitor into as many virtual monitors as you want, each one with a set of workspaces, and its own default layout and modifiers. You can temporarily maximize any virtual output.
  • Infinite canvas: scroll now supports an infinite canvas mode per workspace for your floating windows. You can place windows wherever you want, and use gestures to navigate and scale your infinite workspace.
  • The latest wlroots and sway upstream fixes and additions.

Aside from the new stuff, the usual:

scroll is a Wayland compositor forked from sway. scroll uses a scrolling layout similar to PaperWM, niri or hyprscroller.

scroll is mostly compatible with your sway configuration.

Aside from the scrolling layout, scroll adds many new features to sway, including:

  • Animations: scroll supports very customizable animations.
  • scroll supports rounded borders and title bars, dimming of inactive windows, and dynamic shadows with blur.
  • Content scaling: The content of individual windows can be scaled independently of the general output scale.
  • Overview and Jump modes: You can see an overview of the desktop and work with the windows at that scale. There are two overview modes, one that shows all the windows on the workspace, and another one that shows all the workspaces on each monitor, both are completely interactive. The jump command allows you to move to any window with just some key presses, like easymotion in some editors. There is also a jump mode to preview and switch to any available workspace. Jump also accepts window rules (criteria), to filter and quickly jump to any window.
  • Workspace scaling: Apart from overview, you can interactively scale the workspace to any scale, and continue working.
  • Lua scripting: scroll provides a lua API to script the window manager.
  • An infinite canvas where you can pan the workspace to place floating windows wherever you want.
  • fitfraction and fitsplit modes where tiled windows are constrained to the viewport, working in a similar way to classic tiled window managers.
  • Focus ring: quick access to the last few focused windows.
  • Several full screen modes: workspace, global, application and layout.
  • Trails and trailmarks: you can define sets of anonymous marks and jump to any of them easily.
  • Spaces: a space is a configuration of existing windows. Saving a named "space", you can later on recall that configuration on the same or any other workspace.
  • Alignment and fitting: align windows or resize them automatically to fit certain criteria.
  • Pinned windows.
  • Trackpad/Mouse scrolling: You can use the trackpad or mouse dragging to navigate and scroll the workspace windows and infinite workspace.
  • Portrait and Landscape monitor support: The layout works and adapts to both portrait or landscape monitors. You can define the layout orientation per output (monitor) or virtual output.
  • Virtual monitors: for ultra-wide displays, you can split a monitor into virtual outputs and show them at the same time or temporarily maximize any of them (virtual_output command).
  • Optionally, minimize windows to scratchpad.

For videos and a quick explanation of the main features, check the TUTORIAL. man 5 scroll for a full manual including all the commands and options.

The new version provides some smaller new features and many fixes to improve stability.


r/swaywm • • 6d ago

Ricing swayfx + archlinux

Post image
21 Upvotes

r/swaywm • • 7d ago

Question Child windows opening behind parent window.

Thumbnail
gallery
4 Upvotes

I'm using application called Tape 24. This application opens full screen by default and only full screen. I'm having a problem with child windows opening behind the parent window and I can't seem to figure out what the issue is. It only happns with this application (and it's big brother Tape 16). I'm not able to Mod+Left/Right it to shift focus and bring it to the front. Moving the main window to a different workspace, leaving the child on the original, is the only way I can see and interact with the child window.

I've attached images of the window information I get from running 'swaymsg -t get_tree' as well as the window setup in my config file. (The child window shows up as the same class, "TAPE 24", but has a different title. This isn't shown in the screenshot of the swaymsg command.)

Any help would be appreciated.


r/swaywm • • 8d ago

Utility Orbiscreen: Android tablet as an extended display on Sway, no root

6 Upvotes

Sway has no built-in way to put a tablet next to your monitors, so I made one. Orbiscreen creates a headless output through Sway's IPC, captures it with wlr-screencopy, encodes H.264 (VA-API, NVENC or x264) and streams it to an Android tablet or phone over Wi-Fi or USB.

No root and no kernel module. Touch and stylus input go back through virtual pointer and keyboard devices. A browser client exists if you don't want the app. Recent releases made a static screen cost about a tenth of what it did, and VA-API color conversion now runs on the GPU.

GPL-3.0, Rust. I'd like to hear how it behaves with your multi-monitor layouts and workspace rules.

https://orbiscreen.com


r/swaywm • • 8d ago

Utility Getting a notch-style island to behave on sway: layer-shell, a spacer surface and sway's IPC

Thumbnail
gallery
0 Upvotes

Openbar shows your coding agent sessions (Claude Code, Codex and others) in a small island at the top of the screen, where you answer their permission prompts. The Linux build runs natively on sway, and a few parts took some work.

A Wayland client can't place itself, stay on top or reserve space, so the island is a gtk-layer-shell surface on the top layer, and a separate empty surface along the top edge holds the exclusive zone so maximized windows stay under it. gtk-layer-shell is looked up at runtime instead of linked, so X11 needs nothing new and a compositor without it gets a normal window. Wayland also says nothing about other apps' windows, so hiding over fullscreen apps and Open (focusing the session's terminal) go through sway's IPC on $SWAYSOCK.

GPL-3.0: https://github.com/MF-DEEV/Openbar


r/swaywm • • 8d ago

Solved Update broke keyboard layout change

5 Upvotes

I was using Sway WM at least 2 months stable, and I've updated packages today and experiencing now layout changing failure.

What I see: the status bar icon changing from EN to RU, but the keyboard is always English. In Cinnamon it works fine.

System info:

  • Void 6.18.65_1 x86_64 AuthenticAMD uptodate rrrm
  • Cinnamon 6.6.7 with elogind 252.39
  • Sway 1.12, ibus
  • 24 GiB RAM

Maybe all of these things doesn't about me or I should use stable distors :(
Feel dizzy, I will try some fixes and if It'd work then I'll text here

UPD: My Sway version doesn't changed so it's just something with my updates

Just the ibus config switched the xkb read off... gosh..


r/swaywm • • 8d ago

Ricing [Sway]My termux(proot distro rice)

Thumbnail gallery
7 Upvotes

r/swaywm • • 8d ago

Ricing Atelier Estuary Dark

3 Upvotes

OS: Void Linux
WM: Sway
Bar: Waybar
Terminal: Kitty
File Manager: Dolphin
Dotfiles: https://github.com/potraxivatel/foksfiles


r/swaywm • • 11d ago

Release sway-blur v1.4.0

Thumbnail
gallery
42 Upvotes

This release is mostly an internal cleanup. The daemon now has one scene/cache path, typed sway-tree parsing, correct clipping for partially off-screen windows and fewer frame pixel copies.

Fixes

  • Clip window rects to their output, so partially off-screen windows are captured and overlaid using only their visible area.
  • Keep failed captures retryable without tearing down and recreating the overlay surface.

Performance

  • Share captured pixels between the cache and overlay with reference counted buffers, removing extra full frame copies.
  • Hand the shared buffer to gtk without another copy when updating a surface.
  • Reduce the format conversion to one const generic path instead of four duplicated loops.

feel free to give feedback

Install or update:

curl -fsSL https://raw.githubusercontent.com/developic/sway-blur/main/install.sh | bash

repo: https://github.com/developic/sway-blur


r/swaywm • • 11d ago

Discussion Glad that Sway is so less aesthetic.

62 Upvotes

I have moved from Sway -> hyprland -> niri -> noctalia+umbriel+everything that looks cool -> Sway. I am actually really so glad that Sway is so intentionally featureless (I keep RiverWM and dwl for it's ability for applying patches at the same level as Sway, but river 0.4.0 and dwl is not as simple to set up as SwayWM). The stability, the inbuilt bar (I use i3status-rust) and everything else is so stable and easy to set up. The reason I came back to Sway, is that I found that compositors adopting shaders and glsl and animations and other such stuff, which is cool at its place, I didn't use those that much. I found myself having disabled like more than half of the features and thinking "Wow, it feels like sway, but without that tab and stacked layout feature." And so I took to installing sway. Arguably, it's taken so less time to set up including bars, notification daemon and stuff.

I do have a personal project to design a Lisp configured window manager using River's protocol. But Sway is so cool. Thanks a lot to all the people who have contributed to keeping this awesome compositor alive and a great inspiration to the world of Open Source.


r/swaywm • • 11d ago

Question How to scale interface of GParted?

2 Upvotes

I’m trying to increase GParted's interface scale because it’s too small on my monitor, but the global setting gsettings set org.gnome.desktop.interface text-scaling-factor 1.25 doesn’t seem to work as it does for other GTK apps. I’ve also tried running GParted with the GDK_DPI_SCALE=1.25 parameter, but that didn’t work either...


r/swaywm • • 12d ago Bravo

Ricing [Sway][SwayFX][i3wm] Zenith shell. Eyecandy for ~150mb memory in the big RAMagaddon

Thumbnail
gallery
85 Upvotes

I've been working on this for over an year now. Give it a shot if you like what you see :)

There are installers and uninstallers available.

github: https://github.com/amansxcalibur/zenith-shell

(PS: frosted glass effect is only available for swayfx)


r/swaywm • • 12d ago

Ricing [sway] minimal fedora 45

11 Upvotes

r/swaywm • • 12d ago

Question Wine fullscreen in Wayland

7 Upvotes

I know this is a known problem but I still haven't found a solution, or at least one for Sway. Basically this worked just fine on Xorg (Cinnamon), but how do I stretch this 2002 game so it fits the screen height?


r/swaywm • • 13d ago

Question Can I push my wattage lower?

5 Upvotes

I’m using Fedora 44 with sway and with my average workload, tubetui for music, discordo, and firefox, I’m down to about 4.5w. There’s not really a reason why I’d need to push my wattage lower but it’d just be fun.

I believe I’ve done all the normal power saving things like making sure I’m using the right pstate and other settings but I’d just like to see what I could additionally change for fun without losing too much. I.e. turning off bluetooth or using a tui browser. I think I could move some browser tabs into tuis but it doesn’t seem very promising since it seems like most of the websites I use just don’t work because they require SSO through my university school account.


r/swaywm • • 13d ago

Ricing I love mario [swayfx]

Thumbnail
gallery
21 Upvotes

r/swaywm • • 14d ago

Ricing my sway rice (asahi linux)

Thumbnail
gallery
118 Upvotes

gruvbox-material colour.

that's my girlfriend btw :)


r/swaywm • • 13d ago

Script Worst shortcut for shutdown

Post image
5 Upvotes

So I have mapped Mod+Shift+s to shutdown

And Mod+s is tied to stacked by default.

And I have got this habit of mapping Shortcut+Shift to the reverse of every shortcut