mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Fix okular issue in wayland
Add workaround to use xwayland compat mode instead of the wayland implementation
This commit is contained in:
parent
d5d1a16d17
commit
0b5fe07122
@ -27,6 +27,16 @@ with lib; {
|
||||
cfg = config.elss.graphical;
|
||||
#cursorsize = if config.variables.hostName == "nucturne" then 14 else 16;
|
||||
#xserverDPI = if config.variables.hostName == "stel-xps" then 180 else null;
|
||||
|
||||
okular-x11 = pkgs.symlinkJoin {
|
||||
name = "okular";
|
||||
paths = [pkgs.okular];
|
||||
buildInputs = [pkgs.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/okular \
|
||||
--set QT_QPA_PLATFORM xcb
|
||||
'';
|
||||
};
|
||||
in
|
||||
mkIf cfg.enable {
|
||||
elss.users.x11.enable =
|
||||
@ -75,7 +85,8 @@ with lib; {
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
ungoogled-chromium
|
||||
okular
|
||||
# force okular to use xwayland, because of https://github.com/swaywm/sway/issues/4973
|
||||
okular-x11
|
||||
texlive.combined.scheme-full
|
||||
usbutils
|
||||
keepassxc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user