Compare commits

..

No commits in common. "688389edebdd028581796551c0c3b557ffc185ec" and "0d1c526a4cb38a6ba6ae6ad937c323efebf933cb" have entirely different histories.

3 changed files with 20 additions and 30 deletions

View file

@ -85,7 +85,7 @@
# Note: the "position" field corresponds to the "pos" field outputted by autorandr # Note: the "position" field corresponds to the "pos" field outputted by autorandr
# To get the current config, run `xrandr --auto` and then `autorandr --config` # To get the current config, run `xrandr --auto` and then `autorandr --config`
configs = { configs = {
allOff = lib.genAttrs devices.all (_: {enable = lib.mkDefault false;}); allOff = lib.genAttrs devices.all (_: {enable = false;});
enableBuiltin = { enableBuiltin = {
eDP-1 = { eDP-1 = {
enable = true; enable = true;
@ -109,37 +109,27 @@
frameworkBuiltin = { frameworkBuiltin = {
fingerprint = fingerprints.built-in; fingerprint = fingerprints.built-in;
config = lib.mkMerge [ config = configs.allOff // configs.enableBuiltin;
configs.allOff
configs.enableBuiltin
];
hooks.postswitch = switches.setDPI {dpi = 150;}; hooks.postswitch = switches.setDPI {dpi = 150;};
}; };
mkAsusProfile = name: { mkAsusProfile = name: {
fingerprint = lib.mkMerge [ fingerprint = fingerprints.built-in // fingerprints.asus-monitor name;
fingerprints.built-in config = configs.allOff // configs.enableDevice name;
(fingerprints.asus-monitor name) hooks.postswitch =
]; switches.setDPI {dpi = 110;}
config = lib.mkMerge [ // switches.setSoftwareBrightness {
configs.allOff
(configs.enableDevice name)
];
hooks.postswitch = lib.mkMerge [
(switches.setDPI {dpi = 110;})
(switches.setSoftwareBrightness {
device = name; device = name;
brightness = 1; brightness = 1;
}) }
(switches.setDDCBrightness { // switches.setDDCBrightness {
modelName = "VG27AQL3A"; modelName = "VG27AQL3A";
brightness = 0; brightness = 0;
}) }
(switches.setDDCContrast { // switches.setDDCContrast {
modelName = "VG27AQL3A"; modelName = "VG27AQL3A";
contrast = 0.5; contrast = 0.5;
}) };
];
}; };
in in
lib.mkMerge [ lib.mkMerge [

View file

@ -12,8 +12,8 @@
domain = "git.confusedcompiler.org"; domain = "git.confusedcompiler.org";
owner = "leana8959"; owner = "leana8959";
repo = "ruler"; repo = "ruler";
rev = "adf8f711b014cba4b73da0132c2be944ba20ba0b"; rev = "96474fa29fda73aa8253ee055bf5fd3c84ef1e60";
hash = "sha256-sHJEgwEAMERhOCPY16Lsirj1bSUfEUpwNnPmHfg+/8Q="; hash = "sha256-hBfRrKBQ2vTCK4eqKtx8i/7l61RkB8zoThdzoymnCUQ=";
}) })
{}; {};

View file

@ -220,9 +220,9 @@
}, },
"branch": "nixos-25.05-small", "branch": "nixos-25.05-small",
"submodules": false, "submodules": false,
"revision": "f2ee78c4eb601be36a277e1779a7a87655419dad", "revision": "872106a411643f96e2c9576d247cf96e7c8c1b97",
"url": "https://github.com/NixOS/nixpkgs/archive/f2ee78c4eb601be36a277e1779a7a87655419dad.tar.gz", "url": "https://github.com/NixOS/nixpkgs/archive/872106a411643f96e2c9576d247cf96e7c8c1b97.tar.gz",
"hash": "0g5m7bhqw01a950xga0w246al2cy11pqd0dq763whw5sbqfadr59" "hash": "0r6rpgcxyfrbzsq0l1nnnpnqqlmx81pxjjavsk9vm02r3cf61lwz"
}, },
"nur": { "nur": {
"type": "Git", "type": "Git",
@ -233,9 +233,9 @@
}, },
"branch": "main", "branch": "main",
"submodules": false, "submodules": false,
"revision": "68f4e0f40dfafa9bc9ae50b18685befac76ebcd4", "revision": "5b9257bd1a5585897308817e715950fcec4f81a8",
"url": "https://github.com/nix-community/nur/archive/68f4e0f40dfafa9bc9ae50b18685befac76ebcd4.tar.gz", "url": "https://github.com/nix-community/nur/archive/5b9257bd1a5585897308817e715950fcec4f81a8.tar.gz",
"hash": "04p7vqixrbyjnr9nnm3p4k37137f5nm6daly2q2yfci1p1a35qjc" "hash": "0gl1rnm0r9d2jpawx1flmjn1a01f09cr7w48vfqg72qanzzffkz0"
}, },
"pin-emacs28": { "pin-emacs28": {
"type": "Git", "type": "Git",