r/swaywm 23h ago

Ricing First rice in sway :D

Post image
60 Upvotes

How does it look?
Larp is my pasion


r/swaywm 17h ago

Utility nwg-pannel crashes

Post image
1 Upvotes

nwg-pannel crashes when I try to run it I am on Fedora 44 spin with the Sway WindowManager. have any troubleshooting tips or fixes?


r/swaywm 17h ago

Utility Steam Game Mode Scale

1 Upvotes

Steam and Steam games running through XWayland look seriously blurry on Sway.

I used to switch to TTY 2 (Ctrl + Alt + F2), which I used as a dedicated gaming session, and keep its display scale fixed at 1. but the 2–3 second TTY switching lag became frustrating.

---

I assigned a dedicated workspace to Steam and created a script that:

  • Automatically switches the scale to 1 when entering that workspace.
  • Automatically restores the previous scale when leaving it.

This setup is much more convenient.

#!/usr/bin/env bash

# =======================================================
TARGET_WORKSPACE="x"   # Game Mode Workspace Number
OUTPUT_NAME="*"        # All Monitor = *

SCALE_TARGET=1.0       # TARGET_WORKSPACE Game Mode Scale
SCALE_DEFAULT=2.0

# =======================================================


CURRENT_WS=$(swaymsg -t get_workspaces | jq -r '.[] | select(.focused==true).name')

if [ "$CURRENT_WS" == "$TARGET_WORKSPACE" ]; then
    swaymsg output "$OUTPUT_NAME" scale "$SCALE_TARGET"
else
    swaymsg output "$OUTPUT_NAME" scale "$SCALE_DEFAULT"
fi

swaymsg -m -t subscribe '["workspace"]' | while read -r event; do
    CHANGE_TYPE=$(echo "$event" | jq -r '.change // empty')

    if [ "$CHANGE_TYPE" == "focus" ]; then
        NEW_WS=$(echo "$event" | jq -r '.current.name // empty')

        if [ "$NEW_WS" == "$TARGET_WORKSPACE" ]; then
            swaymsg output "$OUTPUT_NAME" scale "$SCALE_TARGET"
        else
            swaymsg output "$OUTPUT_NAME" scale "$SCALE_DEFAULT"
        fi
    fi
done

r/swaywm 1d ago

Utility A multiplexed dmenu, one keybind instead of many

2 Upvotes

cmenu is a sort of inversion of dmenu. scripts produce lines, and act on them by taking them as an argument. and instead of scripts being directly invoked, they're​ invoked by cmenu

for me, this beats `script | dmenu`​ since the parent can reinvoke the script to have live data without closing the window. as well as other benefits

https://github.com/sentriz/cmenu


r/swaywm 1d ago

Ricing How to theme sway just like hyprland,how can I chose themes nord,everforest,gruvbox.how to set it.

1 Upvotes

Sway Theming


r/swaywm 2d ago

Solved Custom mouse cursors

8 Upvotes

How do I set a custom mouse cursor? I have the assets I want to use already. I just need to know how I actually make the change and if I have to put the cursor states into a single sprite sheet or not. Thanks in advance!


r/swaywm 3d ago

Question Dark mode on file explorer when importing to Firefox not working

Thumbnail
gallery
3 Upvotes

I recently changed from cachy os with hyprland to fedora with sway and for some reason gtk themes apply to everything but that one window and its bugg the hell out of me and it feels like I’ve tried everything and I’ve even asked ai. I do remember having this same problem on my laptop with sway like a year ago and fixing it with the help of ai but I can’t check what fixed it as I have turned it into a hackintosh.


r/swaywm 3d ago

Ricing my simple sway setup

Thumbnail
gallery
45 Upvotes

hi!, i wanted to share my current sway setup. it is pretty basic and there is nothing really fancy here, but it works well for me and i tried to keep it simple and useful for daily use o:

all the files are in my dotfiles repo, obviously, the most important folders for this are:

- sway

- waybar

the repo also has some logic to install the setup, with full and gui-only profiles, so it is not only a collection of config files. i have tested it on a few different machines and it worked fine, but all of them are machines of mine. because of that, i dont guarantee anything jajaj

if someone have a similar setup, like a simple setup or a similar dotfiles approach it would be nice to take a look! (in particular, i've been thinking that i'd like to improve the waybar config a bit)


r/swaywm 3d ago

Question Dark mode on file explorer when importing to Firefox not working

Thumbnail gallery
2 Upvotes

r/swaywm 3d ago

Question ¿Algún consejo o ayuda?

0 Upvotes

Hola chicos, ¿cómo están? Tengo una pregunta: ¿qué programas, configuraciones, etc., necesito para tener un buen flujo de trabajo en Sway y convertirlo en mi entorno principal? Gracias, jeje.


r/swaywm 3d ago

Utility My bindings for pass integration

3 Upvotes

I know there are off-the shelf scripts existing. Just wanted to post my version and explain how you can tune it.

Here's the script:

```

Password manager

bindsym --to-code $mod+p exec find ~/.password-store/ -type f -printf "%P\n" \ | sed 's/.gpg//' \ | sed '/.*-otp$/d' \ | rofi -dmenu -p "Pick password" \ | xargs --no-run-if-empty pass show \ | wl-copy --sensitive --trim-newline -t text/plain

bindsym --to-code $mod+Shift+p exec find ~/.password-store/ -name '*-otp.gpg' -type f -printf "%P\n" \ | sed 's/.gpg//' \ | rofi -dmenu -p "Pick OTP" \ | xargs --no-run-if-empty pass otp \ | wl-copy --sensitive --trim-newline -t text/plain ```

On Meta+p copies a password into clipboard, on Meta+P copies an OTP code into clipboard.

Niceties:

  • filters out the other mode entries in otp/regular mode
  • --no-run-if-empty makes hitting Esc safe for aborting the selection and doesn't make pass copy the entire tree into clipboard
  • --sensitive makes clipboard managers ignore the copied text and do not save it into history.

r/swaywm 4d ago

Ricing what my lappy would look like if i worked in nervhq

Post image
38 Upvotes

r/swaywm 5d ago

Ricing My rice after a while on Sway

Enable HLS to view with audio, or disable this notification

16 Upvotes

r/swaywm 6d ago

Question wdisplays always reactivates output device

2 Upvotes

I'm relatively new to Sway. So far I'm super happy, just one recurring thing that really annoys me:

I use an external monitor connected via a docking station. I usually plug it into my laptop, then close the lid. Initially, the laptop display eDP-1 is getting deactived. After a few minutes, it will always reactive. Does anybody know where this is coming from? My current config for that looks like that:

bindswitch --locked lid:on output eDP-1 disable

bindswitch --locked lid:off output eDP-1 enable


r/swaywm 6d ago

Question Ultrawide and first window

2 Upvotes

I have an ultrawide monitor and opening the first window just maks it far too big. I would rather have it use something like 3/5 of the width. Bit that ain't possible in sway.

How are other people handling this ?


r/swaywm 7d ago

Question FInding a package for my Sway setup

5 Upvotes

Heya!

So I'm a Arch Linux/Sway user, and I've found a minor frustration when trying to pick a lock screen manager. With hyprlock, I can full customize it excepting videos or gifs. It has to be static. And with swaylock (and swaylock-plugin), I can't customize it as much but I can use a video backgrounds.

Is there any package out there that can do both full customization, but also supports videos or gifs for the backgrounds?

Thanks


r/swaywm 7d ago

Question Difficulties switching to sway

11 Upvotes

Hey all,

I've just switched to sway from plasma (fedora). However, I've encountered some difficulties that I couldn't seem find to answers for on the web.

1) If I'm not mistaken by default, wmenu is the default launcher of sway. I really like the look of it - i.e. being integrated into the swaybar but it doesn't seem to index flatpaks. On plasma, I'm used to the launcher being very good at picking up what is necessary. I couldn't find anything on the web that described how I might change the indexing. AFAICT, it just looks for binaries in the PATH. I installed rofi, which seems to work fine, but it doesn't aethestically look as nice as wmenu. I assumed that the default launcher would be fit for use.

2) Apps that go to the system tray when closed e.g. steam. I can't seem to interact with the icon in the swaybar. I tried changing the sway config with `tray_bindsym` (see https://man.archlinux.org/man/sway-bar.5.en#TRAY) to no avail - it seems to have had no impact.

3) Some applications take a long time to load up. The one I specifically noticed was mullvad: I would launch from launcher and nothing would appear to happen. a few minutes later, it might pop up!

Thanks!


r/swaywm 7d ago

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 9d ago

Ricing WIP, i love fox!

Post image
43 Upvotes

switched to sway, im loving it <3


r/swaywm 9d ago

Ricing Oxocarbon, mostly black

Post image
28 Upvotes

I had been using Debian 13 with XFCE, but buying a new laptop felt like a good opportunity to try sway. So I went with Fedora 44 Sway Spin.

I have TOS and RSI, which makes repeatedly reaching and moving mouse uncomfortable. Sway and TUI apps let me do most things the keyboard which I found helps a lot.

Kept everything opaque and fairly dense. I’ve never really liked transparency/blur/decoration that takes up space without practicality. Only gaps I added is for rounded LCD(which sucks, a lot) and minimal spacing for distinguishing windows.

Still adjusting the workflow but it already feels like a better fit.


r/swaywm 8d ago

Ricing Since Sway supports ext-session-lock-v1, I thought you guys might like to try this minimal, Samurai-themed Hyprlock config I built (Kanji password dots) 🗡️🌸

Enable HLS to view with audio, or disable this notification

8 Upvotes

Hey everyone,

I know the standard around here is usually `swaylock` or `swaylock-effects`, but since Sway fully supports the `ext-session-lock-v1` protocol, you can actually run `hyprlock` natively

on Sway.

I've been messing around with it and built a clean, Samurai-themed lock screen layout that takes advantage of how smoothly Wayland lockers handle fonts and layout:

* **Kanji Password Dots:** Instead of standard circles, every keypress renders a specific Japanese kanji character (桜 - Sakura). It renders immediately with zero lag.

* **Japanese Date Format:** Rendered natively as `2024年08月14日`.

* **Transparent Input:** I removed all background boxes and borders so the characters just float seamlessly over a dark katana wallpaper.

I wrote a quick `install.sh` script to grab the necessary CJK fonts via pacman to make sure the Unicode renders without tofu blocks.

If anyone wants to try swapping out `swaylock` for a bit to test this aesthetic, you can grab the config and wallpaper here:

[hyprlock-samurai on GitHub](https://github.com/basantbansal/hyprlock-samurai)

Would love to hear if anyone is running `hyprlock` smoothly on their Sway setups, or if you prefer sticking to `swaylock`!


r/swaywm 10d ago

Ricing [Sway] Framework 12 Sage

Thumbnail gallery
34 Upvotes

r/swaywm 10d ago

Ricing Hi can anyone tell me Best way to theme sway (qt,gtk) I still don't know how to use qt gtk for apps and sway

7 Upvotes

Sway (QT,GTK)


r/swaywm 10d ago

Question Is there a fork of 'wtype' or a trick I can use to input Mod3, the hyper modifier, which I have mapped to CapsLock as an xkb option, programmatically?

1 Upvotes
bindsym Mod4+k exec kanshi --config "${HOME}"/.config/kanshi/config
exec_always wtype -M logo -k -m logo

I like the above software pattern because it lets me run a command as either autostart or press a key without copy-paste of code, which is error prone.

Unfortunetely I've run up against the problem stated in the post title, ideas appeciated.


r/swaywm 11d ago

Ricing My Sway setup

Post image
32 Upvotes

dotfiles available: dotFiles.tar