{ inputs, lib, ... }: { xdg.configFile."hypr/plugins/split-monitor-workspaces".source = inputs.split-monitor-workspaces; wayland.windowManager.hyprland = { enable = true; # set the Hyprland and XDPH packages to null to use the ones from the NixOS module package = null; portalPackage = null; systemd.variables = ["--all"]; # extraLuaFiles = { # smw-setup = { # content = '' # local smw = require('plugins.split-monitor-workspaces') # smw.setup({ # workspace_count = 5 # }) # ''; # }; # }; settings = { smw = { _var = (lib.generators.mkLuaInline "require('plugins.split-monitor-workspaces')"); }; bind = let mainMod = "SUPER"; in [ { _args = [ "${mainMod} + Q" (lib.generators.mkLuaInline ''hl.dsp.exec_cmd("kitty")'') ]; } ]; }; extraConfig = '' smw.setup({ workspace_count = 5 }) ''; }; }