You are not logged in.
Hello,
I just install sway and configured xinit to run it like this:
dbus-launch-session swayI also copied the config file from /etc/sway to ~/.config/sway directory and set term variable to run wezterm.
It's running, but in a small area(1024x768 on a 1920x1080 display) without set the wallpaper, just a grey background and doesn't do anything when try to use some key bindings. Doesn't close or reload config with the keybindings defined in config file and therefore cannot close it.
Offline
Well that's wrong in oh so many ways. You shouldn't be explicitly using dbus-launch-session for anything. But more important, sway is a wayland compositor, not an X11 client, so how / why would you configure xinit to run it?? Do you actually want sway, or do you want i3wm?
If you want to run sway, just run `sway` or `exec sway` from the tty. Or use one of the other documented methods.
What you are seeing is the result of running sway nested within an X11 session, but that X11 session itself has no WM running.
Last edited by Trilby (2022-07-15 13:42:07)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
I'm using dbus-launch-session after a suggestion in another thread because I'm running 2 xservers and I wanted to be separated.
I removed it from xinit and I started it as you suggested. The resolution problem solved, but still no background and the key bindings don't do anything.
EDIT:
After restart key bindings working.
Thanks.
Last edited by zaxdan69 (2022-07-15 14:06:29)
Offline
What exactly have you done? You removed somthing from xinit ... that doesn't mean much as xinit is a binary, I'm quite sure you're not editting it. I gather you removed something from ~/.xinitrc, but again, that's completely irrelevant: ~/.xinitrc is not used by sway. How exactly are you trying to start sway?
Last edited by Trilby (2022-07-15 14:04:34)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Sorry I meant .xinitrc. I'm starting it from tty now directly and the key bindings work.
Thanks again.
Last edited by zaxdan69 (2022-07-15 14:28:21)
Offline