Skip to content

Commit

Permalink
Use patched autorandr: phillipberndt/autorandr#219
Browse files Browse the repository at this point in the history
  • Loading branch information
rossabaker committed Jul 30, 2020
1 parent d15fb02 commit 7f2c7d5
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/nixpkgs/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ in

overlays = [
(import sources.emacs-overlay)
(import ../../overlays/autorandr)
(import ../../overlays/materia-tomorrow-theme)
(import ../../overlays/qogir-tomorrow-theme)
];
Expand Down
68 changes: 65 additions & 3 deletions hosts/herbert/home.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,70 @@
(import ../../modules/work)
];

programs.git.signing = {
key = "0x0CACC3F315F745F1";
signByDefault = true;
programs = {
autorandr = {
profiles = {
"docked" = {
fingerprint = {
"DP-0" = "00ffffffffffff005a63325e010101012a1a010380301b782e5a65a756529c270f5054bfef80b300a940a9c095009040818081408100023a801871382d40582c4500dc0c1100001e000000ff00554b583136343230303830300a000000fd00184b0f5212000a202020202020000000fc0056413232353920536572696573017f020328f1559005040302070608090e0f1f1413121115161d1e0123097f078301000065030c001000023a801871382d40582c4500dc0c1100001e011d8018711c1620582c2500dc0c1100009e011d007251d01e206e285500dc0c1100001e8c0ad08a20e02d10103e9600dc0c1100001800000000000000000000000000000094";
"DP-1.1" = "00ffffffffffff0004722405334c30642b1a0104b53c22783fb595a65650a0260d5054bfef80714f8140818081c081009500b300d1c0565e00a0a0a029503020350056502100001a000000fd00284b71711e010a202020202020000000fc004b32373248554c0a2020202020000000ff005436414141303031383530360a010a020318f14b900102030405111213141f23090707830100009774006ea0a034501720680856502100001a3b5680b07238324088d0350056502100001a023a801871382d40582c450056502100001e011d007251d01e206e28550056502100001e8c0ad08a20e02d10103e960056502100001a0000000000000000000000000088";
"DP-2" = "00ffffffffffff000dae0c15000000002a1c0104b522137802ee95a3544c99260f505400000001010101010101010101010101010101363680a0703820405036680058c110000018363680a0703820405036680058c110000018000000fe00434d4e0a202020202020202020000000fe004e3135364843452d474e310a2001d102030f00e3058000e60605016a6a2400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005435393744373538424b30360000000000000000000000000000000000c6";
"HDMI-0" = "00ffffffffffff005a63325e010101012a1a010380301b782e5a65a756529c270f5054bfef80b300a940a9c095009040818081408100023a801871382d40582c4500dc0c1100001e000000ff00554b583136343230303634380a000000fd00184b0f5212000a202020202020000000fc00564132323539205365726965730175020328f1559005040302070608090e0f1f1413121115161d1e0123097f078301000065030c001000023a801871382d40582c4500dc0c1100001e011d8018711c1620582c2500dc0c1100009e011d007251d01e206e285500dc0c1100001e8c0ad08a20e02d10103e9600dc0c1100001800000000000000000000000000000094";
};
config = {
"DP-0" = {
enable = true;
mode = "1920x1080";
position = "0x0";
rotate = "left";
};
"DP-1.1" = {
enable = true;
mode = "2560x1440";
position = "1080x0";
primary = true;
};
"HDMI-0" = {
enable = true;
mode = "1920x1080";
position = "3640x0";
rotate = "right";
};
"DP-2" = {
enable = false;
};
};
};
"mobile" = {
fingerprint = {
"DP-2" = "00ffffffffffff000dae0c15000000002a1c0104b522137802ee95a3544c99260f505400000001010101010101010101010101010101363680a0703820405036680058c110000018363680a0703820405036680058c110000018000000fe00434d4e0a202020202020202020000000fe004e3135364843452d474e310a2001d102030f00e3058000e60605016a6a2400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005435393744373538424b30360000000000000000000000000000000000c6";
};
config = {
"DP-0" = {
enable = false;
};
"DP-1.1" = {
enable = false;
};
"HDMI-0" = {
enable = false;
};
"DP-2" = {
enable = true;
mode = "1920x1080";
position = "0x0";
primary = true;
};
};
};
};
};

git ={
signing = {
key = "0x0CACC3F315F745F1";
signByDefault = true;
};
};
};
}
14 changes: 14 additions & 0 deletions overlays/autorandr/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
self: super: {
autorandr = super.autorandr.overrideAttrs (
old: rec {
version = "1.10.1-ross";

src = self.fetchFromGitHub {
owner = "rossabaker";
repo = "autorandr";
rev = "4526fff46b7041d9044e77c0b318fecb664b815e";
sha256 = "09pkb6n1kq4kp5h21v3vmzrjn7831c8kb145sdybwjbm4vq93hvk";
};
}
);
}

0 comments on commit 7f2c7d5

Please sign in to comment.