Questions tagged [sway]

SirCmpwn's Wayland compositor is a work-in-progress i3-compatible Wayland compositor.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

Sway input, how to get the 'us intl' layout (US keyboard international variant)

I am trying to get this layout working Should I put something in /etc/sway/inputs/default-keyboard ? I tried to get the information with man 5 sway-input and swaymsg -t get_inputs but it did not help. ...
user avatar
-1 votes
1 answer
41 views

Why are these xhost commands used here for running a docker container?

I am running a docker container. The suggested way to run it is $ xhost + access control disabled, clients can connect from any host $ sudo docker run -it --rm --ipc=host -e ...
user avatar
  • 89.8k
0 votes
2 answers
48 views

How to prompt for file save location using grim?

I currently use Sway/grim to save screenshots, but it is not obvious to me how to improve this by prompting for a filename. In other words, right now a typical binding in my sway config is as follows: ...
user avatar
  • 5,331
0 votes
0 answers
164 views

Setting xkbmap in Wayland

I am using Sway & Wayland on Arch with a fresh install. Everything is going well, besides one problem which I usually have, however this time I cannot solve it. On every Linux distro I have tried, ...
user avatar
  • 1
0 votes
1 answer
166 views

sway get the layout of the currently focused container

How do I get the layout of the currently focused container in sway (eg. 'splith', 'tabbed')? I guess the best way would be to parse the JSON output (sample below) of swaymsg -t get_tree using jq, but ...
user avatar
0 votes
1 answer
264 views

Multi-GPU Setup in sway

I will have soon a setup, where my desktop has an integrated and a dedicated graphics card, both AMD, and I already searched but didn't find any good answer in how the multi-GPU setup works. I would ...
user avatar
2 votes
0 answers
460 views

OBS can't do window capture under Sway

I'm running Fedora Linux with Sway, and I wanted to capture some stuff with obs. However, there is simply no option to do a "Window capture". As far as I can tell, this is usually attributed ...
user avatar
  • 223
1 vote
1 answer
287 views

How to make screen sharing work on sway/wayland ? For noobies

I'm new to sway/wayland and I'm trying to make screensharing work on chrome. So far I've installed pipewire xdg-desktop-portal and xdg-desktop-portal-wlr. I've set the chrome://flags/#enable-webrtc-...
user avatar
  • 133
0 votes
0 answers
203 views

Using wayland protocols to implement an On-Screen-Keyboard

I wrote a small test app which tries to write an emoji to a window of a different app. But it just keeps freezing in certain situations (or always in the case of gnome) and now i'm wondering if input-...
user avatar
  • 1
1 vote
1 answer
266 views

External monitor detected but shows no video output in Sway / Wayland

I have an external monitor connected to a thunderbolt dock which I would like to utilize. For whatever reason, the monitor appears to be recognized by the system but fails to display anything. I can ...
user avatar
1 vote
0 answers
40 views

Can Sway magnify the application window?

One problem I have when running applications under Wayland Sway is that sometimes the application fonts (used in menus, for example) are too small. This is especially the case if I am using a high ...
user avatar
  • 5,331
0 votes
1 answer
27 views

Scanning laptop open/close key events doesn't work

I have a laptop with Void-Linux and Wayland desktop environment (sway). I'm trying to bind laptop's open/close event to custom command, but I can't scan key events here. I tried it with showkey --...
user avatar
  • 418
0 votes
0 answers
96 views

How can I recover from a Sway crash?

I crash pretty frequently when using Sway. The biggest culprit is OpenOffice, but sometimes Chrome crashes. These crashes are always freezes; so the screen just freezes. I know it is a low level crash ...
user avatar
  • 5,331
7 votes
1 answer
5k views

"[libseat/backend/seatd.c:70] Could not connect to socket /run/seatd.sock: no such file or directory" after updating wlroots, Sway and libseat on Arch

I just updated my system, there were only three updates available: wlroots, sway and libseat. I don't have a display manager installed and before loading Sway I'm shown this: [wlr] [libseat] [libseat/...
user avatar
2 votes
2 answers
3k views

How to switch to system wide dark theme in i3 or sway?

On gnome, gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' can set dark theme system-wide. However, the same doesn't happen with a sway session. Firefox browser still detects light ...
user avatar
  • 191
0 votes
0 answers
37 views

How can I diagnose my desktop configuration in Sway

I have Sway running on Arch and I want to configure the graphical settings like default fonts and I am running into some problems simply figuring out how the system is configured. For example, the ...
user avatar
  • 5,331
0 votes
0 answers
119 views

Linux -- programable menu application for wayland

I am using openbox window manager and I love the and I love it's menu concept where I can edit menu in XML and I can program it to call my scripts, open a terminal and open somethjing inside the ...
user avatar
  • 816
0 votes
1 answer
230 views

annoying CTRL+F# instead of CTRL+ALT+F# Virtual Terminal Switching on Fedora 33 with sway wayland and gdm

I have the annoying problem that CTRL+F# is switching to a Virtual Terminal. This should normally be done with CTRL+ALT+F# but for some reason it is also triggered by CTRL+F#. I actually have an ...
user avatar
0 votes
1 answer
252 views

Can't detect monitor brightness keys in Wayland, but they are detected in X

I'm trying to slowly shift my way towards Wayland, but I'm having some trouble with my laptop's media keys. On X, all the ones I need are supported no problem, but when I switch over to Sway, I'm not ...
user avatar
0 votes
1 answer
461 views

How do I create a complicated custom XKB file for Sway?

Sway uses Wayland, so any XKB files will be parsed by Sway, not X. I want to add a layer on the keyboard (probably using Hyper) I want to shuffle some modifier keys around I've looked at a lot of ...
user avatar
  • 129
8 votes
1 answer
12k views

Could not find the Qt platform plugin "wayland"

I get the following error when I run vlc: $ vlc VLC media player 3.0.11 Vetinari (revision 3.0.11-0-gdc0c5ced72) [0000561d2cc24a30] vlcpulse audio output error: PulseAudio server connection failure: ...
user avatar
  • 333
2 votes
1 answer
729 views

How to disable suspending the system when the lid is closed?

How can I disable suspending when the lid is closes? I never suspend my laptop. When I close the lid and the system is running, I want the screen to be blanked, but the system should run as if the lid ...
user avatar
1 vote
0 answers
1k views

Can't use Flatpak apps on Wayland

Whenever I attempt to run a Flatpak app from the console, such as: flatpak run com.discordapp.Discord or flatpak run com.spotify.Client, I get an error that I can only assume has something to do with ...
user avatar
  • 21
4 votes
0 answers
648 views

Often can't kill window in Sway

One problem I have using Sway is zombie apps that get hung and cannot be killed from within Sway. Sway has a "kill" command which by default is bound to the hotkey mod+Shift+Q, however this ...
user avatar
  • 5,331
0 votes
0 answers
238 views

Can Sway be used as a full screen compositor

I never like the "desktop" metaphor, so when Wayland rolled around I switched to Sway thinking that a tiling compositor was what I wanted. But after using Sway for a few months I realized ...
user avatar
  • 5,331
0 votes
1 answer
2k views

How can I reload swayidle / swaylock?

In my .sway/config, I have exec swayidle -w \ timeout 30 'swaylock -f -c 000000' \ timeout 30 'swaymsg "output * dpms off"' \ resume 'swaymsg "output * dpms on"' \ ...
user avatar
  • 22.4k
0 votes
1 answer
619 views

What is XCB Error Code 3?

Checking journalctl /usr/bin/sway I see lots of errors like this [xwayland/xwm.c:1286] xcb error: op 18:0, code 3, sequence 42593, value 4194450 What do they mean, is there any reason for concern ...
user avatar
  • 22.4k
1 vote
1 answer
410 views

What screen recorder will work with SwayWM?

I'm using SwayWM what screen recorder or capture program can I use with it?
user avatar
  • 22.4k
1 vote
0 answers
80 views

Stop Wayland / Sway from intercepting virtual console hotkey (Alt-F1, etc)

I am using Wayland / Sway on Arch with the x-compatibility layer enabled and it is consuming keystrokes, notably the Alt-F1 hotkey necessary to get to a virtual console. I suspect it is the x-layer ...
user avatar
  • 5,331
0 votes
1 answer
521 views

Mouse calibration in Sway

I am using Wayland Sway in Arch and my pointer is not moving far enough across the screen for a given mouse movement. I assume that I need to change the calibration matrix for the mouse, however, ...
user avatar
  • 5,331
0 votes
1 answer
1k views

How do you kill a Sway session from a virtual console?

I can start a Sway session from a virtual console by just giving the command "sway" while in user mode, however, it is not clear how to cleanly kill the session from a virtual console. There is no ...
user avatar
  • 5,331
0 votes
1 answer
63 views

Why does Sway help recommend putting the user config in the second priority location?

When Sway starts, according to its man page, it looks for a configuration in the following places: 1. ~/.sway/config 2. $XDG_CONFIG_HOME/sway/config (suggested location) 3. ~/.i3/config 4. $...
user avatar
  • 5,331
3 votes
3 answers
7k views

How to toggle keyboard layout in Sway from the shell?

How can I toggle between xkb keyboard layouts in Sway from the command line? My layouts are configured like this: input type:keyboard { xkb_layout pl,es xkb_options grp:win_space_toggle,...
user avatar
3 votes
1 answer
985 views

How to set layout of a multiple sway/i3 containers on startup?

Problem I'm using Sway window manager, but the same applies to i3 I guess. On startup I want to start 2 terminal windows on the same workspace. One of them will run Neovim, and the second one will ...
user avatar
0 votes
1 answer
827 views

Launching Sway on login with zsh

I set up .bash_profile to exec sway on login, and then ended up switching to zshell as my default shell. When I log in it just stays it no longer auto launches sway of course. I'm wondering if there ...
user avatar
2 votes
0 answers
161 views

Open Link in GNOME Terminal under i3/sway not working

If I try to open a link in GNOME terminal, then nothing happens if I'm in a Sway/i3 session. If I try the same while running GNOME, then opening a link works, i.e., Firefox opens the link. Any ideas ...
user avatar
  • 325
2 votes
1 answer
11k views

Where/How are the fonts configured in swaywm?

Where/How are the fonts configured in swaywm? I saw reference to .Xresources/.Xdefaults being used for some things https://wiki.archlinux.org/index.php/Sway#Xresources What does Xresources handle ...
user avatar
0 votes
1 answer
754 views

Error when launching gnome-terminal on Sway

I've installed gnome-terminal and xorg-server-xwayland and now I am trying to launch gnome-terminal. I already had an error caused by keycodes above 255. I deleted the keycodes above 255 and the ...
user avatar
2 votes
1 answer
3k views

Caps Lock behavior under Sway / Wayland

Under X, I can make Caps Lock behave as Esc when pressed briefly, but as Ctrl when held down with: setxkbmap -option 'caps:ctrl_modifier' xcape -e 'Caps_Lock=Escape' -t 100 How can I replicate this ...
user avatar
  • 8,837
18 votes
4 answers
22k views

Simple swaybar example

I'd like to have a simple, calm status bar for Sway which I use with Arch Linux. The configurations I found so far use a separate program like waybar or i3status. While they look great, I'd like to ...
user avatar
2 votes
0 answers
1k views

How to alter level 3 meaning of keys with XKB

I had a neat little hack to get German "Umlaute" on a US ANSI keyboard with XModap. When I hold Caps-Lock, I get Umlaute in the places where they are on a German keyboard. Here my .Xmodmap file ...
user avatar
  • 121
2 votes
2 answers
2k views

Get PID of focused window in wayland

Is there a method to get the PID of the currently focused window in wayland? I am using the sway window manager. Thank your for your help!
user avatar
  • 141
0 votes
1 answer
2k views

How to configure libinput on alpine linux?

For test purposes I installed alpine on my laptop. (It contains pretty much only the minimal default packages and wayland/sway.) When I try to run sway everything looks fine, but mouse and keyboard ...
user avatar
  • 20k
10 votes
3 answers
17k views

Keyboard Layout with Sway on Fedora (Wayland)

I have recently installed Fedora 27 which I find quite nice, I like the Gnome Desktop, but for working I definitely prefer a tiling window manager. I would like to use Sway because I was using i3 ...
user avatar
4 votes
1 answer
11k views

How to configure gdm for login into a sway session?

I have installed sway window manager on Fedora 27. The system uses gdm as its login manager. But gdm does not provide sway for selection as the login session. Only Gnome, which is also installed on ...
user avatar
3 votes
1 answer
4k views

How do I change the mouse cursor icon for the Sway Wayland compositor?

Under i3 I could change the mouse cursor icon by editing ~/.Xresources, is it possible to change the mouse cursor icon for Sway?
user avatar
  • 3,273
6 votes
1 answer
3k views

How to lock screen on lid closing using systemd?

I am running Sway on Fedora 26 and want my laptop to be locked when I close my screen. I changed HandleLidSwitch to lock in /etc/systemd/logind.conf and ran systemctl restart systemd-logind after that....
user avatar
  • 363
3 votes
1 answer
2k views

Set custom refresh rate for Sway (Wayland)

I know it's possible to set a custom refresh rate and resolution using Xorg (xrander) configurations. But I do not know how to do the same in Wayland/Sway using Nouveau drivers on an Nvidia-GPU.
user avatar
  • 65
3 votes
0 answers
2k views

Sway/Wayland does not activate my second monitor

I was previously using arch linux, lightdm, and sway (an i3 clone for wayland, basically). However, at the time lightdm would not launch sway for me, so I ended up switching to a tty (ctrl+alt+f#) and ...
user avatar
  • 488