hyprland.nix 904 B

12345678910111213141516171819202122232425262728293031
  1. { config, pkgs, ... }: {
  2. imports = [
  3. ../../../home/modules/desktop/hyprland/modules/config-builder.nix
  4. ../../../home/modules/shells/dms-shell
  5. ../../../home/modules/shells/dms-shell/wm/hyprland
  6. ];
  7. programs.hyprlandLua = {
  8. enable = true;
  9. monitors = [
  10. { output = "DP-1"; mode = "1920x1080@143.98"; position = "0x0"; scale = 1; }
  11. { output = "HDMI-A-1"; mode = "1920x1080@143.98"; position = "1920x0"; scale = 1; }
  12. { output = ""; mode = "preferred"; position = "auto"; scale = 1; }
  13. ];
  14. workspaceRules = [
  15. { startIdx = 1; endIdx = 10; formula = "i % 10"; monitor = "DP-1"; default = true; }
  16. { startIdx = 11; endIdx = 20; formula = "i"; monitor = "HDMI-A-1"; default = true; }
  17. ];
  18. defaultCursorMonitor = "DP-2";
  19. extraLua = ''
  20. hl.device({
  21. name = "tpps/2-elan-trackpoint",
  22. sensitivity = -1,
  23. })
  24. '';
  25. };
  26. }