Files
niri/wiki/Application-Issues.md
T

55 lines
3.0 KiB
Markdown
Raw Normal View History

2024-03-25 21:13:36 +04:00
### VSCode
If you're having issues with some VSCode hotkeys, try starting `Xwayland` and setting the `DISPLAY=:0` environment variable for VSCode.
That is, still running VSCode with the Wayland backend, but with `DISPLAY` set to a running Xwayland instance.
Apparently, VSCode currently unconditionally queries the X server for a keymap.
2024-03-25 21:13:36 +04:00
### WezTerm
2025-02-27 20:16:27 +01:00
> [!NOTE]
> Both of these issues seem to be fixed in the nightly build of WezTerm.
2024-03-25 21:13:36 +04:00
There's [a bug](https://github.com/wez/wezterm/issues/4708) in WezTerm that it waits for a zero-sized Wayland configure event, so its window never shows up in niri. To work around it, put this window rule in the niri config (included in the default config):
2024-07-08 15:14:01 +02:00
```kdl
2024-03-25 21:13:36 +04:00
window-rule {
match app-id=r#"^org\.wezfurlong\.wezterm$"#
default-column-width {}
}
```
2024-07-08 15:14:01 +02:00
This empty default column width lets WezTerm pick its own initial width which makes it show up properly.
2024-11-11 10:06:23 +03:00
2025-01-03 12:22:43 +03:00
There's [another bug](https://github.com/wez/wezterm/issues/6472) in WezTerm that causes it to choose a wrong size when it's in a tiled state, and prevent resizing it.
2025-03-15 16:42:05 +01:00
Niri puts windows in the tiled state with [`prefer-no-csd`](./Configuration:-Miscellaneous.md#prefer-no-csd).
2025-01-03 12:22:43 +03:00
So if you hit this problem, comment out `prefer-no-csd` in the niri config and restart WezTerm.
2024-11-11 10:06:23 +03:00
### Ghidra
Some Java apps like Ghidra can show up blank under xwayland-satellite.
2025-01-03 12:22:43 +03:00
To fix this, run them with the `_JAVA_AWT_WM_NONREPARENTING=1` environment variable.
### rofi-wayland
There's a bug in rofi-wayland that prevents it from accepting keyboard input on niri with errors in the output.
2025-03-15 16:42:05 +01:00
It's been fixed in rofi, but [the fix had not been released yet](https://github.com/davatorium/rofi/discussions/2008).
### Fullscreen games
Some video games, both Linux-native and on Wine, have various issues when using non-stacking desktop environments.
Most of these can be avoided with Valve's [gamescope](https://github.com/ValveSoftware/gamescope), for example:
```sh
gamescope -f -w 1920 -h 1080 -W 1920 -H 1080 --force-grab-cursor --backend sdl -- <game>
```
This command will run *<game>* in 1080p fullscreen—make sure to replace the width and height values to match your desired resolution.
`--force-grab-cursor` forces gamescope to use relative mouse movement which prevents the cursor from escaping the game's window on multi-monitor setups.
2025-02-16 08:11:11 -09:00
Note that `--backend sdl` is currently also required as gamescope's default Wayland backend doesn't lock the cursor properly (possibly related to https://github.com/ValveSoftware/gamescope/issues/1711).
Steam users should use gamescope through a game's [launch options](https://help.steampowered.com/en/faqs/view/7D01-D2DD-D75E-2955) by replacing the game executable with `%command%`.
Other game launchers such as [Lutris](https://lutris.net/) have their own ways of setting gamescope options.
Running X11-based games with this method doesn't require Xwayland as gamescope creates its own Xwayland server.
You can run Wayland-native games as well by passing `--expose-wayland` to gamescope, therefore eliminating X11 from the equation.