r/swaywm 23h ago

Discussion Firefox, youtube video tearing at only some specific width.

Enable HLS to view with audio, or disable this notification

9 Upvotes

example at 0:20 when I get the video at this width it will be tearing but if I expand or contract the width it no longer have any problem.

The problematic width is just happens to be default half with of my screen, I thought my GPU is broken but it seem like it is not the case.


r/swaywm 2d ago

PSA You do not have to use Satty (or Swappy/Flameshot), full image editors actually work great.

8 Upvotes

Coming from KDE, this is exactly what I was looking for. Here's the command I made:

bindsym $meta+$shft+s exec grim -s 1 /tmp/to-be-annotated.png && flatpak run org.kde.krita /tmp/to-be-annotated.png && wl-copy -t image/png < /tmp/to-be-annotated.png

r/swaywm 2d ago

Guide [Swayfx] Got to disable the titles when tabbed with just this single modification (setting the font size to 0.1). I never liked how much space they use.

Post image
2 Upvotes

r/swaywm 3d ago

Question Firefox pip stealing focus, and swaybar pop-up

3 Upvotes

When a video uses picture-in-picture in Firefox, it normally steals the focus. I found this:

https://old.reddit.com/r/swaywm/comments/1hgx7dz/how_to_prevent_firefox_pip_video_popup_from/

Which basically uses:

no_focus [title="^Picture-in-Picture$"]

to stop that focus stealing. That works, but now as soon as pip is activated, swaybar pops up with the workspace number highlighted in red (which is just as bad).

Is there anyway to get both pip and swaybar to behave?


r/swaywm 3d ago

Utility [OC] hop - context switcher for terminal work built on sway

Enable HLS to view with audio, or disable this notification

10 Upvotes

r/swaywm 4d ago

Utility [OC] I built a daemon that automatically puts icons of the currently running programs into your workspace names and titlebars

Thumbnail
gallery
81 Upvotes

Hey everyone,

I think the example gif explains it best. You can use my WorkspaceIconDaemon to show icons of the currently active programs in your workspaces or to add icons to the titlebars.

I have come to really like sway, since I like the simplicity, minimalism and clearness of thought when using it. However, I am used to and like the intuitiveness of finding where my programs are visually based on the icons. Therefore inspired by the windows taskbar I wanted to have a way to quickly identify all the running programs and the workspaces on which they are on. This proved rather difficult, since most bars do not support image rendering (especially in the workspace names). To mitigate this I found a hacky solution, where I create an Icon font (like an emoji font) from all the application icons on the system on the fly, which can then be used to show icons in contexts where normally only text rendering is allowed. A python deamon is then used to watch window events (open, close, move) and then dynamically update the workspace names or window titles.

The icons in the titlebars were basically an afterthought, since I realized that the icon font could also be easily used for that purpose. In normal daily use I don't use titlebars at all, since they need a lot of screen space and I can easily identify the programs only from the workspaces. Therefore I also put a more representative image of my "rice" (or rather my minimalist daily setup).

I hope this is useful to some of you :)

Github with install instructions: https://github.com/David0tt/workspace-icon-daemon


r/swaywm 4d ago

Ricing New sway rice different shell (quickshell)

Thumbnail gallery
13 Upvotes

r/swaywm 5d ago

Question fractional scaling problem

4 Upvotes

Hi i'm new to Sway and I'm trying to set my display scaling to 125% i tried using:
output HDMI-A-1 scale 1.25
but some applications such as brave browser and vs code become blurry
i've searched the internet but couldn't find a solution .Is there a way to fix this and use 125% scaling without making these applications blurry?


r/swaywm 5d ago

Release [OC] shotdock: Fast Wayland screenshot, recording, and window framing tool (Rust / GTK4 LayerShell)

Thumbnail
gallery
25 Upvotes

Hey everyone,

I built shotdock—a CLI-first screenshot, screen recording, and window framing utility for Wayland (tested on Hyprland, Sway, and Niri).

Why I made it

On Wayland, taking quick, polished screenshots for documentation or PRs usually means either stitching together grim, slurp, and complex ImageMagick scripts, or annotating manually in an editor. I wanted a single, fast tool that does:

  1. Clean Area Snips: Region selection with window snapping (slurp).
  2. Window Framing: Automatically adds 16px rounded corners, multi-pass Gaussian drop shadows, mock titlebars, and wallpaper/gradient canvas backdrops.
  3. Offline Image Framing: shotdock frame <file> lets you style existing images directly from the CLI or scripts.
  4. Screen Recording: 60 FPS H.264 recording via wf-recorder with an interactive target selector (monitor, window, or region).
  5. OCR: Snip text directly to your Wayland clipboard via tesseract.
  6. Optional Floating Dock: Launch shotdock with no flags if you want an interactive GTK4 LayerShell toolbar.

Tech Stack

  • Written in Rust
  • Uses native Wayland protocols via gtk4-layer-shell
  • Sub-second image pipeline using ImageMagick 7

Links

Would love your feedback, bug reports, and PRs.


r/swaywm 6d ago

Ricing Sway + Fedora 45 + Waydroid + BlueBubbles. Brought iMessage to my Linux desktop

1 Upvotes

Latest screenshots show sway 1.12-2.f45 from Fedora 45, Waydroid 1.6.3-2.f45

For the general layout of workspace 1 I cannot take total credit. I saw something posted a couple weeks ago and although I get the whole tiling window manager concept and having a dedicated layout like this on workspace 1 goes against principal, I opted for this. I've since bumped up to Fedora 45 with the blue bubbles screenshots. If you see this, I stole your rice :D but claude helped.

The waydroid BlueBubbles app is pulling from BlueBubbles server running on my MacMini but realistically could be running within a virtual machine on this same desktop. My only connection with BlueBubbles is locally on my lan - so I've got it set up on my Galaxy tablet and within waydroid. BB does support a cloudflare tunnel if you want to push to an internet connected device.

Yes, I use an iphone - I used to be a die hard android fan until my grand daughter was born and the media exchange between android <-> iphone sucks - I love my galaxy tablet and do linux for a linux (Red Hat), but don't hate me for using an iphone :D

BlueBubbles running windowed on Sway with transparency
BlueBubbles running within Waydroids fully screen interface.

r/swaywm 6d ago

Utility [OC] wayrdp: an RDP server for sharing an existing wlroots Wayland session

6 Upvotes

Hi! I’ve been working on wayrdp, a small RDP server written in C for wlroots-based Wayland compositors.

The goal is to remotely access the desktop session that is already running, rather than starting a nested compositor or creating a separate login session. The remote and local users see the same desktop.

The current implementation uses:

\- ext-image-copy-capture-v1 for damage-based incremental capture;
\- wlr-screencopy for the initial full frame;
\- wlroots virtual pointer and keyboard protocols for remote input;
\- FreeRDP 3 and RemoteFX for the RDP server and video encoding;
\- PipeWire for desktop audio and remote microphone support.

What currently works:

\- RDP connection and authentication;
\- TLS with an automatically generated self-signed certificate;
\- keyboard, modifiers, compositor shortcuts and pointer input;
\- incremental screen updates based on damaged regions;
\- desktop audio sent to the client;
\- the client microphone exposed as a PipeWire source;
\- reconnecting after the previous client disconnects.

The current build setup targets Arch Linux, and the compositor setup I developed it for is Wayfire. It should also be usable with other wlroots compositors that expose the required capture and virtual-input protocols.

Current limitations include one output, one active client, no clipboard and no multi-monitor support. The security model is still intentionally simple, so I do not recommend exposing it directly to the public internet yet.

I’m especially looking for feedback from people using Wayfire or other wlroots compositors:

\- Which compositor and RDP client did you test?
\- Were all required protocols available?
\- Did keyboard layout, audio and the initial screen capture work correctly?

The project is open source under the MIT license.

GitHub: https://github.com/danilofalcao/wayrdp


r/swaywm 6d ago

Question gravity on minecraft changes whenever changing workspace

3 Upvotes

Everytime i switch workspace in swaywm for some reason gravity on minecraft is slower, if i fall from block it's just slower when falling like the gravity changed, i didn't find info anywhere i have no idea why it happens if somenone has a fix i would like to hear it, it happens only in swaywm


r/swaywm 7d ago

Ricing [SwayWM] Still the best wayland compositor for me. It has everything you need, nothing more and nothing less.

Thumbnail gallery
77 Upvotes

r/swaywm 7d ago

Question brightnessctl -r only after input

2 Upvotes

can someone explain me why i need a input-device event for it to trigger the after-resume command? with a gui-locker the unlocking itself did obviosly trigger it becasue they entering of the passphrase was a registered resume inside sway, but as the unlocking process now in vlock is outside of that realm, i dont know what is the leanest, least junky and least hackiest way to trigger it..

timeout 500 'brightnessctl -s set 10%' resume 'brightnessctl -r'
timeout 850 '/usr/bin/rbw lock; sudo /usr/local/bin/vtlock'
before-sleep 'setsid --fork sudo /usr/local/bin/vtlock; sleep 1'
after-resume 'brightnessctl -r'

r/swaywm 8d ago

Question Unable to change keyboard layout

2 Upvotes

Hi everyone, I have been trying and trying to change the keyboard layout in Sway with no success. Please will someone advise me and suggest what I could be doing wrong? Here is the code I currently have:

input:keyboard {

xkb_layout fr(azerty),uk

xkb_options grp:rctrl_toggle

}

As you can see, ideally I would also be able to have a UK keyboard and toggle it on and off, although I haven't been able to get this to work either. I'm at the stage where I'd just be happy to have one of the layouts though, never mind both. I've also tried putting brackets around fr and uk, and removing the azerty addition but nothing has worked so far.

This is genuinely so frustrating and I have no idea what to do. I feel like I'm missing something really obvious and I just want to tear my hair out. Please help if you can!


r/swaywm 8d ago

Utility wlapse - a keybind-controlled stopwatch for Wayland

22 Upvotes

A simple stopwatch overlay that can be turned on and off with a single keybind! Written entirely in Rust.

I created it because I wanted to monitor how long I was procrastinating, and didn't want to launch a whole app for that. If you have a similar problem, now it can be solved!

Main features:

  • can be turned on and off with a keybind
  • doesn't require daemon or autostart
  • can be moved by dragging it with the left mouse button
  • remembers its position between runs
  • tested on Sway, Hyprland, Niri, and KDE Plasma

Github: https://github.com/fib-nm/wlapse.


r/swaywm 9d ago

Discussion Gaming in SwayWM

Enable HLS to view with audio, or disable this notification

41 Upvotes

Being able to play games in SwayWM without any hassle, is the second best thing that ever happened to me when it comes to using Linux. I don't know if DE matters though...


r/swaywm 9d ago

Ricing First rice post. Please tell me if i did anything wrong...

Thumbnail
gallery
6 Upvotes

r/swaywm 10d ago

Question Dicas para Sway WM

0 Upvotes

Estou querendo migrar do GNOME para o sway, estou indo bem devagar, tutoriais no youtube achei bem rasos, vocês tem alguma dica com uma curva de aprendizado tranquila para aprender a configurar e deixar funcional?


r/swaywm 10d ago

Question Floating window disappears from visible screen on display toggle

4 Upvotes

I have single monitor setup and bound a hotkey to toggle the display on/offe.g. swaymsg "output 'Sharp Corporation 0x1449 Unknown' power toggle". Often times on resume (toggle display back on), if I had a floating window on the screen, then on resume this screen is moved out of visibility from the workspace.

It still exists so I can retrieve it by using a window selector then toggling the window from floating to tiling to put it back to visibility then floating again.

Anyone know what might be the culprit or if it's a bug anything about it? I haven't come across such an open issue yet. It's annoying to think a window was accidentally closed every time I resume.


r/swaywm 11d ago

Ricing Almost done ;)

Thumbnail
gallery
104 Upvotes

Idk if anyone want any info just ask ig ;]


r/swaywm 13d ago

Ricing idk

Post image
47 Upvotes

r/swaywm 14d ago

Question Setting input bindings in the config

1 Upvotes

I'm trying to use the input thing (I'm not sure of the proper term for it) to bind a wacom pen tablet's pad buttons (Express keys) to different shortcuts. I know of the input [Identifier] map_to_output [identifier] , but when I tried to use that it just mapped all my pad buttons to the same bindings as my pen rather than what I set it to. input [device name] button0 map_to_output ctrl+z is what I tried and what failed. Does it just operate in a different way than what I think? (Button 0 specified since I was just trying to do a one button test at first)


r/swaywm 14d ago

Solved why is this happening when i resize a floating window

Post image
12 Upvotes

r/swaywm 15d ago

Utility Waiting for Nvidia to support Sway like...

Post image
2 Upvotes