r/swaywm • • 10h ago

Question Pasting image from clipboard without conversion?

3 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 • • 20h ago

Question How to setup default aplication

4 Upvotes

I want to set browser as default


r/swaywm • • 12h ago

Utility made a small slide-in AI popup for Sway

Post image
0 Upvotes

just made this little side assistant public. I originally threw it together for myself after moving to Sway WM, Sway makes it super easy to mess around with these kinds of scratchpad/slide-in popups.

basically: hit a hotkey (SUPER + o by default), a foot panel slides in on your focused monitor, you ask a quick question, hit the hotkey again and it clears itself.

a few things about how I built it:

  • best for quick general questions with /reasoning off so answers feel instant
  • bring your own key (OpenAI/OpenRouter) or point it at a local
  • doesn't read your clipboard, grab selected text, or execute commands, just a fast second opinion without opening a browser tab. no history on purpose. anything more complicated should be done with your main big-boy agents :)

I daily-drive it on Sway, and recently cleaned it up so it also works on Hyprland and Plasma Wayland. try it out if you want something lightweight: https://github.com/0chonko/sway-ask


r/swaywm • • 1d ago

Release scroll: new stable release 1.12.22

46 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 • • 4d ago

Ricing swayfx + archlinux

Post image
20 Upvotes

r/swaywm • • 5d 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 • • 6d 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 • • 5d 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 • • 6d 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 • • 6d ago

Ricing [Sway]My termux(proot distro rice)

Thumbnail gallery
7 Upvotes

r/swaywm • • 6d 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 • • 8d ago

Release sway-blur v1.4.0

Thumbnail
gallery
41 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 • • 9d ago

Discussion Glad that Sway is so less aesthetic.

60 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 • • 9d 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 • • 10d ago Bravo

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

Thumbnail
gallery
84 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 • • 10d ago

Ricing [sway] minimal fedora 45

11 Upvotes

r/swaywm • • 10d 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 • • 10d 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 • • 11d ago

Ricing I love mario [swayfx]

Thumbnail
gallery
21 Upvotes

r/swaywm • • 11d ago

Ricing my sway rice (asahi linux)

Thumbnail
gallery
117 Upvotes

gruvbox-material colour.

that's my girlfriend btw :)


r/swaywm • • 11d 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


r/swaywm • • 11d ago

Utility bl-waybar-manager

Thumbnail
gitlab.com
5 Upvotes

Gerenciador de tema para Waybar


r/swaywm • • 11d ago

Utility bl-waybar-manager

Thumbnail
gitlab.com
0 Upvotes

Gerenciador de tema para Waybar


r/swaywm • • 13d ago

Question Layout setup and restore?

6 Upvotes

Is it possible to define window layouts of applications for workspaces so that e.g. you can auto-start apps and not have to manually set up the window layouts? Currently I just have apps auto-started in certain workspaces but I find myself having to adjust the layouts for most workspaces that involve more than one window (one might be tabbed, the other might have a window taking 3/4 the screen to the left, etc.)

I auto-start a lot of apps (mainly CLI/TUI tools each in its own terminal window) and currently use Tmux does let you do that, but it's only restricted to CLI-based apps and it has its own issues (quirks of Tmux like double rendering, dealing with another set of window management keybindings and minor differences in e.g. splitting/resizing behavior vs. Sway, etc.).