dot
vizie's NixOS desktop: Hyprland, CachyOS kernel and gaming tweaks
1b76c9c
No jobs
1 file changed +10 −4
modifiedmodules/home/desktop.nix
@@ -52,16 +52,18 @@ | ||
| 52 | 52 | configType = "lua"; |
| 53 | 53 | |
| 54 | 54 | settings = { |
| 55 | + # Screens are matched by model rather than port, so they keep their | |
| 56 | + # setup whichever socket the cable ends up in. | |
| 55 | 57 | monitor = [ |
| 56 | 58 | { |
| 57 | - output = "HDMI-A-2"; | |
| 59 | + output = "desc:ASUSTek COMPUTER INC XG27AQWMG"; | |
| 58 | 60 | mode = "2560x1440@280"; |
| 59 | 61 | position = "0x0"; |
| 60 | 62 | scale = 1; |
| 61 | 63 | vrr = 0; |
| 62 | 64 | } |
| 63 | 65 | { |
| 64 | - output = "DP-1"; | |
| 66 | + output = "desc:Ancor Communications Inc ROG PG278Q"; | |
| 65 | 67 | mode = "2560x1440@144"; |
| 66 | 68 | position = "2560x-900"; |
| 67 | 69 | scale = 1; |
@@ -70,10 +72,14 @@ | ||
| 70 | 72 | } |
| 71 | 73 | ]; |
| 72 | 74 | |
| 73 | - # Workspaces 1-2 on HDMI-A-2, 3-5 on DP-1. | |
| 75 | + # Workspaces 1-2 on the landscape ASUS, 3-5 on the portrait ROG. | |
| 74 | 76 | workspace_rule = map (workspace: { |
| 75 | 77 | workspace = toString workspace; |
| 76 | - monitor = if workspace <= 2 then "HDMI-A-2" else "DP-1"; | |
| 78 | + monitor = | |
| 79 | + if workspace <= 2 then | |
| 80 | + "desc:ASUSTek COMPUTER INC XG27AQWMG" | |
| 81 | + else | |
| 82 | + "desc:Ancor Communications Inc ROG PG278Q"; | |
| 77 | 83 | persistent = true; |
| 78 | 84 | }) (lib.range 1 5); |
| 79 | 85 | |