r/swaywm • • Jan 19 '26

Utility I vibe coded a weather widget.

Post image
0 Upvotes

r/swaywm • • Sep 24 '21

Discussion Unpopular opinion: sway does not have sane defaults and tiling WMs make no sense

2 Upvotes

I know that this is going to be an unpopular opinion on here, but my first experience with sway has been absolutely awful. I’ve tried all the normal, floating desktop environments—Gnome, KDE, XFCE, Cinnamon, Mate, Unity, and Budgie—and none presented such a terrible experience for first-time users. The only reason I tried sway in the first place is because I wanted a setup that would play nice with my 4K monitor and HiDPI laptop (I was not a fan of blurry XWayland apps in Gnome).

To begin with, installing the sway package does not actually copy the config file to ~/.config/sway/config. When I first logged in to sway, my keyboard did absolutely nothing. I had to shutdown my computer from the power button and reboot into a desktop environment that actually works. Sway clearly fails Linus Torvald’s test of having sane defaults.

But my troubles were just beginning. Managing a desktop entirely through a config file sucks. My monitors were of course configured the wrong way around, and I had to struggle for 15 minutes until I had a usable configuration. The same thing would have taken 30 seconds to do in a GUI app.

The fact that swaybar has no applets and does not respond to mouse input seems totally bonkers to me. By default, there is no way to connect to a wifi network, change audio and screen brightness, or log out of the session graphically.

Then there’s the fact that the concept of tiling makes no sense. Each window/app is tiled the same, as if a calculator program should take up as much space as your browser or IDE. And window management takes more time and effort than it does on a non-tiling WM, since you have to open a new workspace once your windows no longer fit properly. Minimising a window is far easier and works much better for a trivial program.

I will be sticking to Cinnamon with gTile and XRandR fractional scaling for now. Or Gnome with Tiling Assistant. I would sooner put up with X11 until everything is working on Wayland, then endure such a user-hostile desktop environment.


r/swaywm • • May 14 '26

Ricing I just wanted to notice how awesome Sway is when working with multiple coding agents

Post image
3 Upvotes

Genuinely better experience than on MacOS, or Windows. Everything always stays nicely tiled, tabbed, ordered. It is easy to achieve nice typography.

It is easy to maintain multiple sessions, see live what they do, organize everything. Generally tiling window managers are great for this.


r/swaywm • • May 22 '25

Discussion I really like sway but hyprland is just doing it better

9 Upvotes

i really like sway but hyprland is just doing things better the major plus hyprland gets is by allowing which window or app to record when screen sharing only if i could get this on sway i will never look at hyprland again.


r/swaywm • • Oct 16 '26

Utility SwineWM: A clone of Sway for Microsoft Windows

4 Upvotes

I recently had to work on a Windows machine and really did not like the interface. I was surprised to see how fast Claude could whip up a clone of Sway/Waybar/Mako/Grim that actually works really well (I am daily driving this already).

https://github.com/staalmannen/SwineWM

Warning: It is AI slop. I have not been writing this, I was just the dude telling Claude to write it, so I cannot claim any creative credits. Still, it might be useful for more people than me so I would like to share it with you guys. User feedback would be super welcome.


r/swaywm • • Sep 29 '26

Question I Want The Best GUI Wallpaper Switcher For sway

0 Upvotes

i want the best GUI wallpaper switcher for sway


r/swaywm • • Jul 19 '26

Solved So I tried Linux mint, fedora, cachyOS, endeavourOS, Arch, kde plasma, gnome, hyprland, niri. But at the end I think I will stick to sway and Debian, why because I am fed up with eye-candy effects and love stability

Thumbnail gallery
1 Upvotes

r/swaywm • • Jun 15 '25

Ricing minimalist rice up for work

Thumbnail
gallery
5 Upvotes

anything you would add? i moved to wayland from i3 yesterday and i'm trying to see what cool stuff is out there. still trying to figure out how to clip waybar out while tofi is present, so for the time being tofi's background is solid, ideally it would replace waybar while it's drawn

kitty, waybar, tofi and mako, catpuccin macchiato colorscheme

Picture source


r/swaywm • • Dec 22 '22

Release SwayOS 20221220 is released

Thumbnail
github.com
1 Upvotes

SwayOS is a sway based productivity-oriented minimalist and super elegant desktop layer over unix-like operating systems.


r/swaywm • • Jun 09 '26

Utility Meu sway simples com arch

Post image
0 Upvotes

Muito simples mas estou orgulhoso como
Meu x220 está


r/swaywm • • May 23 '23

Solved This is how to fix two issues with Sway: flickering Firefox windows, and re-arranging your windows after config reload

0 Upvotes

Flickering Firefox windows

If you have firefox in tiling mode, you will notice that any pop-up windows created by firefox (e.g. Disqus Login, some porn sites' popups) will also be in tiling mode, even if for a split of a second. this new window shrinks the main window, re-draws your page and sometines messes up the window layout. below is a way to handle it. basically, this is the way to make only the first window tiling, all other firefox windows in this workspace will be floating.

for_window [app_id="firefox" workspace="^(?!.*.*$)"] mark --add f
for_window [app_id="firefox"] floating enable, border normal
for_window [con_mark="^f$"] floating disable, border none

Of course, customize it, possibly replace the  with the word "firefox" if you dont use sworkstyle etc. We use the fact, that upon window creation, the workspace is seemingly not yet named after this window. so we apply a mark to this first firefox window but all subsequent windows in this workspace will be filtered out (the workspace filter is a Negative lookahead where .* means 'Any character except line break, Zero or more times'). We also use the fact, that any for_window rules are read from this config file sequentially. Which means the third line overrides the second line, for the specified criteria only.

Re-arranging your windows after config reload

After you reload the sway config, it seems the for_window actions will be then triggered on the windows when you interact with them the next time. For example the move container workspace number or the swap container with mark actions. The workaround is similar as above.

for_window [app_id="thunar" workspace="^(?!.*.*$)"] move container workspace number 3, workspace number 3, swap container with mark s

By using the workspace regex filter, the rule only applies to newly-created wondows, and any already-existing windows are filtered out. This prevents the buggy behaviour.

Sorry

To sum up, don't use Sway. You get little problems like these, which you fight with for months. You write scripts to do simplest things like to move a floating window to top-right corner, etc. And the devs are likely to reply "i3 don't have it, so we will not implement it". Are there better alternatives yet? I don't know.


r/swaywm • • Feb 22 '25

Question I have no idea how to use SwayWM

0 Upvotes

I've been suggested to use a tiling window manager like Sway since it allows for controlling windows with hotkeys, but I'm having trouble getting started. I installed it in Fedora and tried logging back in with SwayFX (since it has features like blurring) but after I'm just shown a wallpaper with a top bar, the top left shows a 1 and the top right shows the time. I don't know what to do there. I tried looking up guides but didn't find anything, can you link me some if you know of any?


r/swaywm • • Jul 22 '26

Question Sway - Control center!

0 Upvotes

Hey um, public question.. I vibe coded this (claude for code, but the design is mine!), it shows sway windows through sway tree.. does anyone vibe with this?


r/swaywm • • Feb 08 '20

Some people I know started a Wayland/sway discord server. Js.

Thumbnail
discord.gg
0 Upvotes

r/swaywm • • Aug 27 '24

Question How to stop this? I want to go back to the previous style

Post image
0 Upvotes

r/swaywm • • Oct 29 '20

Question Rust

0 Upvotes

So, I've noticed that my rust programs aren't working under sway WM

EDIT/UPDATE:

All rust programs installed with cargo (exa, ncspot, ytop, phetch, etc.) run fine under Gnome on Wayland but these apps do not run under Sway. This is either a Sway bug or a Pop_OS bug.


r/swaywm • • Aug 16 '26

Discussion Porting Hyprland to X11

0 Upvotes

Hey everyone,I am currently writing Vexland — a C++ port that brings Hyprland's exact window management logic, behavior, and fluid animation style over to X11. It is designed to look and feel just like Hyprland, but running on Xorg (configured with a red color scheme by default).I am going through Hyprland's source files one by one, extracting the core logic, and rewriting it from scratch to work natively with the X11 display server.Current implementation details to ensure X11 stability:Centralized Registry (CWindowState): All windows are tracked via a central registry to avoid segfaults from asynchronous window destruction on X11.Isolated Layouts (CSpace): Tiling and geometry calculations are decoupled into a separate CSpace class owned by CWorkspace.Animation Offsets: Workspace swipe/fade states are stored as simple double properties to be handled by a global animation manager to replicate the exact original transitions.The boilerplate is being put together right now before testing the X11 event loop.I wanted to check if there is an active interest in a feature-parity Hyprland experience on X11. If you have experience with X11 window mapping edge cases, feel free to drop your thoughts. I will push the repository to GitHub once the initial boilerplate is stable.


r/swaywm • • Apr 16 '24

Question How well can SwayFX replicate Hyprland?

9 Upvotes

I am finding myself in odd situation, I've just switched to Hyprland though I don't find the community to be the most pleasant (especially with the recent drama)... That said I really like the software and it's features. That all makes me wonder how does SwayFX compare? What are features which one might miss from Hyprland?


r/swaywm • • Apr 16 '24

Question Transferring from hyprland

16 Upvotes

Hi all, I'm considering switching to sway from Hyprland. The main reason is the rather toxic community and the fact that they'd something I just don't like about Vaxry that I can't quite put my finger on. Back before I was using Wayland I used Awesome on xorg - how similar is sway to both Hyprland and awesome?

Also because I'm rather lazy, I did minimal configuration of Hyprland as a lot of it "just worked" - how much initial configuration is necessary with sway?

I'm currently using waybar - is this viable in sway or are there other bars you might recommend?

How does sway stack up performance wise? I had an issue where if I set my monitor refresh to 120hz with vrr, Hyprland would lock up - I know they're both based on wlroots, so was wondering if that might also be an issue on sway?

I know it's a lot of questions, but any advice is welcomed, as well as suggestions I may not have considered


r/swaywm • • Sep 11 '26

Utility I created a light bar for Sway(FX)

Thumbnail
github.com
2 Upvotes

I (with heavy use of AI) created a simple and light status bar. I built it for myself, but it is scriptable and well documented, so you can give it a try.

It supports native source as well as external provider such as i3status-rust. It has vector graphics, TOML config, system tray, script support, even its own icons (a few of them) and animations. The code and docs are here. It requires glibc.


r/swaywm • • Nov 04 '24

Question what is the current state of sway and nvidia

2 Upvotes

i want to make a switch from i3 to sway but when i used sway back then it was not working properly.

i want to run blender. performance is must in my case. , if sway work properly, please link reference to a documentation. sorry my english is bad. :(


r/swaywm • • Jul 31 '25

Question what are better shortcut keys for this?

Thumbnail
gallery
0 Upvotes

I was edit sway and found out you can open websites with shortcut keys and decied to open the websites I used the most but not sureabout the shortcut key? is there a default shortcut key this or some thing better ?

Also I wanted to remove the top part(the "Submit to r/ swaywm - Brave) or hide it with the shortcut key,is there a way to do this? I can do this with a terminal but I am not sure about a browser
Also any ricing tips? on what shortcut can I use?
Also I did have the idea of opening brave by typing which website you wanted to go to like you press a shortcutkey and then something pops up and you type a website like youtube and youtube opens up , is this possible?


r/swaywm • • May 08 '21

Question Brave browser in Sway

0 Upvotes

Does anyone know how to run brave-browser in sway?


r/swaywm • • Jul 06 '23

Question Remotely starting graphical app inside Sway session, when the app needs to run as root, without relying on authentication from within the session

0 Upvotes

Hello, I have a workflow where a script that is running outside of the graphical session as root needs to spawn a graphical application as root inside the graphical session.

Normally the way you start apps from outside of the session is something like this:

SWAYSOCK=<path> swaymsg exec <command-line>

However, this method spawns the application as the same user as the session's. This is because the Sway instance that receives this command via the socket is itself running as said user. So neither does it have the ability to spawn a process as root, nor does it even know that the caller intends the command to be run as root.

Normally in order to spawn an app as root, we would perform some sort of authentication. For example:

SWAYSOCK=<path> swaymsg exec ksudo <command-line>

However, the script that I'm running is already root, it already has the ability to run any program as root, so I'd find it stupid and annoying (not to mention partly defeating of the purpose of the script) to have to authenticate from within the graphical session. Not to mention that the user is not a sudoer and I have no intention of making it so.

So the question is: Assuming that we are already running as root (e.g. inside a script or from a root shell on a tty), and we want to spawn a graphical application AS ROOT inside a Sway session of an ordinary user, how can we do so?

Since I created this post looking for a specific type of answer, I will further clarify what types of solutions I do and do not want:

🚫 Rejected Solutions

  • Any method that involves authenticating, including having sway invoke sudo, gsudo, ksudo, or any other variety.

  • Playing with PAM rules, making the application setuid, or any other method that involves giving the user new permissions or allowing them to bypass authentication

✅ Accepted Solutions

  • The script is already running as root, so there is no problem whatsoever with the script itself launching the application. The only thing I need is how to make this application that is launched by the script itself show up inside the Sway session.

  • Of course, the script does not have to directly invoke the application; it can utilize any proxy (e.g. env <variables> <stuff> <command-line>), so long as we are taking advantage of the fact that we are already root, and not asking for authentication from within the non-root session.

Thank you in advance.

✅ Edit: Incomplete, Dirty-as-Hell, Proof-of-Concept Solution Found

I did find a way that works, although it's still crude as hell, could use a lot of refinement, and so far only works for Wayland apps.

Basically, it seems that everything a Wayland application needs to know in order to communicate with a Wayland compositor exists in environment variables. I have not taken the time to enumerate every single relevant variable yet, but a quick and dirty way to test this (emphasis on test; I'm not saying you should do this in production) would be by dumping the user's whole environment into a file, sourcing that file (and exporting the variables), then starting the graphical application. When the application is started by root from a tty outside of the graphical session, the application successfully shows up inside the session and works as intended.

To quickly reproduce this dirty hack:

  1. Open a terminal, type export -p > run-in-sway.

  2. Edit run-in-sway , add a shebang line (like #!/usr/bin/bash) at the beginning, and exec "$@" at the end of the file.

  3. As root, copy this file to somewhere where you can execute it, mark it as executable.

  4. Still as root on a tty outside of Sway, execute run-in-sway kitty.

  5. Switch back to the Sway session. You will find kitty running, the shell prompt says root, and you can test your privilege with something like cd / && touch FILE && ls -a, and you will see FILE among the entries.

As I said earlier, this can probably be significantly refined as we do not really need the whole environment, only a subset of it, including variables related to Wayland, Sway, dbus, possibly some XDG variables (like XDG_SEAT, XDG_SESSION_ID, etc.), and maybe a bunch of others.

Also, this is currently only working for Wayland apps. X apps on the other hand are spewing out errors and/or segfaulting, so there are still some missing ingredients to make X applications work. (Possibly the X session's cookie file? I'll see about that...)

And finally, it goes without saying but if something based off this is to be used in a production script, then extreme care must be taken in how you obtain the environment from the user, since allowing the user to produce a file and then sourcing it from a root shell is about as atrocious of a security practice as it could get.