Setup xwayland support for niri

This commit is contained in:
Curt Spark 2024-08-06 13:18:11 +01:00
parent 2ca27863d6
commit 80f5726dc0
4 changed files with 51 additions and 2 deletions

View File

@ -907,6 +907,22 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs_9": {
"locked": {
"lastModified": 1722630782,
"narHash": "sha256-hMyG9/WlUi0Ho9VkRrrez7SeNlDzLxalm9FwY7n/Noo=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "d04953086551086b44b6f3c6b7eeb26294f207da",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"pre-commit-hooks": { "pre-commit-hooks": {
"inputs": { "inputs": {
"flake-compat": [ "flake-compat": [
@ -1021,7 +1037,8 @@
"home-manager": "home-manager", "home-manager": "home-manager",
"niri": "niri", "niri": "niri",
"nixd": "nixd", "nixd": "nixd",
"nixpkgs": "nixpkgs_8" "nixpkgs": "nixpkgs_8",
"xwayland-satellite-flake": "xwayland-satellite-flake"
} }
}, },
"systems": { "systems": {
@ -1114,6 +1131,24 @@
"repo": "xwayland-satellite", "repo": "xwayland-satellite",
"type": "github" "type": "github"
} }
},
"xwayland-satellite-flake": {
"inputs": {
"nixpkgs": "nixpkgs_9"
},
"locked": {
"lastModified": 1722945455,
"narHash": "sha256-Rvc6wTyOVIFr9Euxxomw1VS7rLyj7g/W7xs4NKmdl0s=",
"owner": "cspark-development",
"repo": "xwayland-satellite-flake",
"rev": "4e1728ede8200e70809b42601693cb0c7ff41482",
"type": "github"
},
"original": {
"owner": "cspark-development",
"repo": "xwayland-satellite-flake",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",

View File

@ -18,6 +18,9 @@
url = "github:nix-community/nixd"; url = "github:nix-community/nixd";
}; };
xwayland-satellite-flake = {
url = "github:cspark-development/xwayland-satellite-flake";
};
}; };

View File

@ -36,6 +36,7 @@ in
mako & mako &
swaybg -i ${config.home.homeDirectory}/Pictures/Wallpapers/ourdream.png & swaybg -i ${config.home.homeDirectory}/Pictures/Wallpapers/ourdream.png &
wlsunset -l 51.5 -L 0.1 & wlsunset -l 51.5 -L 0.1 &
xwayland-satellite & # Xwayland support via xwayland-satellite-flake
'') '')
(writeShellScriptBin "fuzzel-pass" (writeShellScriptBin "fuzzel-pass"
'' ''
@ -78,6 +79,9 @@ fi
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
# Enable native wayland support for chromium and electron based applications # Enable native wayland support for chromium and electron based applications
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
# Xwayland support via xwayland-satellite-flake
DISPLAY = ":0";
}; };
# Start sway after login if on TTY1 (Default Linux TTY upon boot/login) # Start sway after login if on TTY1 (Default Linux TTY upon boot/login)

View File

@ -31,6 +31,7 @@ in
wlprop # Clone of X11 xprop for wayland (To get window class names etc) wlprop # Clone of X11 xprop for wayland (To get window class names etc)
wev # Clone of X11 xev for wayland wev # Clone of X11 xev for wayland
waybar # Status bar waybar # Status bar
xwayland-satellite # Xwayland support via xwayland-satellite-flake
swayimg # Image viewer swayimg # Image viewer
lxqt.pcmanfm-qt # File Manager lxqt.pcmanfm-qt # File Manager
@ -122,6 +123,9 @@ in
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
# Enable native wayland support for chromium and electron based applications # Enable native wayland support for chromium and electron based applications
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
# Xwayland support via xwayland-satellite-flake
DISPLAY = ":0";
}; };
environment.variables = { environment.variables = {
TERM = "foot"; TERM = "foot";
@ -135,6 +139,9 @@ in
MOZ_ENABLE_WAYLAND = "1"; MOZ_ENABLE_WAYLAND = "1";
# Enable native wayland support for chromium and electron based applications # Enable native wayland support for chromium and electron based applications
NIXOS_OZONE_WL = "1"; NIXOS_OZONE_WL = "1";
# Xwayland support via xwayland-satellite-flake
DISPLAY = ":0";
}; };
}; };