From ad24cd82cd042ee985c93cab9927956d390be482 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Tue, 24 Sep 2024 22:59:03 +0530 Subject: [PATCH] skipper: back to xwayland --- home/gtk.nix | 2 +- home/wm/niri/config.kdl | 5 +++++ home/wm/niri/default.nix | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/home/gtk.nix b/home/gtk.nix index 4d0a5ff..5515175 100644 --- a/home/gtk.nix +++ b/home/gtk.nix @@ -18,7 +18,7 @@ let }; in { - home.pointerCursor = cursorTheme // { gtk.enable = true; size = 24; }; + home.pointerCursor = cursorTheme // { gtk.enable = true; size = 24; x11.enable = true; }; gtk = { enable = true; theme = gtkTheme; diff --git a/home/wm/niri/config.kdl b/home/wm/niri/config.kdl index 3962ccf..4e4b9fe 100644 --- a/home/wm/niri/config.kdl +++ b/home/wm/niri/config.kdl @@ -3,6 +3,11 @@ spawn-at-startup "@dbus_update_activation_env_cmd@" "--systemd" "--all" spawn-at-startup "@systemctl_cmd@" "--user" "start" "niri-session.target" +spawn-at-startup "@xwayland_satellite_cmd@" + +environment { + DISPLAY ":0" +} input { keyboard { diff --git a/home/wm/niri/default.nix b/home/wm/niri/default.nix index d2c9834..ecb4c34 100644 --- a/home/wm/niri/default.nix +++ b/home/wm/niri/default.nix @@ -21,6 +21,7 @@ src = ./config.kdl; dbus_update_activation_env_cmd = "${pkgs.dbus}/bin/dbus-update-activation-environment"; systemctl_cmd = "${pkgs.systemd}/bin/systemctl"; + xwayland_satellite_cmd = "${lib.getExe pkgs.xwayland-satellite}"; loginctl_cmd = "${pkgs.systemd}/bin/loginctl"; wpaperctl_cmd = "${pkgs.wpaperd}/bin/wpaperctl"; kitty_cmd = "${lib.getExe pkgs.kitty}";