diff --git a/flake.lock b/flake.lock index 725a5c6..26b9d7c 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1667469118, - "narHash": "sha256-2YrDEmeYKCDOCuDDrjHoaUOVO3hyh9cIrWAJET1HPg8=", + "lastModified": 1667677389, + "narHash": "sha256-y9Zdq8vtsn0T5TO1iTvWA7JndYIAGjzCjbYVi/hOSmA=", "owner": "nix-community", "repo": "home-manager", - "rev": "d78b3488a76d251701ab58a9b7f0dd092b806c1e", + "rev": "87d55517f6f36aa1afbd7a4a064869d5a1d405b8", "type": "github" }, "original": { @@ -23,11 +23,11 @@ }, "nixos-hardware": { "locked": { - "lastModified": 1667283320, - "narHash": "sha256-qHvB/6XBKVjjJJCUM+z6/t9HzUC7J55wdY3KJ/ZWSHo=", + "lastModified": 1667585378, + "narHash": "sha256-cvOwucrjBaAkaGk3FunG+MQiwiSBeIVTtO5n/YavpC0=", "owner": "nixos", "repo": "nixos-hardware", - "rev": "18934557eeba8fa2e575b0fd4ab95186e2e3bde3", + "rev": "6b35a59c19ddbbeb229fcd1d3dcd422dcc0fa927", "type": "github" }, "original": { @@ -38,11 +38,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1667318659, - "narHash": "sha256-mRXqCdlnxPgm3Wk7mNAOanl7B3Q3U5scYTEiyYmNEOE=", + "lastModified": 1667653703, + "narHash": "sha256-Xow4vx52/g5zkhlgZnMEm/TEXsj+13jTPCc2jIhW1xU=", "owner": "nixos", "repo": "nixpkgs", - "rev": "b3a8f7ed267e0a7ed100eb7d716c9137ff120fe3", + "rev": "f09ad462c5a121d0239fde645aacb2221553a217", "type": "github" }, "original": { @@ -54,11 +54,11 @@ }, "nixpkgs-unstable": { "locked": { - "lastModified": 1667426640, - "narHash": "sha256-zJFPcWL9i0Y1BqzqEa8RKx+SiUgupHhYqPDCaFmlBpw=", + "lastModified": 1667629849, + "narHash": "sha256-P+v+nDOFWicM4wziFK9S/ajF2lc0N2Rg9p6Y35uMoZI=", "owner": "nixos", "repo": "nixpkgs", - "rev": "636051e353461f073ac55d5d42c1ed062a345046", + "rev": "3bacde6273b09a21a8ccfba15586fb165078fb62", "type": "github" }, "original": { diff --git a/system/starlight/scripts.nix b/system/starlight/scripts.nix index 8b676bd..9a0aa59 100644 --- a/system/starlight/scripts.nix +++ b/system/starlight/scripts.nix @@ -31,5 +31,17 @@ in swaymsg "output DP-2 enable mode 3840x2160 scale 2 pos 1920 0" swaymsg "output HDMI-A-1 enable mode 3840x2160 scale 2 pos 3840 0" '') + (pkgs.writeScriptBin "swap" '' + ${swayPrelude} + swaymsg "output DP-1 enable mode 3840x2160 scale 2 pos 1920 0" + swaymsg "output DP-2 enable mode 3840x2160 scale 2 pos 0 0" + swaymsg "output HDMI-A-1 enable mode 3840x2160 scale 2 pos 3840 0" + '') + (pkgs.writeScriptBin "swapgame" '' + ${swayPrelude} + swaymsg "output DP-1 enable mode 3840x2160 scale 1 pos 0 0" + swaymsg "output DP-2 enable mode 3840x2160 scale 2 pos 3840 0" + swaymsg "output HDMI-A-1 enable mode 3840x2160 scale 2 pos 5760 0" + '') ]; }