make xwayland work

This commit is contained in:
cy 2025-01-19 01:20:01 -05:00
parent 973993af60
commit 929c98faf5
2 changed files with 7 additions and 2 deletions

View file

@ -8,13 +8,13 @@ let
clipboard = "cliphist list | ${lib.concatStringsSep " " menu} --dmenu | cliphist decode | wl-copy";
in
{
programs.niri.settings =
{
programs.niri.settings = {
prefer-no-csd = true;
input.keyboard.xkb.options = "ctrl:nocaps";
spawn-at-startup = [
{ command = [ "${lib.getExe pkgs.waybar}" ]; }
{ command = [ "${lib.getExe pkgs.swaybg}" "-m" "fill" "-i" wallpaper ]; }
{ command = [ "${lib.getExe pkgs.xwayland-satellite}" ]; }
];
hotkey-overlay.skip-at-startup = true;
@ -29,6 +29,10 @@ in
focus-follows-mouse.enable = true;
};
environment = {
DISPLAY = ":0"; # for xwayland-satellite
};
layout = {
gaps = 4;
focus-ring = {

View file

@ -16,5 +16,6 @@ in
config = lib.mkIf cfg.enable {
programs.niri.package = cfg.package;
programs.niri.enable = true;
programs.xwayland.enable = true;
};
}