Add swapped scrips for weird games

This commit is contained in:
Artemis Tosini 2022-11-06 04:48:36 +00:00
parent 62ac589600
commit 930f47d13d
Signed by: artemist
GPG key ID: EE5227935FE3FF18
2 changed files with 24 additions and 12 deletions

View file

@ -7,11 +7,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1667469118, "lastModified": 1667677389,
"narHash": "sha256-2YrDEmeYKCDOCuDDrjHoaUOVO3hyh9cIrWAJET1HPg8=", "narHash": "sha256-y9Zdq8vtsn0T5TO1iTvWA7JndYIAGjzCjbYVi/hOSmA=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "d78b3488a76d251701ab58a9b7f0dd092b806c1e", "rev": "87d55517f6f36aa1afbd7a4a064869d5a1d405b8",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -23,11 +23,11 @@
}, },
"nixos-hardware": { "nixos-hardware": {
"locked": { "locked": {
"lastModified": 1667283320, "lastModified": 1667585378,
"narHash": "sha256-qHvB/6XBKVjjJJCUM+z6/t9HzUC7J55wdY3KJ/ZWSHo=", "narHash": "sha256-cvOwucrjBaAkaGk3FunG+MQiwiSBeIVTtO5n/YavpC0=",
"owner": "nixos", "owner": "nixos",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "18934557eeba8fa2e575b0fd4ab95186e2e3bde3", "rev": "6b35a59c19ddbbeb229fcd1d3dcd422dcc0fa927",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -38,11 +38,11 @@
}, },
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1667318659, "lastModified": 1667653703,
"narHash": "sha256-mRXqCdlnxPgm3Wk7mNAOanl7B3Q3U5scYTEiyYmNEOE=", "narHash": "sha256-Xow4vx52/g5zkhlgZnMEm/TEXsj+13jTPCc2jIhW1xU=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b3a8f7ed267e0a7ed100eb7d716c9137ff120fe3", "rev": "f09ad462c5a121d0239fde645aacb2221553a217",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -54,11 +54,11 @@
}, },
"nixpkgs-unstable": { "nixpkgs-unstable": {
"locked": { "locked": {
"lastModified": 1667426640, "lastModified": 1667629849,
"narHash": "sha256-zJFPcWL9i0Y1BqzqEa8RKx+SiUgupHhYqPDCaFmlBpw=", "narHash": "sha256-P+v+nDOFWicM4wziFK9S/ajF2lc0N2Rg9p6Y35uMoZI=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "636051e353461f073ac55d5d42c1ed062a345046", "rev": "3bacde6273b09a21a8ccfba15586fb165078fb62",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -31,5 +31,17 @@ in
swaymsg "output DP-2 enable mode 3840x2160 scale 2 pos 1920 0" 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" 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"
'')
]; ];
} }